Openbravo Issue Tracking System - Retail Modules
View Issue Details
0041381Retail ModulesWeb POSpublic2019-07-17 15:232019-08-22 18:43
aaroncalero 
rqueralta 
highmajoralways
closedfixed 
5
 
RR19Q4 
marvintm
No
0041381: Prepayment Amount is not updated in the Order after reprocessing it
When a layaway/order is created in WebPOS, the calculated prepayment amount is stored as a property of the order header. If the ticket is loaded again in WebPOS (i.e. to add a payment) and it is processed again, if the prepayment amount has changed, it is not updated in the order header.
Login in backend.
Go to the Channel - Touchpoint window and find the terminal LAYVBS-1
Navigate to its Touchpoint type and enable 'Allow prepayments and partial payments'.
Go back to Channel - Touchpoint window, find the terminal VBS-1 and navigate to its Touchpoint Type. Enable 'Allow prepayments and partial payments'.
Navigate to the Vallblanca Store organization and remove the default prepayment algorithm.

Login in WebPOS, terminal LAYVBS-1
Create a new ticket
Change the customer of the ticket to Arturo Montoro
Add two different products
Select the second line, and on the Edit tab click on 'Set as Undeliverable'. Approve the action if necessary.
Click on the total amount button, and click on Layaway.

Login again in backend, go to the organization window, Vallblanca Store organization and reconfigure the default prepayment algorithm.

Login in WebPOS, terminal VBS-1
Load the layaway created previously
Click on the total amount button
Verify that the requested payment for delivery is the amount of the first line.
Pay the amount required for delivery and click on Done to synchronize the receipt.
Do a query to the database and verify that the em_obpos_prepaymentamt of the receipt is still the full amount of the ticket
When an order is modified, update all the prepayment-related amounts (prepayment, prepayment limit, and prepayment layaway limit) if the new value exists in the order json
See attached patch
No tags attached.
? Issue41381.export (1,431) 2019-07-17 15:29
https://issues.openbravo.com/file_download.php?file_id=13143&type=bug
Issue History
2019-07-17 15:23aaroncaleroNew Issue
2019-07-17 15:23aaroncaleroAssigned To => Retail
2019-07-17 15:23aaroncaleroResolution time => 1564524000
2019-07-17 15:23aaroncaleroTriggers an Emergency Pack => No
2019-07-17 15:29aaroncaleroFile Added: Issue41381.export
2019-07-17 15:29aaroncaleroProposed Solution updated
2019-07-30 20:34rqueraltaAssigned ToRetail => rqueralta
2019-07-30 20:34rqueraltaStatusnew => scheduled
2019-08-16 18:17hgbotCheckin
2019-08-16 18:17hgbotNote Added: 0114054
2019-08-16 18:17hgbotStatusscheduled => resolved
2019-08-16 18:17hgbotResolutionopen => fixed
2019-08-16 18:17hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/dac2593d92f21fb04a52440b342800c1fe479ec3 [^]
2019-08-22 18:43marvintmReview Assigned To => marvintm
2019-08-22 18:43marvintmStatusresolved => closed
2019-08-22 18:43marvintmFixed in Version => RR19Q4

Notes
(0114054)
hgbot   
2019-08-16 18:17   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: dac2593d92f21fb04a52440b342800c1fe479ec3
Author: Aaron Calero <aaron.calero <at> openbravo.com>
Date: Wed Jul 17 13:54:20 2019 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/dac2593d92f21fb04a52440b342800c1fe479ec3 [^]

Fixed issue 41381: Prepayment Amount is not updated in the Order after reprocessing it

---
M src/org/openbravo/retail/posterminal/OrderLoader.java
---