Openbravo Issue Tracking System - Retail Modules
View Issue Details
0039573Retail ModulesWeb POSpublic2018-10-31 09:552019-06-20 14:10
barbararoncato 
ranjith_qualiantech_com 
normalmajoralways
closedfixed 
5
 
RR19Q2 
guilleaer
No
0039573: Issue when discount category "Price Adjustment" is active
If the discount type "Price Adjustment" is set as "active" it automatically applies a discount to every product that is added to WebPOS, which causes conflicts when trying to delete a line, for example.

1. Login to backend
2. Open Discounts and Promotions window.
3. Search by Discount/Promotion Type = Price Adjustment.
4. Mark it as active.
5. Login to WebPOS
6. Add any product
--- Note that there is a discount being automatically applied to the product.
7. Click on the product line and try to delete it.
--- The system stops working and it's necessary to refesh the page.

Video: https://www.useloom.com/share/614e2f42baa74bfd89534ed084b04fe0 [^]

Alternative way to reproduce
Backoffice
1) Create New Discounts and Promotions "Price Adjustment Zero" with type as "Price Adjustment", Discount % and Discount Amount as 0
2) Enable "Web POS Save Removed Tickets" preference

POS
1) Add Product (Make sure discount "Price Adjustment Zero" is applied to the line)
2) Remove the line using Delete Button in the Edit tab

POS became inaccessible
No tags attached.
Issue History
2018-10-31 09:55barbararoncatoNew Issue
2018-10-31 09:55barbararoncatoAssigned To => Retail
2018-10-31 09:55barbararoncatoTriggers an Emergency Pack => No
2018-12-24 13:59marvintmResolution time => 1546902000
2018-12-24 14:01marvintmSeverityminor => major
2018-12-27 13:59ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2018-12-28 11:03ranjith_qualiantech_comSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=18079#r18079
2018-12-28 11:07ranjith_qualiantech_comStatusnew => scheduled
2019-01-03 07:54hgbotCheckin
2019-01-03 07:54hgbotNote Added: 0108797
2019-01-03 07:54hgbotStatusscheduled => resolved
2019-01-03 07:54hgbotResolutionopen => fixed
2019-01-03 07:54hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/2125dc4341af57380adb432434fde00f9f684f2e [^]
2019-01-03 07:54hgbotCheckin
2019-01-03 07:54hgbotNote Added: 0108798
2019-01-03 09:56guilleaerReview Assigned To => guilleaer
2019-01-03 09:56guilleaerStatusresolved => closed
2019-01-03 09:56guilleaerFixed in Version => RR19Q2
2019-06-20 14:10martinsdanIssue Monitored: martinsdan

Notes
(0108797)
hgbot   
2019-01-03 07:54   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 2125dc4341af57380adb432434fde00f9f684f2e
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Thu Jan 03 12:24:01 2019 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/2125dc4341af57380adb432434fde00f9f684f2e [^]

Fixed issue 39573 : Line discountedLinePrice attribute should be removed when the line qty is zero

* If Save Removed Ticket Pref. is enabled, quantity will be zero which result in wrong calculation of discountedLinePrice
  So, when line quantity is zero, attribute discountedLinePrice should be removed from the line

---
M web/org.openbravo.retail.posterminal/js/model/order.js
---
(0108798)
hgbot   
2019-01-03 07:54   
Repository: tools/automation/pi-mobile
Changeset: 13834085471920f59cc8cf10e850188dec1fdc61
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Thu Jan 03 12:24:25 2019 +0530
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/13834085471920f59cc8cf10e850188dec1fdc61 [^]

Verifies issue 39573 : Added Automated Test "I39573_VerifyReceiptWithZeroDiscount"

---
A src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/discountsandpromotions/I39573_VerifyReceiptWithZeroDiscount.java
---