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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0039734
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] 07. Sales managementminoralways2018-12-03 11:502019-06-18 10:09
ReporternitasujenaView Statuspublic 
Assigned Tocollazoandy4 
PriorityhighResolutionno change requiredFixed in Version
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionmainSCM revision 
Review Assigned ToSandrahuguet
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0039734: rounding error in number to word module

DescriptionThere 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 Reproduce1. 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.
TagsNo 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 Triggers an Emergency Pack => No
2019-05-24 13:07 nitasujena Reporter pramodkumar => nitasujena
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
Powered by Mantis Bugtracker