Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0033791Openbravo ERPA. Platformpublic2016-08-24 11:472016-08-25 15:19
shuehner 
Triage Finance 
normalminorhave not tried
acknowledgedopen 
5
 
 
Core
No
0033791: PricelistVersionFilterExpression & PriceListVersionFilterExpressionName are 99% identical
Those 2 files are (ignoring formal changes) completely identical except of a single line:

@@ -42,7 +61,7 @@
     Date date = getDate();
     PriceListVersion priceListVersion = getPriceListVersion(priceList, date);
     if (priceListVersion != null) {
- return priceListVersion.getId();
+ return priceListVersion.getName();
     }
     return "";
   }

That should be refactored as i.e. 33705 & 33790 had to find & fix same bug in both.

Note: Both live in same javapackage so it should be possible to do some code-sharing probably easily without api change.
cd src/org/openbravo/erpCommon/info
diff -u PriceListVersionFilterExpression.java PriceListVersionFilterExpressionName.java
No tags attached.
related to defect 0033705 closed shuehner Double query in PricelistVersionFilterExpression (product selector) 
related to defect 0033790 closed shuehner Accidental double query in PriceListVersionFilterExpressionName (order lines, product selector dropdown) 
Issue History
2016-08-24 11:47shuehnerNew Issue
2016-08-24 11:47shuehnerAssigned To => platform
2016-08-24 11:47shuehnerModules => Core
2016-08-24 11:47shuehnerTriggers an Emergency Pack => No
2016-08-24 11:47shuehnerRelationship addedrelated to 0033705
2016-08-24 11:47shuehnerRelationship addedrelated to 0033790
2016-08-24 15:58NaroaIriarteAssigned Toplatform => NaroaIriarte
2016-08-24 15:58NaroaIriarteStatusnew => acknowledged
2016-08-25 15:19caristuAssigned ToNaroaIriarte => Triage Finance

There are no notes attached to this issue.