Openbravo Issue Tracking System - Retail Modules
View Issue Details
0036943Retail ModulesWeb POSpublic2017-09-25 13:192017-10-06 13:47
aaroncalero 
ranjith_qualiantech_com 
highmajoralways
closedfixed 
5
 
RR18Q1 
marvintm
No
0036943: It is possible to void a layaway while it is being paid in a different terminal
It is possible to open the same layaway in two different terminals, complete the payment of the layaway in one terminal, and without reloading the layaway on the second terminal, void it.
Since the layaway on the second terminal doesn't have any payment loaded, no return payments are created, and the status of the layaway in backend is inconsistent: all quantities are set to 0, the status is changed to closed, but there is a payment on the receipt.
Login in webpos in terminal VBS-1
Create a new layaway (Menu > Layaway this receipt).
Add an Avalanche Transceiver; the total of the layaway will be 150.5€
Click on the total amount button to navigate to the payment tab.
Click on Layaway to process the layaway.
Open the layaway again in webpos.
In a different browser, login in terminal VBS1001.
Open the same layaway.
In terminal VBS-1 click again on the total amount button and pay the layaway completely.
In terminal VBS1001 go to the Menu > Void this layaway; the payment tab will be shown with no payments. Click on Done to validate.

Login in backoffice, go to the Sales Order window and verify the newly created/paid/voided ticket.
Currently there is a check on the Orderloader to prevent concurrent modifications to a ticket (comparing the "loaded" attribute on the order json).
The void layaway process doesn't use the orderloader, instead it uses the ProcessVoidLayaway process, which doesn't have the check of the "loaded" attribute.

This check should also be present on ProcessVoidLayaway.
No tags attached.
patch issue 36943 source pos 6798.patch (5,592) 2017-09-28 16:00
https://issues.openbravo.com/file_download.php?file_id=11119&type=bug
Issue History
2017-09-25 13:19aaroncaleroNew Issue
2017-09-25 13:19aaroncaleroAssigned To => Retail
2017-09-25 13:19aaroncaleroResolution time => 1507500000
2017-09-25 13:19aaroncaleroTriggers an Emergency Pack => No
2017-09-27 09:03ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2017-09-27 09:03ranjith_qualiantech_comStatusnew => scheduled
2017-09-28 16:00ranjith_qualiantech_comFile Added: issue 36943 source pos 6798.patch
2017-10-04 08:09hgbotCheckin
2017-10-04 08:09hgbotNote Added: 0099748
2017-10-04 08:09hgbotStatusscheduled => resolved
2017-10-04 08:09hgbotResolutionopen => fixed
2017-10-04 08:09hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/486be89e7b0f0e2bdb81330dcd2a14555f548bd8 [^]
2017-10-06 13:47marvintmReview Assigned To => marvintm
2017-10-06 13:47marvintmStatusresolved => closed
2017-10-06 13:47marvintmFixed in Version => RR18Q1

Notes
(0099748)
hgbot   
2017-10-04 08:09   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 486be89e7b0f0e2bdb81330dcd2a14555f548bd8
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Wed Oct 04 11:22:34 2017 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/486be89e7b0f0e2bdb81330dcd2a14555f548bd8 [^]

Fixed issue 36943 : Validate Layaway loaded with last updated date on Void Process

---
M src/org/openbravo/retail/posterminal/OrderLoader.java
M src/org/openbravo/retail/posterminal/POSUtils.java
M src/org/openbravo/retail/posterminal/PaidReceipts.java
M src/org/openbravo/retail/posterminal/ProcessVoidLayaway.java
---