Openbravo Issue Tracking System - Retail Modules
View Issue Details
0032997Retail ModulesWeb POSpublic2016-05-19 11:322016-06-13 11:23
ebecerra 
jorge-garcia 
normalmajoralways
closedfixed 
5
 
 
marvintm
No
0032997: [SERQA 1116] Manual promotions and quantities
When a manual promotion is applied the rule set 'qtyOffer' to line quantity. If the quantity is changed later the 'qtyOffer' not change according the new quantity.
Case 1:

1. Add a product to receipt
2. Change line quantity to 6
3. Apply a manual promotion

  - In Developer Console:
     OB.MobileApp.model.receipt.get('lines').at(0).get('promotions')
        * obdiscQtyoffer: 6
        * pendingQtyOffer: 6
        * qtyOffer: 6

Case 2:

1. Add a product to receipt
2. Apply a manual promotion

  - In Developer Console:
     OB.MobileApp.model.receipt.get('lines').at(0).get('promotions')
        * obdiscQtyoffer: 1
        * pendingQtyOffer: 1
        * qtyOffer: 1

3. Change line quantity to 6

  - In Developer Console:
     OB.MobileApp.model.receipt.get('lines').at(0).get('promotions')
        * obdiscQtyoffer: 1
        * pendingQtyOffer: 1
        * qtyOffer: 1

SER-QA
Issue History
2016-05-19 11:32ebecerraNew Issue
2016-05-19 11:32ebecerraAssigned To => Retail
2016-05-19 11:32ebecerraTriggers an Emergency Pack => No
2016-05-19 11:40ebecerraSummaryPromotions and split lines => Manual promotions and quantities
2016-05-19 11:40ebecerraDescription Updatedbug_revision_view_page.php?rev_id=12160#r12160
2016-05-19 11:40ebecerraSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=12162#r12162
2016-05-19 11:51ebecerraSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=12163#r12163
2016-05-19 12:51amayavicenteSummaryManual promotions and quantities => [SERQA 1116] Manual promotions and quantities
2016-05-19 12:52amayavicenteTag Attached: SER-QA
2016-05-20 11:48OrekariaStatusnew => acknowledged
2016-05-23 12:39jorge-garciaStatusacknowledged => scheduled
2016-05-23 12:39jorge-garciaAssigned ToRetail => jorge-garcia
2016-05-25 11:39hgbotCheckin
2016-05-25 11:39hgbotNote Added: 0086735
2016-05-25 11:40hgbotCheckin
2016-05-25 11:40hgbotNote Added: 0086737
2016-05-25 11:40hgbotStatusscheduled => resolved
2016-05-25 11:40hgbotResolutionopen => fixed
2016-05-25 11:40hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/dc5a55b15d77527bbae7b48e65c5f63622e5f504 [^]
2016-06-13 11:23marvintmReview Assigned To => marvintm
2016-06-13 11:23marvintmStatusresolved => closed

Notes
(0086735)
hgbot   
2016-05-25 11:39   
Repository: tools/automation/pi-mobile
Changeset: 5dbc85cc121e4d809c7d7c2673c9644b10bcedd2
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Mon May 23 13:10:02 2016 +0200
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/5dbc85cc121e4d809c7d7c2673c9644b10bcedd2 [^]

Verifies issue 32997: [SERQA 1116] Manual promotions and quantities

Added test I32997_ManualPromotionInformation.

---
A src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/discountsandpromotions/I32997_ManualPromotionInformation.java
---
(0086737)
hgbot   
2016-05-25 11:40   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: dc5a55b15d77527bbae7b48e65c5f63622e5f504
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Mon May 23 13:11:55 2016 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/dc5a55b15d77527bbae7b48e65c5f63622e5f504 [^]

Fixed issue 32997: [SERQA 1116] Manual promotions and quantities

The solution is to reset the qtyOffer from the promotion.

---
M web/org.openbravo.retail.posterminal/js/model/discounts.js
---