Openbravo Issue Tracking System - Retail Modules
View Issue Details
0031172Retail ModulesWeb POSpublic2015-10-19 13:172015-11-09 10:52
eduardo_Argal 
marvintm 
urgentmajoralways
closedfixed 
5
 
RR16Q1 
guilleaer
No
0031172: Payment Schedule details are wrong when creating Layaways in WebPOS
When creating a layaway in WebPOS payment schedule details for the order once synchronized with backend are wrong.
Outsanding amount is never taken into account so that PSD is missing.
Ex: Create a ticket for total of 20 and pay 10.
Two PSD shuold be created:
   * One for the paid amount 10 (pointing to the created payment)
   * One for the outstanding amount 10 (with no relation to any payment. Pending to be paid)
As this last detail is missing, layaways can not be paid in ERP
1. Log in in vallblanca store
2. Create a new ticket and add 1 'Avalanche transciever'
3. Press menu option 'Layaway this receipt'
4. Click on paid button (150.50)
5. Add 50 Cash
6. Click on Layaway
7. Verify order has been synchronized
8. Move to Backend and look for the ticket
9. Press on add payment and realize that no detail can be selected
10. Query database and verify just one PSD has been created
Fix orderloader to create this missing PSD and modify creation of payments for layaways to take into account this new PSD needs to be consumed when paying (now PSD are always created)
No tags attached.
Issue History
2015-10-19 13:17eduardo_ArgalNew Issue
2015-10-19 13:17eduardo_ArgalAssigned To => Retail
2015-10-19 17:44aaroncaleroResolution time => 1445814000
2015-10-20 14:34OrekariaResolution time1445814000 => 1446418800
2015-10-20 14:35OrekariaStatusnew => acknowledged
2015-10-20 16:09marvintmProjectJava Client POS => Retail Modules
2015-10-20 16:09marvintmTriggers an Emergency Pack => No
2015-10-20 16:09marvintmCategory02 - ERP-POS Integration => Web POS
2015-10-26 18:48hgbotCheckin
2015-10-26 18:48hgbotNote Added: 0081323
2015-10-26 18:48hgbotStatusacknowledged => resolved
2015-10-26 18:48hgbotResolutionopen => fixed
2015-10-26 18:48hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/716d975afc050bb7d7629553683a80600f6711a5 [^]
2015-10-30 12:29marvintmAssigned ToRetail => marvintm
2015-10-30 12:30marvintmReview Assigned To => guilleaer
2015-11-02 09:39guilleaerStatusresolved => closed
2015-11-02 09:39guilleaerFixed in Version => RR16Q1
2015-11-09 10:52hgbotCheckin
2015-11-09 10:52hgbotNote Added: 0081614

Notes
(0081323)
hgbot   
2015-10-26 18:48   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 716d975afc050bb7d7629553683a80600f6711a5
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Mon Oct 26 15:31:12 2015 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/716d975afc050bb7d7629553683a80600f6711a5 [^]

Fixed issue 31172. Now payment plan will always have correct payment schedule detail:
- In the case of layaways, there will always be a payment schedule detail for the amount pending to be paid, associated to the payment schedule
- If an operation occurs (for example, if a partial payment is added, or the payment is finally completed), all non associated payment schedule details are deleted, and a new one for the remaining is created.

---
M src/org/openbravo/retail/posterminal/OrderLoader.java
---
(0081614)
hgbot   
2015-11-09 10:52   
Repository: tools/automation/pi-mobile
Changeset: 5707ccbdb292d2315d9e9f8df790ac267e81d6b4
Author: Christian Goni <christian.goni <at> openbravo.com>
Date: Tue Nov 03 13:20:33 2015 +0100
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/5707ccbdb292d2315d9e9f8df790ac267e81d6b4 [^]

Verify Issue 31172 :Payment Schedule details are wrong when creating Layaways in WebPOS

---
A src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/sales/I31172_WrongPSDOnLayaways.java
---