Openbravo Issue Tracking System - Retail Modules
View Issue Details
0040400Retail ModulesWeb POSpublic2019-03-18 09:302019-03-28 19:51
asiermartirena 
asiermartirena 
urgentmajoralways
closedfixed 
5
 
RR19Q2 
marvintm
No
0040400: Errors while creating payment terms in Web POS
When a partially paid invoice is created generating credit for a business partner that has a payment term that must be paid in different times, the payment schedule details were being generated with wrong amounts.
Also, if one of the payment term lines was a 'rest' payment line, a negative payment schedule was being generated for the invoice with the same amount to the 'rest' payment term but with different sign.
Assign a payment term with different lines to a business partner. One of those lines must be 'rest'.
Synchronize a partially paid ticket with the configured bp in the Web POS using the 'Use Credit' button or with a prepayment that generates an invoice.

Check that the details are set with wrong amount.
Check that the generated payment schedules in the invoice are not correct. There's a payment schedule with the same amount to the rest payment term, but in negative.
No tags attached.
Issue History
2019-03-18 09:30asiermartirenaNew Issue
2019-03-18 09:30asiermartirenaAssigned To => asiermartirena
2019-03-18 09:30asiermartirenaTriggers an Emergency Pack => No
2019-03-18 12:21hgbotCheckin
2019-03-18 12:21hgbotNote Added: 0110470
2019-03-18 12:21hgbotStatusnew => resolved
2019-03-18 12:21hgbotResolutionopen => fixed
2019-03-18 12:21hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/9a1d664d23e043289730f9c9897f14fb5b42e208 [^]
2019-03-18 14:10hgbotCheckin
2019-03-18 14:10hgbotNote Added: 0110478
2019-03-28 19:51marvintmReview Assigned To => marvintm
2019-03-28 19:51marvintmStatusresolved => closed
2019-03-28 19:51marvintmFixed in Version => RR19Q2

Notes
(0110470)
hgbot   
2019-03-18 12:21   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 9a1d664d23e043289730f9c9897f14fb5b42e208
Author: Asier Martirena <asier.martirena <at> openbravo.com>
Date: Mon Mar 18 09:47:07 2019 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/9a1d664d23e043289730f9c9897f14fb5b42e208 [^]

Fixed issue 40400: Fixed errors when creating payment terms

PSD amount are now correctly set.
The outstanding amount is correctly updated. A a payment was in awaiting execution, the paid and outstanding amount is correctly maintained.
If a payment term line was a 'rest' line, now a wrong payment term line is not created.

---
M src/org/openbravo/retail/posterminal/utility/InvoiceUtils.java
---
(0110478)
hgbot   
2019-03-18 14:10   
Repository: tools/automation/pi-mobile
Changeset: fe033ba71c884943d9fb0779b67be67597041e75
Author: Asier Martirena <asier.martirena <at> openbravo.com>
Date: Mon Mar 18 14:08:56 2019 +0100
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/fe033ba71c884943d9fb0779b67be67597041e75 [^]

Related to issue 40400: Updated automated test

---
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/system/I36907_VerifyReceiptWithPaymentTermLineII.java
---