[ https://issues.apache.org/jira/browse/OFBIZ-4699?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13210142#comment-13210142 ]
Nicolas Malin commented on OFBIZ-4699: -------------------------------------- I check the patch and I think that there is a misunderstanding. parameters.quantityOnHandTotal is a BigDecimal and inventoryItem.quantityOnHandTotal is also a BigDecimal. The problem that solve pierre is to call directly operation with BigDecimal instead of use a flexible string that convert BigDecimal to String and String to BigDecimal for return value. For me, pierre solve with a good solution. On other point, I am little surprised by replace calculate by uel. Simple method is a high level language, use mainly by the functional, uel need to know conversion problem. It's a regression for me to use uel inseated of mini-lang, uel is pretty good but not on functional context (this is my opinion ;) ) On mini-lang xsd or wiki I don't found information on obsoleted calculate code, where I can found most information on the reason ? Nicolas > Error in getProductInventoryAvailable with french formated number > ----------------------------------------------------------------- > > Key: OFBIZ-4699 > URL: https://issues.apache.org/jira/browse/OFBIZ-4699 > Project: OFBiz > Issue Type: Bug > Components: product > Affects Versions: SVN trunk > Reporter: Gaudin Pierre > Attachments: InventoryServices.xml.patch > > > The calculation of the available quantities by location does not take into > account the local formatting of the numbers. > How to see the problem: > - Be in French local > - Create for the same product several inventory items with ATP and QOH > 999. > - Go to the product inventory view > - The values are not correct for locations > The patch corrects this problem by using the standard methods of the > minilanguage -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira