Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0014978Openbravo ERPZ. Otherspublic2010-10-21 19:052010-12-09 16:07
psarobe 
eduardo_Argal 
immediatecriticalalways
closedfixed 
5
2.50 
 
Advanced Payables and Receivables Mngmt
No
0014978: Outstanding amount not properly calculated when reactivating an invoice
This is the scenario:
I create a sales order
Then I create one invoice I1 based on this sales order but partially invoiced
Then I create a second invoice I2 invoicing the rest of the above sales order.
Then I decide to reactivate invoice I2
If I go to invoice I1 and I click Add payment button I can see that the payment outstanding is not the amount of the invoice I1 but the amount of the sales order (I1+I2). This is wrong

Expected result: The outstanding amount should be I1 total amount
This is the scenario:
I create a sales order
Then I create one invoice I1 based on this sales order but partially invoiced
Then I create a second invoice I2 invoicing the rest of the above sales order.
Then I decide to reactivate invoice I2
If I go to invoice I1 and I click Add payment button I can see that the payment outstanding is not the amount of the invoice I1 but the amount of the sales order (I1+I2). This is wrong

Expected result: The outstanding amount should be I1 total amount
No tags attached.
Issue History
2010-10-21 19:05psarobeNew Issue
2010-10-21 19:05psarobeAssigned To => eduardo_Argal
2010-10-21 19:05psarobeStatusnew => scheduled
2010-10-21 19:05psarobefix_in_branch => pi
2010-10-21 19:36hgbotCheckin
2010-10-21 19:36hgbotNote Added: 0032084
2010-10-21 19:36hgbotStatusscheduled => resolved
2010-10-21 19:36hgbotResolutionopen => fixed
2010-10-21 19:36hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.advpaymentmngt/rev/1c21b840817a93f645d3813bee86fd7ea42d647a [^]
2010-10-22 13:18sureshbabuNote Added: 0032109
2010-10-22 13:18sureshbabuStatusresolved => closed
2010-12-09 16:07anonymoussf_bug_id0 => 3133525

Notes
(0032084)
hgbot   
2010-10-21 19:36   
Repository: erp/pmods/org.openbravo.advpaymentmngt
Changeset: 1c21b840817a93f645d3813bee86fd7ea42d647a
Author: Eduardo Argal Guibert <eduardo.argal <at> openbravo.com>
Date: Thu Oct 21 19:36:15 2010 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.advpaymentmngt/rev/1c21b840817a93f645d3813bee86fd7ea42d647a [^]

Fixes 0014978: Outstanding amount not properly calculated when reactivating an invoice

---
M src-db/database/model/functions/APRM_GEN_PAYMENTSCHEDULE_INV.xml
---
(0032109)
sureshbabu   
2010-10-22 13:18   
verified the issue, now outstanding amount shows exact the invoice amount and not the total pending order amount.