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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0039868
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Web POSmajoralways2019-01-02 17:112019-01-11 08:34
ReporterngarciaView Statuspublic 
Assigned Toranjith_qualiantech_com 
PriorityurgentResolutionfixedFixed in VersionRR19Q2
StatusclosedFix in branchFixed in SCM revision7b2b7eef0662
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Tomarvintm
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0039868: Some amounts and prices are rounded to 2 instead of using the currency's precisions

DescriptionSome amounts and prices are rounded to 2 instead of using the currency's precisions

web/org.openbravo.retail.posterminal/js/model/order.js: this.set('change', OB.DEC.abs(OB.DEC.sub(totalPaid, OB.Utilities.Number.roundJSNumber(total, 2), precision)));
web/org.openbravo.retail.posterminal/js/model/order.js: this.set('change', OB.DEC.abs(OB.DEC.sub(totalPaid, OB.Utilities.Number.roundJSNumber(total, 2), precision)));
web/org.openbravo.retail.posterminal/js/utils/ob-utilitiesuipos.js: newprice = OB.Utilities.Number.roundJSNumber(oldprice + amount / relatedQty, 2);
web/org.openbravo.retail.posterminal/js/utils/ob-utilitiesuipos.js: newprice = OB.Utilities.Number.roundJSNumber(oldprice + amount / relatedQty, 2);
web/org.openbravo.retail.posterminal/js/utils/ob-utilitiesuipos.js: newprice = OB.Utilities.Number.roundJSNumber(oldprice + price.at(0).get('listPrice'), 2);
web/org.openbravo.retail.posterminal/js/closecash/model/cashup-model.js: mod.set('difference', OB.DEC.sub(mod.get('counted'), OB.Utilities.Number.roundJSNumber(mod.get('expected'), 2)));
web/org.openbravo.retail.posterminal/js/closecash/model/cashup-model.js: mod.set('foreignDifference', OB.DEC.sub(mod.get('foreignCounted'), OB.Utilities.Number.roundJSNumber(mod.get('foreignExpected'), 2)));
web/org.openbravo.retail.posterminal/js/closecash/view/tabcashpayments.js: this.payment.set('foreignDifference', OB.DEC.sub(totalCounted, OB.Utilities.Number.roundJSNumber(this.payment.get('foreignExpected'), 2)));
web/org.openbravo.retail.posterminal/js/closecash/view/closecash.js: this.model.set("totalDifference", OB.DEC.sub(this.model.get('totalCounted'), OB.Utilities.Number.roundJSNumber(this.model.get('totalExpected'), 2)));
Steps To ReproduceThe terminal needs to be configured with a currency with more than two decimals such as OMR, BHR...

Prices should have also 3 decimals, so in order to configure them, the Format.xml file should be configured to show at least 3 decimals for amounts (euro...) and prices (price...)

Each case will have their steps to reproduce the problem
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to defect 0039618 closedrqueralta Cash Up goes to Errors While Importing POS Data if the currency has more than 2 decimals and negative total 
related to defect 0039861 closedranjith_qualiantech_com Under some circumstances Cash Up goes to Errors While Importing POS Data if the currency has more than 2 decimals 

-  Notes
(0108844)
hgbot (developer)
2019-01-07 16:14

Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 7b2b7eef0662a5d89dddf99a1e8b4afd4bcd91e4
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Mon Jan 07 20:43:34 2019 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/7b2b7eef0662a5d89dddf99a1e8b4afd4bcd91e4 [^]

Fixed issue 39868 : Removed static precision while doing mathematical operations

---
M web/org.openbravo.retail.posterminal/js/closecash/model/cashup-model.js
M web/org.openbravo.retail.posterminal/js/closecash/view/closecash.js
M web/org.openbravo.retail.posterminal/js/closecash/view/tabcashpayments.js
M web/org.openbravo.retail.posterminal/js/closecash/view/tabcashtokeep.js
M web/org.openbravo.retail.posterminal/js/model/order.js
M web/org.openbravo.retail.posterminal/js/utils/ob-utilitiesuipos.js
---

- Issue History
Date Modified Username Field Change
2019-01-02 17:11 ngarcia New Issue
2019-01-02 17:11 ngarcia Assigned To => Retail
2019-01-02 17:11 ngarcia Resolution time => 1548198000
2019-01-02 17:11 ngarcia Triggers an Emergency Pack => No
2019-01-02 17:11 ngarcia Relationship added related to 0039618
2019-01-02 17:12 ngarcia Issue Monitored: networkb
2019-01-02 17:16 ngarcia Steps to Reproduce Updated View Revisions
2019-01-02 17:17 ngarcia Steps to Reproduce Updated View Revisions
2019-01-03 09:38 rafaroda Issue Monitored: rafaroda
2019-01-04 10:40 ranjith_qualiantech_com Assigned To Retail => ranjith_qualiantech_com
2019-01-04 10:46 ranjith_qualiantech_com Status new => scheduled
2019-01-07 08:51 rafaroda Relationship added related to 0039861
2019-01-07 16:14 hgbot Checkin
2019-01-07 16:14 hgbot Note Added: 0108844
2019-01-07 16:14 hgbot Status scheduled => resolved
2019-01-07 16:14 hgbot Resolution open => fixed
2019-01-07 16:14 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/7b2b7eef0662a5d89dddf99a1e8b4afd4bcd91e4 [^]
2019-01-11 08:34 marvintm Review Assigned To => marvintm
2019-01-11 08:34 marvintm Status resolved => closed
2019-01-11 08:34 marvintm Fixed in Version => RR19Q2


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker