Openbravo Issue Tracking System - Retail Modules
View Issue Details
0044419Retail ModulesWeb POSpublic2020-06-18 18:152020-07-02 18:59
aaroncalero 
ranjith_qualiantech_com 
highmajoralways
closedfixed 
5
 
RR20Q3 
marvintm
Gold
No
0044419: It is possible to generate deleted tickets without orderType, which in turn generate Errors While Importing
When the Save Deleted Tickets preference is configured, it is possible under specific circumstances to generate tickets without orderType. If these tickets are removed from WebPOS, a record is created in the Errors While Importing POS Data window.
Log in Backend, go to the Preference window and make sure the preference WebPOS Save Removed Tickets is defined with value Y
Log in WebPOS
Create a new ticket
Go to the Menu > Layaway This Receipt.
Add some products to the ticket
Go to the Menu > Pay Open Tickets
Search and select the currently opened layaway and click on Done
Once in the Pay Open Tickets window, refresh the page.
After loading the page, close the Pay Open Tickets screen. Verify that the Layaway label is still present in the normal POS screen.
Refresh the page again.
After loading, verify that the Layaway label is gone.
Check in the browser console that the current ticket is missing its orderType.
Remove the ticket.
Check in Backend that a new record has been created in the Errors While Importing POS Data window.
It seems that reloading the screen while in the Pay Open Tickets window removes some attributes from the order model stored in websql. This issue has been raised because the orderType is checked in the OrderLoader process, but some other fields might be missing too.
No tags attached.
Issue History
2020-06-18 18:15aaroncaleroNew Issue
2020-06-18 18:15aaroncaleroAssigned To => Retail
2020-06-18 18:15aaroncaleroOBNetwork customer => Gold
2020-06-18 18:15aaroncaleroResolution time => 1594245600
2020-06-18 18:15aaroncaleroTriggers an Emergency Pack => No
2020-06-26 08:43ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2020-07-02 13:26ranjith_qualiantech_comStatusnew => scheduled
2020-07-02 13:33hgbotCheckin
2020-07-02 13:33hgbotNote Added: 0121225
2020-07-02 13:33hgbotStatusscheduled => resolved
2020-07-02 13:33hgbotResolutionopen => fixed
2020-07-02 13:33hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/56a04dc775ee7e4bdadccc291dd236de506783a4 [^]
2020-07-02 18:59marvintmReview Assigned To => marvintm
2020-07-02 18:59marvintmStatusresolved => closed
2020-07-02 18:59marvintmFixed in Version => RR20Q3

Notes
(0121225)
hgbot   
2020-07-02 13:33   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 56a04dc775ee7e4bdadccc291dd236de506783a4
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Thu Jul 02 17:03:05 2020 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/56a04dc775ee7e4bdadccc291dd236de506783a4 [^]

Fixed issue-44419: MultiOrder attributes should be updated when opening pay open tickets

* When opening pay open tickets or reloading pay open tickets,
  receipt attributes belongsToMultiOrder, originalOrderType should be retained

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