Openbravo Issue Tracking System - Retail Modules
View Issue Details
0042783Retail ModulesDiscounts and Promotionspublic2020-01-09 17:202020-02-05 11:51
inaki_garcia 
ranjith_qualiantech_com 
immediatemajoralways
closedfixed 
5
main 
RR20Q2 
guilleaer
Production - Confirmed Stable
2019-04-24
RR19Q3
https://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/557f917bedfd2ff7e66f51742062675c996c1121 [^]
No
0042783: [20Q1] POS gets stuck when adding a "Pack" product after using the "Receipt discounts" feature on Galaxy Tab A6
Adding a product or a pack with several discounts causes the POS to get locked up by the "Wait while calculating receipt..." loading popup after using the "Receipt
discounts" feature.

This issue is a regression that has been proven to be reproducible since the 19Q3.2 livebuild. It is not reproducible in the 19Q2.3 livebuild. This has been tested using
the Galaxy Tab A6 tablet.
0. Log in the POS as user 'vallblanca' in the VBS-1 terminal
1. Add a product to the ticket
2. Click on the "Receipt discounts" feature from the dropdown menu, and exit from it by clicking the "Cancel" button that appears in the orange pane to the right
3. Click on the "BROWSE" button to select the Pack category, and try to add the "Camping Pack" item to the ticket
NOTICE that the "Wait while calculating receipt..." loading popup appears and remains there, leaving the POS unusable
Refreshing the page works as a workaround to continue working.
No tags attached.
depends on backport 0042858RR20Q1 closed ranjith_qualiantech_com [20Q1] POS gets stuck when adding a "Pack" product after using the "Receipt discounts" feature on Galaxy Tab A6 
depends on backport 0042859RR19Q4.2 closed ranjith_qualiantech_com [20Q1] POS gets stuck when adding a "Pack" product after using the "Receipt discounts" feature on Galaxy Tab A6 
depends on backport 0042860RR19Q3.3 closed ranjith_qualiantech_com [20Q1] POS gets stuck when adding a "Pack" product after using the "Receipt discounts" feature on Galaxy Tab A6 
jpg tempFileForShare_20200109-171445.jpg (288,624) 2020-01-09 17:20
https://issues.openbravo.com/file_download.php?file_id=13790&type=bug
Issue History
2020-01-09 17:20inaki_garciaNew Issue
2020-01-09 17:20inaki_garciaAssigned To => Retail
2020-01-09 17:20inaki_garciaFile Added: tempFileForShare_20200109-171445.jpg
2020-01-09 17:20inaki_garciaTriggers an Emergency Pack => No
2020-01-09 17:26inaki_garciaPrioritynormal => immediate
2020-01-09 17:26inaki_garciaDescription Updatedbug_revision_view_page.php?rev_id=20062#r20062
2020-01-10 13:44inaki_garciaSummary[20Q1] POS gets stuck when adding a "Pack" product after using the "Receipt discounts" feature on touch devices => [20Q1] POS gets stuck when adding a "Pack" product after using the "Receipt discounts" feature on Galaxy Tab A6
2020-01-13 07:23ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2020-01-14 14:02ranjith_qualiantech_comRegression level => Production - Confirmed Stable
2020-01-14 14:02ranjith_qualiantech_comRegression date => 2019-04-24
2020-01-14 14:02ranjith_qualiantech_comRegression introduced in release => RR19Q3
2020-01-14 14:02ranjith_qualiantech_comRegression introduced by commit => https://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/557f917bedfd2ff7e66f51742062675c996c1121 [^]
2020-01-14 15:21marvintmStatusnew => scheduled
2020-01-17 06:54hgbotCheckin
2020-01-17 06:54hgbotNote Added: 0116959
2020-01-17 06:54hgbotStatusscheduled => resolved
2020-01-17 06:54hgbotResolutionopen => fixed
2020-01-17 06:54hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/24f0abb84f3b0c4445b39ae5a97308f828c3efa0 [^]
2020-02-05 11:51guilleaerReview Assigned To => guilleaer
2020-02-05 11:51guilleaerStatusresolved => closed
2020-02-05 11:51guilleaerFixed in Version => RR20Q2

Notes
(0116959)
hgbot   
2020-01-17 06:54   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 24f0abb84f3b0c4445b39ae5a97308f828c3efa0
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Fri Jan 17 11:24:07 2020 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/24f0abb84f3b0c4445b39ae5a97308f828c3efa0 [^]

Fixed issue 42783 : Receipt should not be calculated when adding pack products

* When adding pack products, calculateReceipt should be called only once

---
M web/org.openbravo.retail.posterminal/js/model/order.js
M web/org.openbravo.retail.posterminal/js/pointofsale/model/pointofsale-model.js
---