Openbravo Issue Tracking System - Retail Modules
View Issue Details
0044327Retail ModulesWeb POSpublic2020-06-10 08:182020-06-18 08:22
prakashmurugesan88 
prakashmurugesan88 
normalminorhave not tried
closedfixed 
5
 
RR20Q3 
marvintm
No
0044327: Ramdom PayOpenTickets are failing in try
PayOpenTickets are failing in try with following errors

"Uncaught TypeError: Cannot read property 'get' of undefined

(2) errors in the browser log:
[2020-05-30T08:28:12+0000] [SEVERE] http://127.0.0.1/try-ret-test-pgsql-suite2/web/js/gen/843622587ca18d1efe368c613d62d12c.js [^] 213:14 ""TypeError: Cannot read property 'get' of undefined\n at G.d.getPrepaymentAmount (http://127.0.0.1/try-ret-test-pgsql-suite2/web/js/gen/843622587ca18d1efe368c613d62d12c.js:53205:54 [^])\n at calculatePrepayment (http://127.0.0.1/try-ret-test-pgsql-suite2/web/js/gen/843622587ca18d1efe368c613d62d12c.js:85911:17 [^])\n at Object.\u003Canonymous> (http://127.0.0.1/try-ret-test-pgsql-suite2/web/js/gen/843622587ca18d1efe368c613d62d12c.js:85945:9 [^])\n at g.Collection.trigger (http://127.0.0.1/try-ret-test-pgsql-suite2/web/org.openbravo.mobile.core/lib/vendor/backbone-0.9.2.min.js:9:85 [^])\n at http://127.0.0.1/try-ret-test-pgsql-suite2/web/js/gen/843622587ca18d1efe368c613d62d12c.js:100136:26\n [^] at processResult (http://127.0.0.1/try-ret-test-pgsql-suite2/web/js/gen/843622587ca18d1efe368c613d62d12c.js:7810:11 [^]); line: Object.OB.UTIL.showError (http://127.0.0.1/try-ret-test-pgsql-suite2/web/js/gen/843622587ca18d1efe368c613d62d12c.js:24307:6 [^]) (*)""
[2020-05-30T08:28:12+0000] [SEVERE] http://127.0.0.1/try-ret-test-pgsql-suite2/web/js/gen/843622587ca18d1efe368c613d62d12c.js [^] 53204:53 Uncaught TypeError: Cannot read property 'get' of undefined"
It occurs randomly in try while reloading payopentickets
No tags attached.
patch I44327_PayOpenTicketReload.patch (1,617) 2020-06-10 08:37
https://issues.openbravo.com/file_download.php?file_id=14594&type=bug
Issue History
2020-06-10 08:18prakashmurugesan88New Issue
2020-06-10 08:18prakashmurugesan88Assigned To => prakashmurugesan88
2020-06-10 08:18prakashmurugesan88Triggers an Emergency Pack => No
2020-06-10 08:18prakashmurugesan88Statusnew => scheduled
2020-06-10 08:37prakashmurugesan88File Added: I44327_PayOpenTicketReload.patch
2020-06-17 17:34hgbotCheckin
2020-06-17 17:34hgbotNote Added: 0120895
2020-06-17 17:34hgbotStatusscheduled => resolved
2020-06-17 17:34hgbotResolutionopen => fixed
2020-06-17 17:34hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/df469ef5e5432da46671942cd33fe43f70b0114e [^]
2020-06-18 08:22marvintmReview Assigned To => marvintm
2020-06-18 08:22marvintmStatusresolved => closed
2020-06-18 08:22marvintmFixed in Version => RR20Q3

Notes
(0120895)
hgbot   
2020-06-17 17:34   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: df469ef5e5432da46671942cd33fe43f70b0114e
Author: Prakash M <prakash <at> qualiantech.com>
Date: Wed Jun 17 20:55:34 2020 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/df469ef5e5432da46671942cd33fe43f70b0114e [^]

Fixed BUG-44327: On reloading POS with loaded payopentickets throws js error in
get businessPartner of prepayment amount calculation.

* Prepayment calculation is done asynchronously by 'loadedMultiOrder' trigger
* This error occurs if the businessPartner value is not on calculating prepayment
* businessPartner is set in successCallbackBPs function

* There are 2 properties in OB.MobileApp.model,
* businessPartner - BusinessPartner Object with all attributes
* businesspartner - With BusinessPartner id
* businesspartner has value based on which businessPartner is set in
successCallbackBPs function
* so validation is done using businesspartner instead of businessPartner

---
M web/org.openbravo.retail.posterminal/js/model/order.js
---