Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0020053Openbravo ERP09. Financial managementpublic2012-03-16 18:562012-04-02 06:11
psarobe 
eduardo_Argal 
urgentmajoralways
closedfixed 
5
pi 
3.0MP10 
Advanced Payables and Receivables Mngmt
No
0020053: Advance Matching algorithm is not working properly in some circumstances
Advance Matching algorithm is not working properly in some circumstances. When there are 2 sales orders in one sales invoice it gets confused. It wonly takes the amount of the first sales order and not the whole sales invoice
1. Create 2 sales orders and complete
2. Create one sales invoice that contains both orders
3. Go to financial account and create a bankstatement with a line with same business partner and amount as the newly sales invoice
4. Click match statement
5. Notice takes the amount of only one sales invoice
No tags attached.
Issue History
2012-03-16 18:56psarobeNew Issue
2012-03-16 18:56psarobeAssigned To => eduardo_Argal
2012-03-16 18:56psarobeModules => Core
2012-03-16 19:59psarobeModulesCore => Advanced Payables and Receivables Mngmt
2012-03-20 13:31eduardo_ArgalStatusnew => scheduled
2012-03-20 13:31eduardo_Argalfix_in_branch => pi
2012-03-21 17:58hgbotCheckin
2012-03-21 17:58hgbotNote Added: 0046615
2012-03-21 17:58hgbotStatusscheduled => resolved
2012-03-21 17:58hgbotResolutionopen => fixed
2012-03-21 17:58hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/d105fb5e8e0868d930504aa7b78fc971533262ae [^]
2012-03-23 10:39hgbotCheckin
2012-03-23 10:39hgbotNote Added: 0046668
2012-03-23 10:39hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/devel/pi/rev/d105fb5e8e0868d930504aa7b78fc971533262ae [^] => http://code.openbravo.com/erp/pmods/org.openbravo.module.invoicematchingalgorithm/rev/4f6e189bec66312279ec26f091fb7290f90ab8f4 [^]
2012-03-29 11:06miruritaNote Added: 0046864
2012-03-29 11:06miruritaStatusresolved => closed
2012-03-29 11:06miruritaFixed in Version => 3.0MP9
2012-03-30 08:25miruritaNote Added: 0046949
2012-03-30 08:25miruritaStatusclosed => new
2012-03-30 08:25miruritaResolutionfixed => open
2012-03-30 08:25miruritaFixed in Version3.0MP9 =>
2012-03-30 08:26miruritaStatusnew => scheduled
2012-03-30 08:26miruritaStatusscheduled => resolved
2012-03-30 08:26miruritaFixed in Version => 3.0MP10
2012-03-30 08:26miruritaResolutionopen => fixed
2012-03-30 08:26miruritaStatusresolved => closed
2012-04-02 06:11hudsonbotCheckin
2012-04-02 06:11hudsonbotNote Added: 0047190

Notes
(0046615)
hgbot   
2012-03-21 17:58   
Repository: erp/devel/pi
Changeset: d105fb5e8e0868d930504aa7b78fc971533262ae
Author: Eduardo Argal Guibert <eduardo.argal <at> openbravo.com>
Date: Tue Mar 20 13:31:51 2012 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/d105fb5e8e0868d930504aa7b78fc971533262ae [^]

Fixes bug 20053

---
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/ad_actionbutton/MatchTransaction.java
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/utility/FIN_MatchedTransaction.java
---
(0046668)
hgbot   
2012-03-23 10:39   
Repository: erp/pmods/org.openbravo.module.invoicematchingalgorithm
Changeset: 4f6e189bec66312279ec26f091fb7290f90ab8f4
Author: Eduardo Argal Guibert <eduardo.argal <at> openbravo.com>
Date: Fri Mar 23 10:39:14 2012 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.module.invoicematchingalgorithm/rev/4f6e189bec66312279ec26f091fb7290f90ab8f4 [^]

Fixes bug 20053: Advance Matching algorithm is not working properly in some circumstances

---
M src/org/openbravo/module/invoicematchingalgorithm/algorithm/InvoiceMatchingAlgorithm.java
---
(0046864)
mirurita   
2012-03-29 11:06   
Testing Plan:

Basic flow:
1. Create 2 sales orders for 'Sleep Well Hotels' business partner and complete.
2. Create one sales invoice that contains both orders.
3. Go to financial account and configure it to use 'Advanced Matching Algorithm'.
4. Create a bankstatement with a line with same business partner and amount as the previous sales invoice.
5. Click match statement button.
6. The sales invoice should match with bank statement line and the amount should be the sum of both sales order.
7. Click on cancel button.
8. Create the payment and deposit the transaction for the previous invoice.
9. Go to financial account and click on match statement button.
10. The matching should be done with the existing transaction.
11. Click on cancel button
12. Delete the transaction.
13. Click on match statement button.
14. The matching should be done with the existing payment.
15. Reactivate the payment.
16. Configure the payment method of the sales invoice to be automatic and deferred.
17. Click on match statement button.
18. The matching should not be proposed because the payment method of the sales invoice is configured to be automatic.
19. Reactivate the sales invoice
20. Click on match statement button.
18. The matching should be done creating credit to the business partner.

Alternative flow
1. Create 1 sales orders for 'Sleep Well Hotels' business partner and complete.
2. Create two sales invoices that contains previous order.
3. Create a payment containing both sales invoices and deposit in the financial account.
4. Go to financial account and configure it to use 'Advanced Matching Algorithm'.
5. Create a bankstatement with a line with same business partner and amount as the previous payment.
6. Click match statement button.
7. The transaction should match with bank statement line.
8. Click on cancel button.
9. Delete the transaction.
10. Click on match statement button.
11. The matching should be done with the existing payment.
12. Reactivate the payment.
13. Click on match statement button.
14. The matching should be done with the existing order.
15. Reactivate both sales invoice and the order.
16. Click on match statement button.
17. The matching should be done creating credit to the business partner.
(0046949)
mirurita   
2012-03-30 08:25   
Re-opened only because fixed in version should be updated to 3.0MP10.
(0047190)
hudsonbot   
2012-04-02 06:11   
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/7814864461ac [^]

Maturity status: Test