Openbravo Issue Tracking System - Openbravo ERP | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0039734 | Openbravo ERP | 07. Sales management | public | 2018-12-03 11:50 | 2019-06-18 10:09 |
Reporter | nitasujena | ||||
Assigned To | collazoandy4 | ||||
Priority | high | Severity | minor | Reproducibility | always |
Status | closed | Resolution | no change required | ||
Platform | OS | 5 | OS Version | ||
Product Version | main | ||||
Target Version | Fixed in Version | ||||
Merge Request Status | |||||
Review Assigned To | Sandrahuguet | ||||
OBNetwork customer | |||||
Web browser | |||||
Modules | Core | ||||
Support ticket | |||||
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. | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
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 |
Notes | |||||
|
|||||
|
|