Openbravo Issue Tracking System - Retail Modules
View Issue Details
0039587Retail ModulesWeb POSpublic2018-10-22 12:362018-11-19 15:58
anderaranguren 
jorge-garcia 
normalmajoralways
closedfixed 
5
pi 
RR18Q3.3RR18Q3.3 
marvintm
No
0039587: It is not possible to apply a manual promotion/discount to a negative line
It is not possible to apply a manual promotion/discount to a negative line
1) Log in the WebPOS
2) Add a gps handheld and see that a discount is applied to the line
3) Go to menu and click on return this ticket.
4) The discount dissapears
No tags attached.
blocks defect 0039495 closed jorge-garcia It is not possible to apply a manual promotion/discount to a negative line 
Issue History
2018-11-05 19:04marvintmTypedefect => backport
2018-11-05 19:04marvintmTarget Version => RR18Q3.3
2018-11-14 10:51hgbotCheckin
2018-11-14 10:51hgbotNote Added: 0107899
2018-11-14 10:51hgbotStatusscheduled => resolved
2018-11-14 10:51hgbotResolutionopen => fixed
2018-11-14 10:51hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.retail.discounts/rev/fe8ab59ffca2688550e2a9dfbe294339a5acb446 [^] => http://code.openbravo.com/retail/backports/3.0RR18Q3.3/org.openbravo.retail.discounts/rev/61e1d7e394ed8303034bfec3bb9018b36a4f5b9a [^]
2018-11-14 10:51hgbotCheckin
2018-11-14 10:51hgbotNote Added: 0107900
2018-11-14 10:51hgbotCheckin
2018-11-14 10:51hgbotNote Added: 0107901
2018-11-19 15:58marvintmReview Assigned To => marvintm
2018-11-19 15:58marvintmStatusresolved => closed
2018-11-19 15:58marvintmFixed in Version => RR18Q3.3

Notes
(0107899)
hgbot   
2018-11-14 10:51   
Repository: retail/backports/3.0RR18Q3.3/org.openbravo.retail.discounts
Changeset: 61e1d7e394ed8303034bfec3bb9018b36a4f5b9a
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Wed Nov 14 10:11:02 2018 +0100
URL: http://code.openbravo.com/retail/backports/3.0RR18Q3.3/org.openbravo.retail.discounts/rev/61e1d7e394ed8303034bfec3bb9018b36a4f5b9a [^]

Fixed issue 39587: It is not possible to apply a manual promotion/discount
to a negative line

This commit includes:
  * Definition of a new column in m_offer table
  * A new field in discounts and promotions to allow to apply manual promotions
    to negative lines.
  * Change manual percentage calculation to work with negative lines.

---
M src-db/database/model/modifiedTables/M_OFFER.xml
M src-db/database/sourcedata/AD_COLUMN.xml
M src-db/database/sourcedata/AD_ELEMENT.xml
M src-db/database/sourcedata/AD_FIELD.xml
M web/org.openbravo.retail.discounts/js/promotion-manual.js
---
(0107900)
hgbot   
2018-11-14 10:51   
Repository: retail/backports/3.0RR18Q3.3/org.openbravo.retail.posterminal
Changeset: bbbe226553711432d59b792ad78eee80695bd171
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Wed Nov 14 10:09:02 2018 +0100
URL: http://code.openbravo.com/retail/backports/3.0RR18Q3.3/org.openbravo.retail.posterminal/rev/bbbe226553711432d59b792ad78eee80695bd171 [^]

Related to issue 39587: It is not possible to apply a manual promotion/discount
to a negative line

Change message to indicate current promotion could not be applied to negative
lines.

Use new flag definition to allow or to deny apply a manual promotion to a
negative line.

Save flag value in promotion applied.

If the user change the quantity of the line using Return Line button or Return
this receipt, even if the manual promotion is marked to be applied in negative
lines, the discount disappears.

The problem now is fixed for both cases.

---
M src-db/database/sourcedata/AD_MESSAGE.xml
M web/org.openbravo.retail.posterminal/js/model/discounts.js
M web/org.openbravo.retail.posterminal/js/model/order.js
---
(0107901)
hgbot   
2018-11-14 10:51   
Repository: retail/backports/3.0RR18Q3.3/org.openbravo.retail.sampledata
Changeset: de482f4579364074f059d4dcda96f7ab5e922da4
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Wed Nov 14 10:17:53 2018 +0100
URL: http://code.openbravo.com/retail/backports/3.0RR18Q3.3/org.openbravo.retail.sampledata/rev/de482f4579364074f059d4dcda96f7ab5e922da4 [^]

Related to issue 39587: It is not possible to apply a manual promotion/discount
to a negative line

Add sampledata due to new column definition.

---
M referencedata/sampledata/The_White_Valley_Group/M_OFFER.xml
---