Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0014354
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] 03. Procurement managementmajoralways2010-08-27 13:402010-09-13 12:38
ReporterdalsasuaView Statuspublic 
Assigned Toadrianromero 
PrioritynormalResolutionduplicateFixed in Versionpi
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSLinux 32 bitDatabaseOracleJava version1.6.0_14
OS VersionUbuntu 9.04Database version11.1.0.6.0 SEAnt version1.7.1
Product VersionpiSCM revision2.50 MP20 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0014354: If ',' character is the decimal separator, then invoice line do not populate amounts and tax values when selecting a product

DescriptionIf ',' character is the decimal separator, then invoice line do not populate amounts and tax values when selecting a product
Steps To ReproduceApply 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);
Proposed Solutiondiff --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");
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
duplicate of defect 00133252.50MP18 closedharikrishnan The application does not work properly depending Format's and PostgreSQL's configuration 

-  Notes
(0030445)
adrianromero (manager)
2010-08-30 11:17

It was fixed in the following changeset:
https://code.openbravo.com/erp/devel/pi/rev/e6fc833ee3976ebb4efba81accb2f92b9286a0b8 [^]

- Issue History
Date Modified Username Field Change
2010-08-27 13:40 dalsasua New Issue
2010-08-27 13:40 dalsasua Assigned To => adrianromero
2010-08-30 11:17 adrianromero Relationship added duplicate of 0013325
2010-08-30 11:17 adrianromero Note Added: 0030445
2010-08-30 11:17 adrianromero Status new => closed
2010-08-30 11:17 adrianromero Resolution open => duplicate
2010-08-30 11:17 adrianromero Fixed in Version => pi
2010-09-13 12:38 anonymous sf_bug_id 0 => 3065190


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker