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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0048273
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[POS2] Restaurantsmajoralways2021-12-17 12:232022-01-17 09:10
ReportermmohammadView Statuspublic 
Assigned Toranjith_qualiantech_com 
PrioritynormalResolutionfixedFixed in Version
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

0048273: Jira 2579 [TAP] The rounding calculation is not always correct in verified return with discount

DescriptionIn the test environment, there are an issue on the verified return with discount. The rounding calculation is not correct where there are more than one quantity for a same product. There are a lot of product with a price finished by 0.95.

I can reproduce it on livebuilds
Steps To Reproduce1. In the back office, go to Price list and find the list "The White Valley Group Sale Price List Version". Use the role White Valley Group Admin
2. In the tab Product price , find Adhesive body warmers : change the price to 3.95 (unit price and list price)
3. Create a promotion (Fixed Percentage per Total Amount) with fixed percentage of 10%
4. Go to WEBPOS and log in, Update datas on WEBPOS, log out and log in.
5. Choose the product Adhesive body warmers and select it 2 times
6. Apply a disount of 10% Fixed Percentage per Total Amount (previously created)
7. Pay for the receipt.
8. Now make a verified return on the whole receipt => the price of return is not the same as the initial receipt
TagsNo tags attached.
Attached Filespdf file icon jira 2579- Verified Returns with discount.pdf [^] (712,685 bytes) 2022-01-11 17:54

- Relationships Relation Graph ] Dependency Graph ]
related to defect 0048248 closedranjith_qualiantech_com Retail Modules Wrong ticket amount when doing a Verified Return of a ticket with discount 
depends on backport 0048371TAP closedranjith_qualiantech_com POS2 Jira 2579 [TAP] The rounding calculation is not always correct in verified return with discount 
related to defect 0052399 closedalainperez Retail Modules Error with Reverse Payment - WebPos 
blocks defect 0048148 closedRetail POS2 Verified returns and discounts are not having a correct behavior (Umbrella issue) 

-  Notes
(0134310)
hgbot (developer)
2022-01-17 08:31

Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/689 [^]
(0134311)
hgbot (developer)
2022-01-17 08:31

Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/779 [^]
(0134313)
hgbot (developer)
2022-01-17 09:10

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: 0a9697afabf8331d1f3ef0cce3b8a46abfd5116a
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 17-01-2022 12:53:48
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/0a9697afabf8331d1f3ef0cce3b8a46abfd5116a [^]

Related to ISSUE-48273: DiscountAmount should be used to calculate grossAmount
* In Verfied returns, when showing lines in the returns popup
  grossUnitAmount should be baseGrossUnitAmount subtracted with discountAmount

---
M web-jspack/org.openbravo.pos2/src/components/TicketLineRenderCell/TicketLineRenderCell.jsx
---
(0134314)
hgbot (developer)
2022-01-17 09:10

Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/779 [^]
(0134315)
hgbot (developer)
2022-01-17 09:10

Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/689 [^]
(0134316)
hgbot (developer)
2022-01-17 09:10

Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: 3ea676dc5fa7fa6e8cc5377db478a2d8a8ea20ac
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 17-01-2022 12:54:01
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/3ea676dc5fa7fa6e8cc5377db478a2d8a8ea20ac [^]

Fixed ISSUE-48273: DiscountAmount should be used to calculate line grossAmount
* When calculating line grossAmount with skipPromotion enabled,
  grossUnitAmount should be baseGrossUnitAmount subtracted with discountAmount

---
M web-test/model/business-object/ticket/CalculateTotalsModelHook.test.js
M web/org.openbravo.retail.posterminal/app/model/business-object/ticket/TicketUtils.js
---

- Issue History
Date Modified Username Field Change
2021-12-17 12:23 mmohammad New Issue
2021-12-17 12:23 mmohammad Assigned To => Retail
2021-12-17 12:23 mmohammad Triggers an Emergency Pack => No
2022-01-11 08:47 guilleaer Relationship added blocks 0048148
2022-01-11 08:47 guilleaer Status new => scheduled
2022-01-11 08:47 guilleaer Assigned To Retail => ranjith_qualiantech_com
2022-01-11 17:48 mmohammad File Added: jira 2579- Verified Returns with discount.pdf
2022-01-11 17:51 mmohammad Steps to Reproduce Updated View Revisions
2022-01-11 17:54 mmohammad File Deleted: jira 2579- Verified Returns with discount.pdf
2022-01-11 17:54 mmohammad File Added: jira 2579- Verified Returns with discount.pdf
2022-01-12 08:42 ranjith_qualiantech_com Relationship added related to 0048248
2022-01-17 08:31 hgbot Note Added: 0134310
2022-01-17 08:31 hgbot Note Added: 0134311
2022-01-17 09:10 hgbot Note Added: 0134313
2022-01-17 09:10 hgbot Note Added: 0134314
2022-01-17 09:10 hgbot Resolution open => fixed
2022-01-17 09:10 hgbot Status scheduled => closed
2022-01-17 09:10 hgbot Note Added: 0134315
2022-01-17 09:10 hgbot Fixed in Version => RR22Q2
2022-01-17 09:10 hgbot Note Added: 0134316
2023-05-24 09:59 aaroncalero Relationship added related to 0052399


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker