Openbravo Issue Tracking System - Retail Modules |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0034709 | Retail Modules | Web POS | public | 2016-09-13 11:44 | 2016-12-12 10:22 |
|
Reporter | marvintm | |
Assigned To | ranjith_qualiantech_com | |
Priority | urgent | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | RR16Q3.4 | Fixed in Version | RR16Q3.4 | |
Merge Request Status | |
Review Assigned To | marvintm |
OBNetwork customer | No |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0034709: Keeping track of deleted tickets is generating incorrect data |
Description | Since 16Q2, it is possible to configure the Openbravo instance so that relevant deleted tickets are synchronized to the backend:
http://wiki.openbravo.com/wiki/Projects:Keep_Track_Of_Deleted_Ticket_Lines [^]
The idea is that these tickets would be changed so that their ordered quantity is set to zero. This works correctly, but there are several parts of the ticket which should be changed, and currently are not being set correctly. Specifically:
- Taxes (at both document and line level) should be zero, and currently are not.
- Totals at line level (both net and gross) should be zero, and currently are not.
- Discount information should also be discussed.
|
Steps To Reproduce | - Activate the functionality to keep track of deleted tickets, creating a preference for property "Web POS Save Removed Tickets"
- Create a ticket in the Web POS. Add some lines to it.
- Delete the ticket via the "Delete ticket" button.
- Check the ticket in the backend, and verify that tax information is not empty, and line totals are not zero. |
Proposed Solution | Currently there is code in the OrderLoader that zeroes the totals of the header, and also the quantity of the lines. I believe a better approach would be to change the functionality so that the ticket in the client side is modified, by setting the quantity of each line to zero, and then recomputing the ticket using the existing calculateReceipt function in the client side.
In this way, the code would be much cleaner, the OrderLoader would not need to even know about the functionality, and would just save the modified ticket as it is. |
Additional Information | |
Tags | No tags attached. |
Relationships | blocks | defect | 0033961 | | closed | asiermartirena | Keeping track of deleted tickets is generating incorrect data |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2016-12-08 09:23 | marvintm | Type | defect => backport |
2016-12-08 09:23 | marvintm | Target Version | => RR16Q3.4 |
2016-12-08 09:45 | ranjith_qualiantech_com | Assigned To | asiermartirena => ranjith_qualiantech_com |
2016-12-08 10:17 | hgbot | Checkin | |
2016-12-08 10:17 | hgbot | Note Added: 0092210 | |
2016-12-08 10:17 | hgbot | Status | scheduled => resolved |
2016-12-08 10:17 | hgbot | Resolution | open => fixed |
2016-12-08 10:17 | hgbot | Fixed in SCM revision | http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/97c95e2c63c9c9b72f43085bf624a58c6b32a41d [^] => http://code.openbravo.com/retail/backports/3.0RR16Q3.4/org.openbravo.retail.posterminal/rev/a467233e6f4d2eb238ab0286fb51e1c0c298caa7 [^] |
2016-12-08 10:17 | hgbot | Checkin | |
2016-12-08 10:17 | hgbot | Note Added: 0092211 | |
2016-12-08 10:17 | hgbot | Checkin | |
2016-12-08 10:17 | hgbot | Note Added: 0092212 | |
2016-12-08 15:02 | hgbot | Checkin | |
2016-12-08 15:02 | hgbot | Note Added: 0092214 | |
2016-12-08 17:47 | hgbot | Checkin | |
2016-12-08 17:47 | hgbot | Note Added: 0092224 | |
2016-12-08 18:04 | marvintm | Review Assigned To | => marvintm |
2016-12-08 18:04 | marvintm | Status | resolved => closed |
2016-12-08 18:04 | marvintm | Fixed in Version | => RR16Q3.4 |
2016-12-12 10:22 | hgbot | Checkin | |
2016-12-12 10:22 | hgbot | Note Added: 0092277 | |
Notes |
|
(0092210)
|
hgbot
|
2016-12-08 10:17
|
|
|
|
(0092211)
|
hgbot
|
2016-12-08 10:17
|
|
|
|
(0092212)
|
hgbot
|
2016-12-08 10:17
|
|
Repository: retail/backports/3.0RR16Q3.4/pi-mobile
Changeset: f1946e2771f870825ace14ee5787d6900ba8fa7d
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Thu Dec 08 14:29:16 2016 +0530
URL: http://code.openbravo.com/retail/backports/3.0RR16Q3.4/pi-mobile/rev/f1946e2771f870825ace14ee5787d6900ba8fa7d [^]
Verifies issue 34709 : Added automated test 'I34709_DeleteTicketWithPercentageDiscount'
---
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/receipts/DeleteTicket.java
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/receipts/DeleteTicketWithDeletedLines.java
A src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/receipts/I34709_DeleteTicketWithPercentageDiscount.java
---
|
|
|
(0092214)
|
hgbot
|
2016-12-08 15:02
|
|
|
|
(0092224)
|
hgbot
|
2016-12-08 17:47
|
|
|
|
(0092277)
|
hgbot
|
2016-12-12 10:22
|
|
Repository: tools/automation/pi-mobile
Changeset: f1946e2771f870825ace14ee5787d6900ba8fa7d
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Thu Dec 08 14:29:16 2016 +0530
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/f1946e2771f870825ace14ee5787d6900ba8fa7d [^]
Verifies issue 34709 : Added automated test 'I34709_DeleteTicketWithPercentageDiscount'
---
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/receipts/DeleteTicket.java
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/receipts/DeleteTicketWithDeletedLines.java
A src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/receipts/I34709_DeleteTicketWithPercentageDiscount.java
---
|
|