Openbravo Issue Tracking System - Retail Modules
View Issue Details
0039914Retail ModulesWeb POSpublic2019-01-10 13:432019-01-11 09:03
javierRodriguez 
asiermartirena 
normalmajoralways
resolvedfixed 
5
 
 
No
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 resolved asiermartirena A JS error is shown when a ticket is paid again partially with Pay Open Ticket 
? OMNI170_PayOpenTicketsAfterDelivery.java (6,306) 2019-01-10 13:43
https://issues.openbravo.com/file_download.php?file_id=12498&type=bug
Issue History
2019-01-10 13:43javierRodriguezNew Issue
2019-01-10 13:43javierRodriguezAssigned To => Retail
2019-01-10 13:43javierRodriguezFile Added: OMNI170_PayOpenTicketsAfterDelivery.java
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 => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/aef7b1faf91c33b25f5c2d5449cb15cc11fc2210 [^]
2019-01-11 09:03marvintmAssigned ToRetail => asiermartirena

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

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
---