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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0045360
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Web POSmajorhave not tried2020-11-02 18:302020-11-16 06:48
ReporterAugustoMauchView Statuspublic 
Assigned Toranjith_qualiantech_com 
PrioritynormalResolutionfixedFixed in VersionRR21Q1
StatusclosedFix 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

0045360: Problem on bom taxes calculation if an adjustment is required

DescriptionWhen calculating the line BOM taxes, there will be an error if an adjustment has to be done. This line will be executed [1] and it will fail because the OB.DEC.add function requires two arguments.

[1] https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/blob/master/web/org.openbravo.retail.posterminal/app/model/business-logic/taxes-engine/engine/tax-rules.js#L112 [^]
Steps To ReproduceI have not been able to reproduce it in standard retail, but the error is evident enough in line https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/blob/master/web/org.openbravo.retail.posterminal/app/model/business-logic/taxes-engine/engine/tax-rules.js#L112 [^]
Proposed SolutionJust replace

bomGroup.amount = OB.DEC.add(bomGroup.amount);

with

bomGroup.amount = OB.DEC.add(adjustment, bomGroup.amount);
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0124249)
hgbot (developer)
2020-11-10 04:11

Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/162 [^]
(0124379)
hgbot (developer)
2020-11-16 06:48

Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: 1b50771c2c26a4bcfbbc09bc0a9865c7fab358aa
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 2020-11-16T05:48:26+00:00
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/1b50771c2c26a4bcfbbc09bc0a9865c7fab358aa [^]

Fixed ISSUE-45360: Adding missing param in BOM Tax amount calculation

---
M web/org.openbravo.retail.posterminal/app/model/business-logic/taxes-engine/engine/tax-rules.js
---
(0124380)
hgbot (developer)
2020-11-16 06:48

Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/162 [^]

- Issue History
Date Modified Username Field Change
2020-11-02 18:30 AugustoMauch New Issue
2020-11-02 18:30 AugustoMauch Assigned To => Retail
2020-11-02 18:30 AugustoMauch Triggers an Emergency Pack => No
2020-11-09 06:54 ranjith_qualiantech_com Assigned To Retail => ranjith_qualiantech_com
2020-11-10 04:11 hgbot Note Added: 0124249
2020-11-11 05:09 ranjith_qualiantech_com Status new => scheduled
2020-11-16 06:48 hgbot Resolution open => fixed
2020-11-16 06:48 hgbot Status scheduled => closed
2020-11-16 06:48 hgbot Fixed in Version => RR21Q1
2020-11-16 06:48 hgbot Note Added: 0124379
2020-11-16 06:48 hgbot Note Added: 0124380


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker