Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0018486Openbravo ERP09. Financial managementpublic2011-09-09 13:402011-09-21 18:26
gorkaion 
gorkaion 
normalminoralways
closedfixed 
20Gentoo
2.50MP32 
 
Core
No
0018486: Payment monitor is not properly updated when payments are included on a settlement mixing receipts and payments
If a settlement is created mixing receipts and payments the payment monitor of the related invoices is not properly calculated.
Scenario 1:
1. Create a purchase invoice and process it (for example of 500€)
2. Create a settlement that cancels invoice's payment converting it in a negative receipt.
3. Create a bank statement to pay the generated negative receipt.
4. Update invoice's payment monitor.
Expected result is: Paid 500€ and outstanding 0€
Current result is: Paid -500€ and outstanding 1000€

Scenario 2:
1. Create a purchase invoice and process it (500€)
2. Create a sales invoice and process it (1000€)
3. Create a settlement that cancels both payments and generates a receipt of 500€
4. Create a bank statement to pay the generated receipt.
5. Update payment monitor of the purchase invoice:
Expected result is: Paid 500€ and outstanding 0€
Current result is: Paid 166.67€ and outstanding 333.33€
No tags attached.
blocks defect 0018485 closed gorkaion Payment monitor is not properly updated when payments are included on a settlement mixing receipts and payments 
Issue History
2011-09-09 13:41gorkaionTypedefect => backport
2011-09-09 13:41gorkaionfix_in_branch => 2.50
2011-09-09 15:08hgbotCheckin
2011-09-09 15:08hgbotNote Added: 0040849
2011-09-09 15:08hgbotStatusscheduled => resolved
2011-09-09 15:08hgbotResolutionopen => fixed
2011-09-09 15:08hgbotFixed in SCM revision => http://code.openbravo.com/erp/stable/2.50/rev/77a212e830828c04d8eda3f63e1655bba3715ad2 [^]
2011-09-21 18:26psanjuanNote Added: 0041201
2011-09-21 18:26psanjuanStatusresolved => closed

Notes
(0040849)
hgbot   
2011-09-09 15:08   
Repository: erp/stable/2.50
Changeset: 77a212e830828c04d8eda3f63e1655bba3715ad2
Author: Gorka Ion Damián <gorkaion.damian <at> openbravo.com>
Date: Fri Sep 09 14:43:41 2011 +0200
URL: http://code.openbravo.com/erp/stable/2.50/rev/77a212e830828c04d8eda3f63e1655bba3715ad2 [^]

Fixed issue 18486.Fixed payment monitor calculation.

---
M src/org/openbravo/erpCommon/ad_process/PaymentMonitor.java
---
(0041201)
psanjuan   
2011-09-21 18:26   
fixed and working.