Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0014354Openbravo ERP03. Procurement managementpublic2010-08-27 13:402010-09-13 12:38
dalsasua 
adrianromero 
normalmajoralways
closedduplicate 
20Ubuntu 9.04
pi 
pi 
Core
No
0014354: If ',' character is the decimal separator, then invoice line do not populate amounts and tax values when selecting a product
If ',' character is the decimal separator, then invoice line do not populate amounts and tax values when selecting a product
Apply this patch to Format.xml file:
28c28
< decimal="." grouping="," formatOutput="#,##0.00" formatInternal="#0.00" />
---
> decimal="," grouping="." formatOutput="#,##0.00" formatInternal="#0.00" />
30c30
< decimal="." grouping="," formatOutput="#0.00" formatInternal="#0.00" />
---
> decimal="," grouping="." formatOutput="#0.00" formatInternal="#0.00" />
36c36
< decimal="." grouping="," formatOutput="#,##0.00" formatInternal="#0.00" />
---
> decimal="," grouping="." formatOutput="#,##0.00" formatInternal="#0.00" />
38c38
< decimal="." grouping="," formatOutput="#0.00" formatInternal="#0.00" />
---
> decimal="," grouping="." formatOutput="#0.00" formatInternal="#0.00" />
42c42
< decimal="." grouping="," formatOutput="#,##0" formatInternal="#0" />
---
> decimal="," grouping="." formatOutput="#,##0" formatInternal="#0" />
44c44
< decimal="." grouping="," formatOutput="#0" formatInternal="#0" />
---
> decimal="," grouping="." formatOutput="#0" formatInternal="#0" />
50c50
< decimal="." grouping="," formatOutput="#,##0.###" formatInternal="#0.000" />
---
> decimal="," grouping="." formatOutput="#,##0.###" formatInternal="#0.000" />
52c52
< decimal="." grouping="," formatOutput="#0.###" formatInternal="#0.000" />
---
> decimal="," grouping="." formatOutput="#0.###" formatInternal="#0.000" />
56c56
< decimal="." grouping="," formatOutput="#,##0.######" formatInternal="#0.000000" />
---
> decimal="," grouping="." formatOutput="#,##0.######" formatInternal="#0.000000" />
58c58
< decimal="." grouping="," formatOutput="#0.######" formatInternal="#0.000000" />
---
> decimal="," grouping="." formatOutput="#0.######" formatInternal="#0.000000" />

Then re-compile application and go to an invoice (sales or purchase) line, and choose a product. Nothing happens, and an error is shown while executing

      strPriceActual = SLOrderProductData.getOffersPriceInvoice(this, dataInvoice[0].dateinvoiced, dataInvoice[0].cBpartnerId, strMProductID, strPriceStd.replace("\"", ""), strQty, dataInvoice[0].mPricelistId, dataInvoice[0].id);
diff --git a/src/org/openbravo/erpCommon/ad_callouts/SL_Invoice_Product.java b/src/org/openbravo/erpCommon/ad_callouts/SL_Invoice_Product.java
--- a/src/org/openbravo/erpCommon/ad_callouts/SL_Invoice_Product.java
+++ b/src/org/openbravo/erpCommon/ad_callouts/SL_Invoice_Product.java
@@ -54,7 +54,7 @@
         log4j.debug("CHANGED: " + strChanged);
       String strUOM = vars.getStringParameter("inpmProductId_UOM");
       String strPriceList = vars.getStringParameter("inpmProductId_PLIST");
- String strPriceStd = vars.getStringParameter("inpmProductId_PSTD");
+ String strPriceStd = vars.getNumericParameter("inpmProductId_PSTD");
       String strPriceLimit = vars.getStringParameter("inpmProductId_PLIM");
       String strCurrency = vars.getStringParameter("inpmProductId_CURR");
       String strQty = vars.getNumericParameter("inpqtyinvoiced");
No tags attached.
duplicate of defect 00133252.50MP18 closed harikrishnan The application does not work properly depending Format's and PostgreSQL's configuration 
Issue History
2010-08-27 13:40dalsasuaNew Issue
2010-08-27 13:40dalsasuaAssigned To => adrianromero
2010-08-30 11:17adrianromeroRelationship addedduplicate of 0013325
2010-08-30 11:17adrianromeroNote Added: 0030445
2010-08-30 11:17adrianromeroStatusnew => closed
2010-08-30 11:17adrianromeroResolutionopen => duplicate
2010-08-30 11:17adrianromeroFixed in Version => pi
2010-09-13 12:38anonymoussf_bug_id0 => 3065190

Notes
(0030445)
adrianromero   
2010-08-30 11:17   
It was fixed in the following changeset:
https://code.openbravo.com/erp/devel/pi/rev/e6fc833ee3976ebb4efba81accb2f92b9286a0b8 [^]