Openbravo Issue Tracking System - Retail Modules
View Issue Details
0047676Retail ModulesWeb POSpublic2021-07-14 11:302021-09-13 10:14
ferran_nicasi 
prakashmurugesan88 
highmajoralways
closedfixed 
5
RR20Q1 
RR21Q3.2RR21Q3.2 
No
0047676: Cancel & Replace has 2 issues
When doing a C&R of an order with services and discounts attached.

1-The total quantity is changed automatically to a wrong number.
2-And when changing the quantity of the service, all discounts are lost.
1 - Create a layaway with a product and service attached.
2 - Add discounts of different values to all the lines.
3 - Synchronize this layway.
4 - Open it again and do "Cancel and Replace". <- First issue
5 - Change quantity of the service to 2. <- Second issue


Video with steps taken: https://drive.google.com/file/d/1fJxqVrNeImPuWdq0JSzzXcRd7bUERBe-/view [^]
No tags attached.
blocks defect 0047393 closed prakashmurugesan88 Cancel & Replace has 2 issues 
Issue History
2021-09-13 09:47marvintmTypedefect => backport
2021-09-13 09:47marvintmTarget Version => RR21Q3.2
2021-09-13 10:09hgbotNote Added: 0131730
2021-09-13 10:09hgbotNote Added: 0131731
2021-09-13 10:14hgbotNote Added: 0131732
2021-09-13 10:14hgbotResolutionopen => fixed
2021-09-13 10:14hgbotStatusscheduled => closed
2021-09-13 10:14hgbotFixed in Version => RR21Q3.2
2021-09-13 10:14hgbotNote Added: 0131733
2021-09-13 10:14hgbotNote Added: 0131734
2021-09-13 10:14hgbotNote Added: 0131735

Notes
(0131730)
hgbot   
2021-09-13 10:09   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts/-/merge_requests/36 [^]
(0131731)
hgbot   
2021-09-13 10:09   
Merge Request created: https://gitlab.com/openbravo/ci/mobile-test/-/merge_requests/128 [^]
(0131732)
hgbot   
2021-09-13 10:14   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts/-/merge_requests/36 [^]
(0131733)
hgbot   
2021-09-13 10:14   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts [^]
Changeset: 58c945d875827b8c6b35d1e7b18555687c0393ec
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 2021-09-13T13:22:30+05:30
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts/-/commit/58c945d875827b8c6b35d1e7b18555687c0393ec [^]

Fixed ISSUE-47676: Discounts getting removed on increasing qty in CancelAndReplace line
* Included manual promotions in discount engine

---
M web/org.openbravo.retail.discounts/app/model/business-logic/discounts-engine/interface/discount-posinterface.js
---
(0131734)
hgbot   
2021-09-13 10:14   
Repository: https://gitlab.com/openbravo/ci/mobile-test [^]
Changeset: 8bc4db7763a00484806f5d72e0aa4d41168a61eb
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 2021-09-13T13:32:00+05:30
URL: https://gitlab.com/openbravo/ci/mobile-test/-/commit/8bc4db7763a00484806f5d72e0aa4d41168a61eb [^]

Verified ISSUE-47676: Added Automated Tests to verify CR with discounts

---
A src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/discountsandpromotions/I47676_VerifyDiscountWithCancelReplaceAndIncreaseQty.java
A src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/discountsandpromotions/I47676_VerifyPriceAdjustmentDiscountWithCancelAndReplaceAndIncreaseQty.java
---
(0131735)
hgbot   
2021-09-13 10:14   
Merge request merged: https://gitlab.com/openbravo/ci/mobile-test/-/merge_requests/128 [^]