Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0039734 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Openbravo ERP] 07. Sales management | minor | always | 2018-12-03 11:50 | 2019-06-18 10:09 | |||
Reporter | nitasujena | View Status | public | |||||
Assigned To | collazoandy4 | |||||||
Priority | high | Resolution | no change required | Fixed in Version | ||||
Status | closed | Fix in branch | Fixed in SCM revision | |||||
Projection | none | ETA | none | Target Version | ||||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | main | SCM revision | ||||||
Review Assigned To | Sandrahuguet | |||||||
Web browser | ||||||||
Modules | Core | |||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0039734: rounding error in number to word module | |||||||
Description | There is a rounding error in the number to word module. Let Say order total amount is : 29825.28 It is printing as twentynine thousand eight hundred twentyfive and 28/100, where decimal part is coming wrong. | |||||||
Steps To Reproduce | 1. Add Number To Word (English) on the instance. 2. Create any field to display order totalamount in word. 2. create an object of NumberToWord and call the convert method to display the total in a word. Let say : "total amount " + new org.openbravo.numbertoword_en.erpCommon.utility.NumberToWord_en().convert($F{total amount} 3. Take a print of sales order. | |||||||
Proposed Solution | --alter convert function logic if (number_decimal == 0) { value = toWord(number_whole).concat("and 00/100"); } else { value = toWord(number_whole).concat("and").concat(Integer.toString(number_decimal).concat("/100")); } //code } In the else session,instead of converting [ concat(Integer.toString(number_decimal).concat("/100")] call toWord() again. | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | |
Notes | |
(0112849) Sandrahuguet (developer) 2019-06-18 10:09 |
Number to word was implemented to use in check printing and is a common and correct way to write decimal part like 28/100. |
Issue History | |||
Date Modified | Username | Field | Change |
2018-12-03 11:50 | pramodkumar | New Issue | |
2018-12-03 11:50 | pramodkumar | Assigned To | => Triage Finance |
2018-12-03 11:50 | pramodkumar | Modules | => Core |
2018-12-03 11:50 | pramodkumar | Resolution time | => 1545087600 |
2018-12-03 11:50 | pramodkumar | Triggers an Emergency Pack | => No |
2019-05-24 13:07 | nitasujena | Reporter | pramodkumar => nitasujena |
2019-06-17 12:40 | nitasujena | Resolution time | 1545087600 => 1562536800 |
2019-06-17 12:40 | nitasujena | Type | design defect => defect |
2019-06-17 12:56 | Sandrahuguet | Assigned To | Triage Finance => collazoandy4 |
2019-06-18 09:56 | Sandrahuguet | Severity | major => minor |
2019-06-18 10:09 | Sandrahuguet | Review Assigned To | => Sandrahuguet |
2019-06-18 10:09 | Sandrahuguet | Note Added: 0112849 | |
2019-06-18 10:09 | Sandrahuguet | Status | new => closed |
2019-06-18 10:09 | Sandrahuguet | Resolution | open => no change required |
Copyright © 2000 - 2009 MantisBT Group |