Openbravo Issue Tracking System - Retail Modules
View Issue Details
0044132Retail ModulesWeb POSpublic2020-05-21 11:482020-06-09 18:42
malsasua 
ranjith_qualiantech_com 
normalmajoralways
closedfixed 
5
 
RR20Q3 
marvintm
No
0044132: JS error when ticket is created in previous version and you try to pay in a newer version
When one ticket is created in 18Q3 or previous release, but it is not completed, and it is stored in local database and never deleted, when environment is updated to 19Q3 or higher and cashup is done, the previous ticket is displayed to delete or to bring. If you bring it, and click in total amount button, JS error button is displayed


. in 18Q3:
1- do login with VallBlanca
2- new receipt
3- add Avalanche transceiver: total ticket 150.50
4- click in total amount button and add cash payment: 150.50 ->NO COMPLETE TICKET
5- return to ticket and delete line
6- lock screen
7- do login with demo user:
8- complete cashup
. update to 19Q3
9- do login with demo user
10- click in cashup button: ticket created in 2 is displayed
11- click in bring button and cancel
12- click in total button (0)
Error is displayed:


TypeError: callback is not a function at OB.DS.HWServer._print (http://localhost:8080/openbravo/web/js/gen/76fa47d83be7fe1d9b7b6da9867fa16f.js:2427:274 [^]) at OB.DS.HWServer.print (http://localhost:8080/openbravo/web/js/gen/76fa47d83be7fe1d9b7b6da9867fa16f.js:2426:391 [^]) at http://localhost:8080/openbravo/web/js/gen/76fa47d83be7fe1d9b7b6da9867fa16f.js:2426:342 [^] at OB.DS.HWResource.getData (http://localhost:8080/openbravo/web/js/gen/76fa47d83be7fe1d9b7b6da9867fa16f.js:2413:1263 [^]) at OB.DS.HWServer.print (http://localhost:8080/openbravo/web/js/gen/76fa47d83be7fe1d9b7b6da9867fa16f.js:2426:316 [^]) at PrintReceipt.displayTotal (http://localhost:8080/openbravo/web/js/gen/76fa47d83be7fe1d9b7b6da9867fa16f.js:3382:231 [^]) at G.d.trigger (http://localhost:8080/openbravo/web/org.openbravo.mobile.core/lib/vendor/backbone-0.9.2.min.js:9:85 [^]) at Object.showPaymentTab (http://localhost:8080/openbravo/web/js/gen/76fa47d83be7fe1d9b7b6da9867fa16f.js:3566:128 [^]) at http://localhost:8080/openbravo/web/js/gen/76fa47d83 [^]
No tags attached.
Issue History
2020-05-21 11:48malsasuaNew Issue
2020-05-21 11:48malsasuaAssigned To => Retail
2020-05-21 11:48malsasuaResolution time => 1592604000
2020-05-21 11:48malsasuaTriggers an Emergency Pack => No
2020-05-25 08:59ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2020-05-25 08:59ranjith_qualiantech_comStatusnew => scheduled
2020-06-02 06:38hgbotCheckin
2020-06-02 06:38hgbotNote Added: 0120514
2020-06-09 10:48ranjith_qualiantech_comStatusscheduled => resolved
2020-06-09 10:48ranjith_qualiantech_comResolutionopen => fixed
2020-06-09 18:42marvintmReview Assigned To => marvintm
2020-06-09 18:42marvintmStatusresolved => closed
2020-06-09 18:42marvintmFixed in Version => RR20Q3

Notes
(0120514)
hgbot   
2020-06-02 06:38   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 9486f8337fec803959dceb7d28eff45ff0871ab6
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Tue Jun 02 10:07:37 2020 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/9486f8337fec803959dceb7d28eff45ff0871ab6 [^]

Related to issue-44132 : Added validation for callback in HWServer print

---
M web/org.openbravo.retail.posterminal/js/datasource.js
---