Openbravo Issue Tracking System - Retail Modules
View Issue Details
0045519Retail ModulesDiscounts and Promotionspublic2020-11-27 00:162021-05-24 08:00
collazoandy4 
ranjith_qualiantech_com 
normalmajorhave not tried
closedfixed 
5
RR20Q1 
RR21Q1 
No
0045519: Wrong discount amount after cancel and replace a layaway
When a layaway with a discount applied in the same line where a product is flaged as item declaration is cancel and replaced, a wrong discount amount is calculated after decrease the quantity of a line with price modifications
As White Valley Group Admin Role
  Go to Price Modification Reason window and create a new record:
    Organization: *
    Name: Issue
  Go to Discounts and Promotions window and update disc_5_ var_perc record
    Remove Percentage Discount field value (5)
  Enable Web POS action Change price preference
  Go to Product window and update Avalanche Transceiver record:
    Item declaration: Y
Log in VBS-1 POS Terminal with vallblanca user
  Click on Layway This Receipt menu entry
  Set Arturo Montoro as customer in the receipt
  Add two units of Headlamp ultralight product
  Add Avalanche Transceiver product and set Description 1 in item declaration popup and Apply
  Select Headlamp ultralight record and update price to 18 and select previous record created as Price Modification Reason
  Select Avalanche Transceiver product
  Click on Discount button
  Add disc_5_ var_perc discount record with a value of 25
  Check a new discount record is created for Avalanche Transceiver product with a value of -37.63
  Click on Checkout button
  Click on Layway button to synchronize the receipt in the backend
  Click on Open Receipt menu entry
  Open the previous layway
  Click on Cancel and Replace button
  Select Headlamp ultralight record
  Update line quantity to one unit
  Check the Avalanche Transceiver discount amount is updated to -56.63
No tags attached.
diff 45519_20Q1_posterminal.diff (1,824) 2020-12-14 08:51
https://issues.openbravo.com/file_download.php?file_id=15153&type=bug
Issue History
2020-11-27 00:16collazoandy4New Issue
2020-11-27 00:16collazoandy4Assigned To => Retail
2020-11-27 00:16collazoandy4Resolution time => 1607554800
2020-11-27 00:16collazoandy4Triggers an Emergency Pack => No
2020-11-27 00:17collazoandy4version => RR20Q1
2020-12-03 07:38ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2020-12-07 08:28ranjith_qualiantech_comStatusnew => scheduled
2020-12-07 08:28ranjith_qualiantech_comFile Added: 45519_20Q1_posterminal.diff
2020-12-11 07:32marvintmResolution time1607554800 => 1608246000
2020-12-14 06:11ranjith_qualiantech_comFile Deleted: 45519_20Q1_posterminal.diff
2020-12-14 08:51ranjith_qualiantech_comFile Added: 45519_20Q1_posterminal.diff
2020-12-14 16:34hgbotNote Added: 0124810
2020-12-14 16:34hgbotNote Added: 0124811
2020-12-15 08:21hgbotResolutionopen => fixed
2020-12-15 08:21hgbotStatusscheduled => closed
2020-12-15 08:21hgbotNote Added: 0124820
2020-12-15 08:21hgbotFixed in Version => RR21Q1
2020-12-15 08:21hgbotNote Added: 0124821
2021-05-24 08:00hgbotNote Added: 0128535
2021-05-24 08:00hgbotNote Added: 0128536

Notes
(0124810)
hgbot   
2020-12-14 16:34   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/210 [^]
(0124811)
hgbot   
2020-12-14 16:34   
Merge Request created: https://gitlab.com/openbravo/ci/mobile-test/-/merge_requests/61 [^]
(0124820)
hgbot   
2020-12-15 08:21   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/210 [^]
(0124821)
hgbot   
2020-12-15 08:21   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: 4b8bee6bef4b31fce06590ffdd215d54bc37603c
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 2020-12-15T07:21:09+00:00
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/4b8bee6bef4b31fce06590ffdd215d54bc37603c [^]

Fixed ISSUE-45519: Manual Promotions should be created when doing CR
When doing CR, manual promotions should be generated for new discount engine

---
M web/org.openbravo.retail.posterminal/js/model/order.js
M web/org.openbravo.retail.posterminal/js/utils/ticketListUtils.js
---
(0128535)
hgbot   
2021-05-24 08:00   
Repository: https://gitlab.com/openbravo/ci/mobile-test [^]
Changeset: 41d247387852f4db9166e402849804856437071c
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 2021-05-24T05:59:51+00:00
URL: https://gitlab.com/openbravo/ci/mobile-test/-/commit/41d247387852f4db9166e402849804856437071c [^]

Verifies ISSUE-45519: Added automated test I45519_VerifyCancelReplaceWithManualPromotions

---
A src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/cancelandreplace/I45519_VerifyCancelReplaceWithManualPromotions.java
---
(0128536)
hgbot   
2021-05-24 08:00   
Merge request merged: https://gitlab.com/openbravo/ci/mobile-test/-/merge_requests/61 [^]