Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0018485Openbravo ERP09. Financial managementpublic2011-09-09 13:402011-10-12 01:58
gorkaion 
gorkaion 
normalminoralways
closedfixed 
20Gentoo
2.50MP32 
 
Core
No
0018485: 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.
depends on backport 0018486 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:40gorkaionNew Issue
2011-09-09 13:40gorkaionAssigned To => gorkaion
2011-09-09 13:40gorkaionModules => Core
2011-09-09 13:41gorkaionStatusnew => scheduled
2011-09-09 13:41gorkaionfix_in_branch => pi
2011-09-19 17:09hgbotCheckin
2011-09-19 17:09hgbotNote Added: 0041082
2011-09-19 17:09hgbotStatusscheduled => resolved
2011-09-19 17:09hgbotResolutionopen => fixed
2011-09-19 17:09hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/e5982f367e56015018512a3f58ac18ae5ddd5d85 [^]
2011-09-19 17:10hgbotCheckin
2011-09-19 17:10hgbotNote Added: 0041083
2011-09-21 18:27psanjuanNote Added: 0041202
2011-09-23 14:59psanjuanNote Added: 0041266
2011-09-23 14:59psanjuanStatusresolved => closed
2011-09-23 14:59psanjuanfix_in_branchpi =>
2011-10-12 01:58hudsonbotCheckin
2011-10-12 01:58hudsonbotNote Added: 0041677

Notes
(0041082)
hgbot   
2011-09-19 17:09   
Repository: erp/devel/pi
Changeset: e5982f367e56015018512a3f58ac18ae5ddd5d85
Author: Gorka Ion Damián <gorkaion.damian <at> openbravo.com>
Date: Mon Sep 19 17:08:19 2011 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/e5982f367e56015018512a3f58ac18ae5ddd5d85 [^]

Fixed issue 18485.Forwardport fix on 2.50 branch.

---
M src/org/openbravo/erpCommon/ad_process/PaymentMonitor.java
---
(0041083)
hgbot   
2011-09-19 17:10   
Repository: erp/mods/org.openbravo.erputil.aprmigrationtool
Changeset: 9333bc12b8d0b2fc22428a97e6993218623c9ab6
Author: Gorka Ion Damián <gorkaion.damian <at> openbravo.com>
Date: Mon Sep 19 17:09:02 2011 +0200
URL: http://code.openbravo.com/erp/mods/org.openbravo.erputil.aprmigrationtool/rev/9333bc12b8d0b2fc22428a97e6993218623c9ab6 [^]

Related to issue 18485.Forwardport fix on 2.50 branch.

---
M src/org/openbravo/erputil/aprmigrationtool/utility/UpdatePaymentMonitorOldFlow.java
---
(0041202)
psanjuan   
2011-09-21 18:27   
we can not directly test this but through migration process.
(0041266)
psanjuan   
2011-09-23 14:59   
fixed and working
(0041677)
hudsonbot   
2011-10-12 01:58   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/9bd2b5c2d982 [^]

Maturity status: Test