Openbravo Issue Tracking System - Retail Modules
View Issue Details
0034709Retail ModulesWeb POSpublic2016-09-13 11:442016-12-12 10:22
marvintm 
ranjith_qualiantech_com 
urgentmajoralways
closedfixed 
5
 
RR16Q3.4RR16Q3.4 
marvintm
No
0034709: Keeping track of deleted tickets is generating incorrect data
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.

- 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.
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.
No tags attached.
blocks defect 0033961 closed asiermartirena Keeping track of deleted tickets is generating incorrect data 
Issue History
2016-12-08 09:23marvintmTypedefect => backport
2016-12-08 09:23marvintmTarget Version => RR16Q3.4
2016-12-08 09:45ranjith_qualiantech_comAssigned Toasiermartirena => ranjith_qualiantech_com
2016-12-08 10:17hgbotCheckin
2016-12-08 10:17hgbotNote Added: 0092210
2016-12-08 10:17hgbotStatusscheduled => resolved
2016-12-08 10:17hgbotResolutionopen => fixed
2016-12-08 10:17hgbotFixed in SCM revisionhttp://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:17hgbotCheckin
2016-12-08 10:17hgbotNote Added: 0092211
2016-12-08 10:17hgbotCheckin
2016-12-08 10:17hgbotNote Added: 0092212
2016-12-08 15:02hgbotCheckin
2016-12-08 15:02hgbotNote Added: 0092214
2016-12-08 17:47hgbotCheckin
2016-12-08 17:47hgbotNote Added: 0092224
2016-12-08 18:04marvintmReview Assigned To => marvintm
2016-12-08 18:04marvintmStatusresolved => closed
2016-12-08 18:04marvintmFixed in Version => RR16Q3.4
2016-12-12 10:22hgbotCheckin
2016-12-12 10:22hgbotNote Added: 0092277

Notes
(0092210)
hgbot   
2016-12-08 10:17   
Repository: retail/backports/3.0RR16Q3.4/org.openbravo.retail.posterminal
Changeset: a467233e6f4d2eb238ab0286fb51e1c0c298caa7
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Thu Dec 08 14:42:24 2016 +0530
URL: http://code.openbravo.com/retail/backports/3.0RR16Q3.4/org.openbravo.retail.posterminal/rev/a467233e6f4d2eb238ab0286fb51e1c0c298caa7 [^]

Fixes issue 34709 : Validated line quantity if the Save Remove ticket preference is enabled

---
M web/org.openbravo.retail.posterminal/js/closecash/model/cashup-model.js
M web/org.openbravo.retail.posterminal/js/login/model/login-model.js
M web/org.openbravo.retail.posterminal/js/model/order.js
---
(0092211)
hgbot   
2016-12-08 10:17   
Repository: retail/backports/3.0RR16Q3.4/org.openbravo.retail.discounts
Changeset: 041e1f1eeaec9201d7ca1b9587f71e3176818f61
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Thu Dec 08 14:29:07 2016 +0530
URL: http://code.openbravo.com/retail/backports/3.0RR16Q3.4/org.openbravo.retail.discounts/rev/041e1f1eeaec9201d7ca1b9587f71e3176818f61 [^]

Related to issue 34709 : Validate line with quantity 0 while calculating promotion

---
M web/org.openbravo.retail.discounts/js/promotion-discount.js
M web/org.openbravo.retail.discounts/js/promotion-manual.js
---
(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   
Repository: retail/backports/3.0RR16Q3.4/org.openbravo.retail.posterminal
Changeset: 4e2a91eb8bfc5980da007045b6031969aacebd36
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Thu Dec 08 14:59:52 2016 +0100
URL: http://code.openbravo.com/retail/backports/3.0RR16Q3.4/org.openbravo.retail.posterminal/rev/4e2a91eb8bfc5980da007045b6031969aacebd36 [^]

Related to issue 34709. Fixed small problem in backport

---
M web/org.openbravo.retail.posterminal/js/model/order.js
---
(0092224)
hgbot   
2016-12-08 17:47   
Repository: retail/backports/3.0RR16Q3.4/org.openbravo.retail.posterminal
Changeset: a6cd533dd0b6149d0bd27983e8da93b33d7b983c
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Thu Dec 08 17:47:26 2016 +0100
URL: http://code.openbravo.com/retail/backports/3.0RR16Q3.4/org.openbravo.retail.posterminal/rev/a6cd533dd0b6149d0bd27983e8da93b33d7b983c [^]

Related to issue 34709. Fixed small problem in backport

---
M web/org.openbravo.retail.posterminal/js/model/order.js
---
(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
---