Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0020808Openbravo ERP02. Master data managementpublic2012-06-19 18:122012-07-26 02:42
caristu 
mirurita 
highminoralways
closedfixed 
5
 
3.0MP14 
Core
No
0020808: Customer credit is not updating correctly
After doing a refund to a customer, the customer balance is not being updated correctly. Specifically, the refund amount is summed twice.
1) Go to [Business Partner] window, go to a business partner that is a customer. Check the Customer Balance quantity in the Customer tab.

2) Create a sales invoice and generate credit for the customer chose at step 1). Let's say that the generate credit is x.

3) Create a payment in to make a refund to the customer by checking the "available credit" checkbox. The amount of the refund must be x.

4) Go back to the business Partner Window, check that the Customer Balance has been updated wrong, because its new value has been increased in x+x.
No tags attached.
Issue History
2012-06-19 18:12caristuNew Issue
2012-06-19 18:12caristuAssigned To => mirurita
2012-06-19 18:12caristuModules => Core
2012-06-19 18:12caristuResolution time => 1346191200
2012-06-19 18:17caristuIssue Monitored: networkb
2012-06-19 18:17miruritaAssigned Tomirurita => jonalegriaesarte
2012-06-21 16:22caristuTarget Version => 3.0MP14
2012-06-25 13:14jonalegriaesarteAssigned Tojonalegriaesarte => caristu
2012-06-28 17:40caristuSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=3586#r3586
2012-07-19 13:47miruritaAssigned Tocaristu => mirurita
2012-07-19 13:51hgbotCheckin
2012-07-19 13:51hgbotNote Added: 0050752
2012-07-19 13:51hgbotStatusnew => resolved
2012-07-19 13:51hgbotResolutionopen => fixed
2012-07-19 13:51hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/4fcbb6ceb27d191acde665f87f77241f454b7aec [^]
2012-07-19 13:54miruritaNote Added: 0050753
2012-07-19 15:58hgbotCheckin
2012-07-19 15:58hgbotNote Added: 0050760
2012-07-19 16:00miruritaNote Added: 0050761
2012-07-19 17:15caristuNote Added: 0050766
2012-07-19 17:15caristuStatusresolved => closed
2012-07-26 02:42hudsonbotCheckin
2012-07-26 02:42hudsonbotNote Added: 0050861
2012-07-26 02:42hudsonbotCheckin
2012-07-26 02:42hudsonbotNote Added: 0050862

Notes
(0050752)
hgbot   
2012-07-19 13:51   
Repository: erp/devel/pi
Changeset: 4fcbb6ceb27d191acde665f87f77241f454b7aec
Author: Mikel Irurita <mikel.irurita <at> openbravo.com>
Date: Thu Jul 19 13:50:14 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/4fcbb6ceb27d191acde665f87f77241f454b7aec [^]

Fixes issue 20808: Customer credit is not updating correctly

---
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/process/FIN_PaymentProcess.java
---
(0050753)
mirurita   
2012-07-19 13:54   
Alternative Testing Plan
1) Set customer balance for Restaurantes business partner to 0
2) Create a credit payment in of 100€ for Restaurantes
  + Customer Balance: -100
3) Create a sales invoice of 80€ for Restaurantes
  + Customer Balance: -20
4) Create a payment in for Restaurantes as follows:
  * Amount: 0
  * Use available credit of 100
  * Pay the invoice of 80
  * Refund the difference of 20
5) Check the customer balance, it should be 0.
(0050760)
hgbot   
2012-07-19 15:58   
Repository: erp/devel/pi
Changeset: a155bc15a5190c1a7524cb6f2977675cbefff461
Author: Mikel Irurita <mikel.irurita <at> openbravo.com>
Date: Thu Jul 19 15:58:08 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/a155bc15a5190c1a7524cb6f2977675cbefff461 [^]

Related to issue issue 20808: apply logic to reactivate action

---
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/process/FIN_PaymentProcess.java
---
(0050761)
mirurita   
2012-07-19 16:00   
Alternative Testing Plan II (continues previous testing plan)
6) Reactivate the refund payment
7) Reactivate the payment of step 4)
8) Reactivate the payment of credit
9) Reactivate the invoice
At this point the customer balance should be 0
(0050766)
caristu   
2012-07-19 17:15   
Verified (Steps to Reproduced + Alternative Testing Plans)
(0050861)
hudsonbot   
2012-07-26 02:42   
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/5edf203d5780 [^]

Maturity status: Test
(0050862)
hudsonbot   
2012-07-26 02:42   
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/5edf203d5780 [^]

Maturity status: Test