Openbravo Issue Tracking System - Retail Modules
View Issue Details
0039915Retail ModulesWeb POSpublic2019-01-10 13:432019-01-28 09:38
javierRodriguez 
asiermartirena 
normalmajoralways
closedfixed 
5
 
RR19Q1RR19Q1 
marvintm
No
0039915: A JS error is shown when a ticket is paid again partially with Pay Open Ticket
if you have a partially paid product created as Mara Studson with a service in your ticket and also a product set to undeliverable and you try to pay it partially with Pay Open Ticket, a JS error is going to be shown:

Uncaught (in promise) DOMException: Failed to execute 'executeSql' on 'SQLTransaction': SQL execution is disallowed.
- Change the customer to Mara Studson
- Add blue trousers with Customize Blue Trousers as a service
- Add avalanche transceiver
- Set the avalanche transceiver as undeliverable
- Pay partially the ticket, just 50e.
- Open again the ticket
- Set the avalanche transceiver as deliverable
- Pay it again partially using Pay Open Ticket

*Included test that reproduce this issue
No tags attached.
blocks defect 0039914 closed asiermartirena A JS error is shown when a ticket is paid again partially with Pay Open Ticket 
Issue History
2019-01-10 13:50javierRodriguezTypedefect => backport
2019-01-10 13:50javierRodriguezTarget Version => RR19Q1
2019-01-11 08:59hgbotCheckin
2019-01-11 08:59hgbotNote Added: 0108919
2019-01-11 08:59hgbotStatusscheduled => resolved
2019-01-11 08:59hgbotResolutionopen => fixed
2019-01-11 08:59hgbotFixed in SCM revision => http://code.openbravo.com/retail/backports/3.0RR19Q1/org.openbravo.retail.posterminal/rev/3e9d9ac046d24671f79eed39c84639f8ab84681d [^]
2019-01-11 09:03marvintmAssigned ToRetail => asiermartirena
2019-01-28 09:38marvintmReview Assigned To => marvintm
2019-01-28 09:38marvintmStatusresolved => closed
2019-01-28 09:38marvintmFixed in Version => RR19Q1

Notes
(0108919)
hgbot   
2019-01-11 08:59   
Repository: retail/backports/3.0RR19Q1/org.openbravo.retail.posterminal
Changeset: 3e9d9ac046d24671f79eed39c84639f8ab84681d
Author: Asier Martirena <asier.martirena <at> openbravo.com>
Date: Fri Jan 11 08:58:40 2019 +0100
URL: http://code.openbravo.com/retail/backports/3.0RR19Q1/org.openbravo.retail.posterminal/rev/3e9d9ac046d24671f79eed39c84639f8ab84681d [^]

Fixed issue 39915: A JS error is shown when a ticket is paid again partially with Pay Open Ticket

Now, the properties set to a receipt before synchronizing it in 'Pay Open Tickets' (also the invoice property) are set before creating the database (websql) transaction.

---
M web/org.openbravo.retail.posterminal/js/data/dataordersave.js
---