Openbravo Issue Tracking System - Retail Modules
View Issue Details
0039914Retail ModulesWeb POSpublic2019-01-10 13:432019-01-28 09:38
0039914: 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.
depends on backport 0039915RR19Q1 closed asiermartirena A JS error is shown when a ticket is paid again partially with Pay Open Ticket 
? (6,306) 2019-01-10 13:43
Issue History
2019-01-10 13:43javierRodriguezNew Issue
2019-01-10 13:43javierRodriguezAssigned To => Retail
2019-01-10 13:43javierRodriguezFile Added:
2019-01-10 13:43javierRodriguezTriggers an Emergency Pack => No
2019-01-10 13:50javierRodriguezStatusnew => scheduled
2019-01-10 13:51javierRodriguezStatusscheduled => acknowledged
2019-01-11 08:44hgbotCheckin
2019-01-11 08:44hgbotNote Added: 0108918
2019-01-11 08:44hgbotStatusacknowledged => resolved
2019-01-11 08:44hgbotResolutionopen => fixed
2019-01-11 08:44hgbotFixed in SCM revision => [^]
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 => RR19Q2

2019-01-11 08:44   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: aef7b1faf91c33b25f5c2d5449cb15cc11fc2210
Author: Asier Martirena <asier.martirena <at>>
Date: Thu Jan 10 18:03:52 2019 +0100
URL: [^]

Fixed issue 39914: 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