Openbravo Issue Tracking System - Retail Modules
View Issue Details
0041197Retail ModulesWeb POSpublic2019-06-27 17:512019-07-19 08:04
asiermartirena 
asiermartirena 
normalmajoralways
closedfixed 
5
 
RR19Q4 
aaroncalero
No
0041197: When generating the invoice in Web POS, some properties must be avoided
When creating an invoice in the Web POS, it is initially taken from the active order. This order has many parameters that can be removed, in order to make it lighter.

This also causes, in the specific case of the 'calculateReceiptCallbacks' property, that in some specific cases the flow can have a js error. As the property is an array, that means that is a referenced property, when it is cloned the new object still has the same reference to the original one, so the invoice can add new callbacks to the order. This must be avoided.
Create an order in the Web POS. Generate an invoice with it. Check, for example, that the payments information is sent in the invoice object.
No tags attached.
Issue History
2019-06-27 17:51asiermartirenaNew Issue
2019-06-27 17:51asiermartirenaAssigned To => asiermartirena
2019-06-27 17:51asiermartirenaTriggers an Emergency Pack => No
2019-07-01 10:05asiermartirenaTypedefect => design defect
2019-07-03 18:25hgbotCheckin
2019-07-03 18:25hgbotNote Added: 0113162
2019-07-03 18:25hgbotStatusnew => resolved
2019-07-03 18:25hgbotResolutionopen => fixed
2019-07-03 18:25hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/e7151da9146686a076e02c679191c306c6b6f505 [^]
2019-07-10 15:10adrianromeroReview Assigned To => aaroncalero
2019-07-10 15:10adrianromeroNote Added: 0113257
2019-07-10 15:10adrianromeroStatusresolved => closed
2019-07-10 15:10adrianromeroFixed in Version => RR19Q4
2019-07-11 15:31hgbotCheckin
2019-07-11 15:31hgbotNote Added: 0113278
2019-07-11 15:31hgbotStatusclosed => resolved
2019-07-11 15:31hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/e7151da9146686a076e02c679191c306c6b6f505 [^] => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal-discounts/rev/e7151da9146686a076e02c679191c306c6b6f505 [^]
2019-07-19 08:04aaroncaleroStatusresolved => closed

Notes
(0113162)
hgbot   
2019-07-03 18:25   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: e7151da9146686a076e02c679191c306c6b6f505
Author: Asier Martirena <asier.martirena <at> openbravo.com>
Date: Wed Jul 03 18:25:14 2019 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/e7151da9146686a076e02c679191c306c6b6f505 [^]

Fixed issue 41197: When generating the invoice in Web POS, some properties must be avoided

The calculateReceiptCallbacks, calculatedInvoice, canceledorder, payments, json and undo properties must be removed or reset, because are not needed for invoices and the generating JSON can be much bigger than needed one.

---
M web/org.openbravo.retail.posterminal/js/model/order.js
---
(0113257)
adrianromero   
2019-07-10 15:10   
Verified
(0113278)
hgbot   
2019-07-11 15:31   
Repository: erp/pmods/org.openbravo.retail.posterminal-discounts
Changeset: e7151da9146686a076e02c679191c306c6b6f505
Author: Asier Martirena <asier.martirena <at> openbravo.com>
Date: Wed Jul 03 18:25:14 2019 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal-discounts/rev/e7151da9146686a076e02c679191c306c6b6f505 [^]

Fixed issue 41197: When generating the invoice in Web POS, some properties must be avoided

The calculateReceiptCallbacks, calculatedInvoice, canceledorder, payments, json and undo properties must be removed or reset, because are not needed for invoices and the generating JSON can be much bigger than needed one.

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