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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0028925
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Web POSminoralways2015-02-12 13:562015-02-12 13:56
ReporterOrekariaView Statuspublic 
Assigned Tomarvintm 
PrioritynormalResolutionopenFixed in Version
StatusnewFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0028925: Refactor the cash management rate conversion to use the Currency API

DescriptionRefactor the cash management rate conversion to use the Currency Conversion API
Steps To ReproduceVerify that in the 'cashmgmt-model.js' file, the amount and origamount are not using the Currency API:

          amount: OB.DEC.mul(p.amount, p.rate),
          origAmount: p.amount,
Proposed SolutionClose example can be found in 'cashup-model.js' lines 180-188

          var fromCurrencyId = auxPay.paymentMethod.currency;
          cashUpReport.get('deposits').push(new Backbone.Model({
            searchKey: p.get('searchKey'),
            origAmount: OB.UTIL.currency.toDefaultCurrency(fromCurrencyId, OB.DEC.add(p.get('totalDeposits'), p.get('totalSales'))),
            amount: OB.DEC.add(0, OB.DEC.add(p.get('totalDeposits'), p.get('totalSales'))),
            description: p.get('name'),
            isocode: auxPay.isocode,
            rate: p.get('rate')
          }));


The reason is that we need to centralize all currency conversion operations
- for easier maintenance
- because we have a precission bug that will be solved in a centralized way
- easier custom developments
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
blocks defect 0028916 closedguillermogil Doing a cash management with a different currency than the original generates wrong data 

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2015-02-12 13:56 Orekaria New Issue
2015-02-12 13:56 Orekaria Assigned To => marvintm
2015-02-12 13:56 Orekaria Triggers an Emergency Pack => No
2015-02-12 13:56 Orekaria Relationship added blocks 0028916


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker