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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0006163
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] 03. Procurement managementmajoralways2008-11-23 13:122008-12-15 10:39
ReporterrafarodaView Statuspublic 
Assigned Toshuehner 
PriorityhighResolutionunable to reproduceFixed in Version
StatusclosedFix in branchpiFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSLinux 32 bitDatabasePostgreSQLJava version1.5
OS VersionUbuntu 7.10Database version8.3Ant version1.7
Product Version2.35MP9SCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0006163: Format.xml not correctly taken

DescriptionIn 2.3x, Format.xml is not correctly taken for Unit Price.

This causes miss-calculations in the discount (see attached image).

This issue does not reproduce in 2.40 nor in trunk.
Steps To Reproduce1) Edit the following line inside config/Format.xml file:
<Number name="priceEdition"
       decimal="." grouping="," formatOutput="#0.0000" formatInternal="#0.0000" />
2) Compile this change: ant compile.development -Dtab="order" -Dtr="no"
3) Create a new purchase order in 'Procurement Management || Transactions || Purchase Order'
4) Go to Lines tab and add a new line.
5) Set 'Unit Price' and 'List Price' equals to '0.0008'.

Discount is calculated as -25, as if 'Unit Price' = 0.001 and 'List Price' = 0.0008

In the database the price data are correct, both 0.0008, but discount is saved incorrectly (-25.00): select pricelist, priceactual, discount from c_orderline order by updated desc;
TagsNo tags attached.
Attached Filespng file icon round-discount.png [^] (78,875 bytes) 2008-11-23 13:12

- Relationships Relation Graph ] Dependency Graph ]
depends on backport 0006546 closedrafaroda Format.xml not correctly taken 

-  Notes
(0011355)
rafaroda (developer)
2008-12-15 10:39

This issue does not reproduce in trunk but only in 2.3x branch.

- Issue History
Date Modified Username Field Change
2008-11-23 13:12 rafaroda New Issue
2008-11-23 13:12 rafaroda Assigned To => rafaroda
2008-11-23 13:12 rafaroda File Added: round-discount.png
2008-11-23 13:12 rafaroda Regression testing => No
2008-11-23 13:12 rafaroda fix_in_branch => 2.3x
2008-11-25 13:50 rafaroda Type backport => defect
2008-12-02 13:02 jaimetorre sf_bug_id 0 => 2377115
2008-12-15 10:38 rafaroda Status new => scheduled
2008-12-15 10:38 rafaroda Assigned To rafaroda => shuehner
2008-12-15 10:38 rafaroda fix_in_branch 2.3x => trunk
2008-12-15 10:39 rafaroda Status scheduled => closed
2008-12-15 10:39 rafaroda Note Added: 0011355
2008-12-15 10:39 rafaroda Resolution open => unable to reproduce


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker