Openbravo Issue Tracking System - Retail Modules
View Issue Details
0029413Retail ModulesLayaway orderpublic2015-03-25 17:302016-04-20 19:46
aaroncalero 
jorge-garcia 
normalmajoralways
closedfixed 
5
 
RR16Q3 
migueldejuana
No
No
0029413: Reloading the page after voiding a layaway breaks cashup information
If the user reloads the page right after tapping Done during the Void Layaway process, the cashupReport function will not be executed and therefore the cashup data will be inconsistent.
Login in WebPOS
Create a layaway (create a ticket, go to the menu, select Layaway this receipt).
Complete the layaway (tap the total amount button, then Layaway).
Verify values on the cashup, paymentmethodcashup and taxcashup tables.
Reopen the layaway using the menu option Layaways.
Use the menu option Void this layaway and tap the Done button. (Alternatively force a connection loss after tapping the Done button).
If the page is reloaded before the callback of the ProcessVoidLayaway happens, the cashup information will not be updated
The voided layaway should be sent to the server only after the local data has been updated, following a similar flow to the one that occurs after closing (paying) a ticket.
No tags attached.
Issue History
2015-03-25 17:30aaroncaleroNew Issue
2015-03-25 17:30aaroncaleroAssigned To => Retail
2015-03-25 17:30aaroncaleroOBNetwork customer => No
2015-03-25 17:30aaroncaleroTriggers an Emergency Pack => No
2015-06-15 18:07marvintmTarget VersionRR15Q3 => RR15Q4
2015-09-29 14:23OrekariaTarget VersionRR15Q4 => RR16Q1
2015-12-21 18:23OrekariaTarget VersionRR16Q1 =>
2015-12-21 18:40OrekariaTarget Version => RR16Q2
2016-03-30 14:27OrekariaTarget VersionRR16Q2 => RR16Q3
2016-04-01 12:50jorge-garciaStatusnew => scheduled
2016-04-01 12:50jorge-garciaAssigned ToRetail => jorge-garcia
2016-04-11 08:52hgbotCheckin
2016-04-11 08:52hgbotNote Added: 0085547
2016-04-11 08:52hgbotStatusscheduled => resolved
2016-04-11 08:52hgbotResolutionopen => fixed
2016-04-11 08:52hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/1c46935437680f8627ed61914a06846b1d38c8ff [^]
2016-04-20 19:45migueldejuanaNote Added: 0085796
2016-04-20 19:46migueldejuanaReview Assigned To => migueldejuana
2016-04-20 19:46migueldejuanaStatusresolved => closed

Notes
(0085547)
hgbot   
2016-04-11 08:52   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 1c46935437680f8627ed61914a06846b1d38c8ff
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Wed Apr 06 09:44:07 2016 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/1c46935437680f8627ed61914a06846b1d38c8ff [^]

Fixed issue 29413: Reloading the page after voiding a layaway breaks cashup
information

The solution is to update the cash up report before the execution of the void
layaway process.

---
M web/org.openbravo.retail.posterminal/js/pointofsale/model/pointofsale-model.js
---
(0085796)
migueldejuana   
2016-04-20 19:45   
Tested and reviewed