Openbravo Issue Tracking System - Retail Modules
View Issue Details
0040382Retail ModulesWeb POSpublic2019-03-14 12:252019-03-28 19:26
asiermartirena 
asiermartirena 
urgentmajoralways
closedfixed 
5
 
RR19Q2 
marvintm
No
0040382: The paid amount of the invoices is not set correctly in some cases
When creating an invoice from the Web POS to which some existing payment is being added, even if the payment is not in a status in which is considered paid the paid amount of the invoice is set to that quantity.
Configure a payment method to create the payments in status 'Awaiting Execution' by default.
Load the Web POS and create and synchronize a ticket using that payment method. Don't create an invoice.
Check in the backend that the order's paid amount is zero, and that the outstanding value is the total value.
Load the order in the Web POS and synchronize again generating the invoice.
Realize in the backend that the invoice is set as completely paid, when should be in the same status the order is.
No tags attached.
Issue History
2019-03-14 12:25asiermartirenaNew Issue
2019-03-14 12:25asiermartirenaAssigned To => asiermartirena
2019-03-14 12:25asiermartirenaTriggers an Emergency Pack => No
2019-03-18 09:02hgbotCheckin
2019-03-18 09:02hgbotNote Added: 0110469
2019-03-18 09:02hgbotStatusnew => resolved
2019-03-18 09:02hgbotResolutionopen => fixed
2019-03-18 09:02hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/e0c78ec4ab082c00567963e39d5a00dabfac503c [^]
2019-03-28 19:26marvintmReview Assigned To => marvintm
2019-03-28 19:26marvintmStatusresolved => closed
2019-03-28 19:26marvintmFixed in Version => RR19Q2

Notes
(0110469)
hgbot   
2019-03-18 09:02   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: e0c78ec4ab082c00567963e39d5a00dabfac503c
Author: Asier Martirena <asier.martirena <at> openbravo.com>
Date: Thu Mar 14 12:42:04 2019 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/e0c78ec4ab082c00567963e39d5a00dabfac503c [^]

Fixed issue 40382: The paid amount of the invoices is not set correctly in some cases

When checking each payment detail if is counted for the amount to pay, previously the check was being done using a static constant instead of a value in each payment. Now that check is done comparing the payment status with the status in the financial account.

---
M src/org/openbravo/retail/posterminal/utility/InvoiceUtils.java
---