Openbravo Issue Tracking System - Retail Modules |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0030298 | Retail Modules | Discounts and Promotions | public | 2015-06-15 10:28 | 2015-08-14 14:26 |
|
Reporter | asiermartirena | |
Assigned To | Retail | |
Priority | immediate | Severity | trivial | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | RR15Q3 | Fixed in Version | | |
Merge Request Status | |
Review Assigned To | marvintm |
OBNetwork customer | |
Support ticket | |
Regression level | Code review |
Regression date | 2015-05-05 |
Regression introduced in release | main |
Regression introduced by commit | https://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/a1c1c77a3384b2225f92d600ae03073ada0c5c0d [^] |
Triggers an Emergency Pack | No |
|
Summary | 0030298: Problem with identifier attribute created to show discounts |
Description | When adding a promotion to a product list, an identifier attribute is generated to show a customized name for that promotion. Then, when rendering the line that identifier value is taken and assigned to show in the discount line.
This identifier is not stored in any column in database, so when someone tries to generate again the ticket (for example when creating a return ticket), the line renderization tries to access to the not stored identifier value. This casuses that 'undefined' value is shown for the recovered discount line. |
Steps To Reproduce | Create a ticket and add a discount to a product. Pay the ticket.
Return the ticket and select the product with the discount.
In the order created the discount will be shown with the name 'undefined'. |
Proposed Solution | Create a new column to store the identifier value, and only fill it if the identifier is needed. Then, when creating the discount component don't assign the identifier directly. Check if the identifier is filled, and else assign the name value. |
Additional Information | |
Tags | No tags attached. |
Relationships | blocks | defect | 0030176 | | closed | jorge-garcia | Problem with identifier attribute created to show discounts |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2015-07-02 10:03 | marvintm | Type | defect => backport |
2015-07-02 10:03 | marvintm | Target Version | => RR15Q3 |
2015-08-07 14:13 | hgbot | Checkin | |
2015-08-07 14:13 | hgbot | Note Added: 0079256 | |
2015-08-07 14:13 | hgbot | Status | scheduled => resolved |
2015-08-07 14:13 | hgbot | Resolution | open => fixed |
2015-08-07 14:13 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/retail/backports/3.0RR15Q3/org.openbravo.retail.discounts/rev/5430efba69f71959af98874aa08ab66a56bd774d [^] |
2015-08-07 14:15 | hgbot | Checkin | |
2015-08-07 14:15 | hgbot | Note Added: 0079259 | |
2015-08-11 10:00 | hgbot | Checkin | |
2015-08-11 10:00 | hgbot | Note Added: 0079303 | |
2015-08-12 12:55 | marvintm | Review Assigned To | => marvintm |
2015-08-12 12:55 | marvintm | Status | resolved => closed |
2015-08-14 13:26 | hgbot | Checkin | |
2015-08-14 13:26 | hgbot | Note Added: 0079357 | |
2015-08-14 13:26 | hgbot | Checkin | |
2015-08-14 13:26 | hgbot | Note Added: 0079359 | |
2015-08-14 14:26 | hgbot | Checkin | |
2015-08-14 14:26 | hgbot | Note Added: 0079362 | |
Notes |
|
(0079256)
|
hgbot
|
2015-08-07 14:13
|
|
Repository: retail/backports/3.0RR15Q3/org.openbravo.retail.discounts
Changeset: 5430efba69f71959af98874aa08ab66a56bd774d
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Mon Aug 03 09:46:20 2015 +0200
URL: http://code.openbravo.com/retail/backports/3.0RR15Q3/org.openbravo.retail.discounts/rev/5430efba69f71959af98874aa08ab66a56bd774d [^]
Fixed issue 30298: Problem with identifier attribute created to show discounts
The problem was that the identifier of the issue is not saved in the database.
The solution is to create a new column that stores the identifier, and retrieve
the discount identifier from the database.
---
M src-db/database/model/modifiedTables/C_ORDERLINE_OFFER.xml
M src-db/database/sourcedata/AD_COLUMN.xml
M src-db/database/sourcedata/AD_ELEMENT.xml
---
|
|
|
(0079259)
|
hgbot
|
2015-08-07 14:15
|
|
Repository: retail/backports/3.0RR15Q3/org.openbravo.retail.posterminal
Changeset: 176570e17b3093206214d6a2cc7f9f740261681d
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Fri Aug 07 14:10:39 2015 +0200
URL: http://code.openbravo.com/retail/backports/3.0RR15Q3/org.openbravo.retail.posterminal/rev/176570e17b3093206214d6a2cc7f9f740261681d [^]
Related to issue 30298: Changed needed in posterminal module
Some changes are required for the implementation of the discounts module
changes.
---
M src/org/openbravo/retail/posterminal/OrderLoader.java
M src/org/openbravo/retail/posterminal/PaidReceipts.java
M web/org.openbravo.retail.posterminal/js/components/renderorderline.js
---
|
|
|
(0079303)
|
hgbot
|
2015-08-11 10:00
|
|
|
|
(0079357)
|
hgbot
|
2015-08-14 13:26
|
|
|
|
(0079359)
|
hgbot
|
2015-08-14 13:26
|
|
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: acfc788c2c5ce9401c9fe9a1d1a4e5a30d9082aa
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Fri Aug 07 14:10:39 2015 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/acfc788c2c5ce9401c9fe9a1d1a4e5a30d9082aa [^]
Fixes issue 30176, port of issue 30298: Changed needed in posterminal module
Some changes are required for the implementation of the discounts module
changes.
---
M src/org/openbravo/retail/posterminal/OrderLoader.java
M src/org/openbravo/retail/posterminal/PaidReceipts.java
M web/org.openbravo.retail.posterminal/js/components/renderorderline.js
---
|
|
|
(0079362)
|
hgbot
|
2015-08-14 14:26
|
|
Repository: erp/pmods/org.openbravo.retail.discounts
Changeset: 3037b3f02cf7bca0c99b8a77974782465772108f
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Mon Aug 03 09:46:20 2015 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.discounts/rev/3037b3f02cf7bca0c99b8a77974782465772108f [^]
Fixes issue 30176, port of issue 30298: Problem with identifier attribute created to show discounts
The problem was that the identifier of the issue is not saved in the database.
The solution is to create a new column that stores the identifier, and retrieve
the discount identifier from the database.
---
M src-db/database/model/modifiedTables/C_ORDERLINE_OFFER.xml
M src-db/database/sourcedata/AD_COLUMN.xml
M src-db/database/sourcedata/AD_ELEMENT.xml
---
|
|