Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0012907Openbravo ERPZ. Otherspublic2010-04-08 06:452010-12-09 16:00
sureshbabu 
gorkaion 
highmajoralways
closedfixed 
5
2.50 
2.50 
Advanced Payables and Receivables Mngmt
No
0012907: When invoice is void after payment is made, then the payment is not properly handled
Invoice cann't be reactivated after a payment is made but system allows the user to void the invoice after payment is made but right now this scenario not rightly handled in the system.

Here i created a purchase order(PO1) for 100 euros, then i created payment document(Pay1) using Make payment for 10 euros. After that i have created a sales invoice(Inv1) for the above created Sales order. After completiing the sales invoice i am finding the "Paid amount" is rightly updated in the 'payment monitor' section. Then i voided the invoice (inv1) and Inv2 is created with negative amount. Both Inv1 and Inv2 are moved to Void status.

Then i have created Inv3 for the same PO1, after i complete the Inv3 i am finding the payment details are not updated in Payment monitor section in Inv3.

Which i think is error.

 
1)Create and complete a Purchase order (Po1) for 100 euros
2)Create a Payment document using Make Payment(Pay1) for 10 euros
3 Create and complete a purchase invoice using line details from (Po1)
4)Once the invoice(Inv1) is completed payment details will get updatd in payment monitor section. That is paid amount field is assigned with 10
5)Then i tried to void the iinvoice (Inv1) by clicking the Void button
6)Inv2 is created with Negative amount.
7) Both Inv1 & Inv2 are moved to Void status.

8) Then i created a purchase invoice(Inv3) using line details from (Po1)
9)Once the invoice(Inv3) is completed, i am finding that payment details are not getting updatd in payment monitor section. That is paid amount field is assigned with 0.00

Not sure how "Void" functionality is handled when a payment is handled already made for a invoice.

 
No tags attached.
Issue History
2010-04-08 06:45sureshbabuNew Issue
2010-04-08 06:48sureshbabuAssigned To => gorkaion
2010-04-08 09:13sureshbabuSummaryInvoice cann't be reactivated after a payment is made but system allows the user to void the invoice after payment is made => When invoice is void after payment is made, then the payment is not properly handled
2010-04-14 11:32gorkaionStatusnew => scheduled
2010-04-14 11:32gorkaionfix_in_branch => pi
2010-04-14 11:36gorkaionNote Added: 0026168
2010-04-14 11:36gorkaionStatusscheduled => resolved
2010-04-14 11:36gorkaionResolutionopen => fixed
2010-04-19 21:10hudsonbotCheckin
2010-04-19 21:10hudsonbotNote Added: 0026359
2010-04-28 15:17sureshbabuNote Added: 0026782
2010-04-28 15:17sureshbabuStatusresolved => closed
2010-04-28 15:17sureshbabuFixed in Version => 2.50
2010-12-09 16:00anonymoussf_bug_id0 => 3133111

Notes
(0026168)
gorkaion   
2010-04-14 11:36   
This issue has been solved on changeset 147:b14cb4441154 of the module.

When a processed invoice is void it always creates a reversal invoice with negative amounts.

When the invoice doesn't have any payment the payment plans are deleted.

If the invoice has a prepayment (as in this issue's example). The payment plans are deleted as well. So the 3rd invoice will include the prepayment.

If the invoice has some payment and exception is raised not allowing to void it.
(0026359)
hudsonbot   
2010-04-19 21:10   
A changeset related to this issue has been promoted to main after passing a series of tests and an OBX has been generated:

Changeset: http://code.openbravo.com/erp/devel/main/rev/d3ff5ead7684 [^]
Merge Changeset: http://code.openbravo.com/erp/devel/main/rev/91d98bda46c1 [^]
Tests: http://builds.openbravo.com/view/devel-int/ [^]
OBX: http://builds.openbravo.com/erp/core/obx/OpenbravoERP-2.50CI.17088.obx [^]
(0026782)
sureshbabu   
2010-04-28 15:17   
Tested all the three scenarios working fine