Openbravo Issue Tracking System - Retail Modules
View Issue Details
0030696Retail ModulesMulti order paymentpublic2015-07-25 13:022015-11-02 15:50
lorenzofidalgo 
jorge-garcia 
immediatemajoralways
closedfixed 
5
main 
RR15Q3.2RR15Q3.2 
guilleaer
Packaging and release
main
No
0030696: [RR15Q3] Partial payments in a layaway through "Pay Open Tickets" option does not save Received & Outstanding fields correctly
To pay a layaway partially through "Pay Open Tickets" option records wrongly data in backend.
In RR15Q2.2 this is working correcly.
1-Login POS as vallblanca//openbravo.
2-Add 1x "Avalanche transceiver".
3-In dropdown menu, click "Layaway this receipt", click Total Amount button and click in "Layaway" button to layaway that receipt.
4-Click "Pay Open Tickets" option in dropdown menu, select the just created layaway and click "Done".
5-Click in the line of the product and when the "Amount to layaway" popup appears, enter 20 and apply. Then click Ok (tick) button and click Done button.
6-Go to POS backend and login with Openbravo//openbravo.
7-Using "The White Vally Group Admin" role go to "Sales Order" window and select the just created record.
8-Defect: In "Payment Plan" tab, check "Received" & "Outstanding" fields are wrong.
No tags attached.
blocks defect 0030425 closed jorge-garcia Partial payments in a layaway through "Pay Open Tickets" option does not save Received & Outstanding fields correctly 
Issue History
2015-08-28 14:11marvintmTypedefect => backport
2015-08-28 14:11marvintmTarget Version => RR15Q3.2
2015-10-30 14:07hgbotCheckin
2015-10-30 14:07hgbotNote Added: 0081409
2015-10-30 14:07hgbotStatusscheduled => resolved
2015-10-30 14:07hgbotResolutionopen => fixed
2015-10-30 14:07hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/f4354d4ba3340b58d1534c8859e9faf317a370a4 [^] => http://code.openbravo.com/retail/backports/3.0RR15Q3.2/org.openbravo.retail.posterminal/rev/ddee5c39b4413995b8dc2dd71726c0ddf7244939 [^]
2015-11-02 15:50guilleaerReview Assigned To => guilleaer
2015-11-02 15:50guilleaerStatusresolved => closed
2015-11-02 15:50guilleaerFixed in Version => RR15Q3.2

Notes
(0081409)
hgbot   
2015-10-30 14:07   
Repository: retail/backports/3.0RR15Q3.2/org.openbravo.retail.posterminal
Changeset: ddee5c39b4413995b8dc2dd71726c0ddf7244939
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Fri Oct 30 14:06:47 2015 +0100
URL: http://code.openbravo.com/retail/backports/3.0RR15Q3.2/org.openbravo.retail.posterminal/rev/ddee5c39b4413995b8dc2dd71726c0ddf7244939 [^]

Fixed issue 30696. Partial payments in layaway through 'Pay Open Tickets' option

The problem was that the partial payment of a layaway always creates a new
order, not taken into account that there is already a order created with the
same id and attributes.

The solution is to create a new check to see if the layaway is partially paid.

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