Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0019996Openbravo ERPZ. Otherspublic2012-03-09 13:312012-09-13 10:42
maite 
dmiguelez 
highminoralways
closedfixed 
5
 
3.0MP12 
Advanced Payables and Receivables Mngmt
No
0019996: Customer Balance field is not affected when processing payment but affected when reactivating it
Customer Balance field is not affected when processing payment but affected when reactivating it
1. Configure Payment Method as:
  Execution type= automatic
  Execution process= simple execution process
  Automatic deposit=checked
2. Choose any Business Partner and verify actual "Customer Balance" amount in customer tab
3. Create Payment In for chosen business partner and previous payment method. Set any amount and press "Add details" button. Don't choose any order/invoice/item and process leaving amount as credit
4. Check business partner Customer Balance and realize that balance is the same
5. Go to Financial Account and delete associated transaction
6. Reactivate payment In and verify that balance has been affected

This is not consistent behaviour
No tags attached.
Issue History
2012-03-09 13:31maiteNew Issue
2012-03-09 13:31maiteAssigned To => vmromanos
2012-03-09 13:31maiteModules => Advanced Payables and Receivables Mngmt
2012-03-09 13:36maiteIssue Monitored: networkb
2012-03-12 12:26vmromanosAssigned Tovmromanos => jonalegriaesarte
2012-03-15 18:38jonalegriaesarteAssigned Tojonalegriaesarte => jecharri
2012-03-23 12:25jecharriNote Added: 0046679
2012-03-27 17:25jecharriSeveritymajor => minor
2012-03-27 17:25jecharriTarget Version3.0MP10 => 3.0MP11
2012-03-27 17:25jecharriPriorityurgent => high
2012-04-13 10:10jecharriAssigned Tojecharri => ioritzCia
2012-04-26 10:37jonalegriaesarteNote Added: 0047994
2012-04-26 10:37jonalegriaesarteTypedefect => design defect
2012-04-26 10:37jonalegriaesarteTarget Version3.0MP11 => 3.0MP12
2012-05-04 08:57hgbotCheckin
2012-05-04 08:57hgbotNote Added: 0048362
2012-05-04 08:57hgbotStatusnew => resolved
2012-05-04 08:57hgbotResolutionopen => fixed
2012-05-04 08:57hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/0fc03ce854f2201069ccd55f9c88ee472eeed998 [^]
2012-05-04 09:23maiteNote Added: 0048363
2012-05-04 09:23maiteStatusresolved => closed
2012-05-25 12:09hudsonbotCheckin
2012-05-25 12:09hudsonbotNote Added: 0049019
2012-06-06 16:09ioritzCiaNote Added: 0049652
2012-09-13 10:42jonalegriaesarteAssigned ToioritzCia => dmiguelez

Notes
(0046679)
jecharri   
2012-03-23 12:25   
The change is goint to be risky so I recommend to change the MP from MP10 to the next MP
(0047994)
jonalegriaesarte   
2012-04-26 10:37   
Defined as design defect, it will be included in MP12
(0048362)
hgbot   
2012-05-04 08:57   
Repository: erp/devel/pi
Changeset: 0fc03ce854f2201069ccd55f9c88ee472eeed998
Author: Ioritz Cia <ioritz.cia <at> openbravo.com>
Date: Wed May 02 17:57:12 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/0fc03ce854f2201069ccd55f9c88ee472eeed998 [^]

Fixes issue 19996: Error in customer balance when processing/reactivating payment.
Customer Balance field is not affected when processing payment but affected when reactivating it.

---
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/process/FIN_ExecutePayment.java
---
(0048363)
maite   
2012-05-04 09:23   
verified
(0049019)
hudsonbot   
2012-05-25 12:09   
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/5401e185a8b0 [^]

Maturity status: Test
(0049652)
ioritzCia   
2012-06-06 16:09   
Testing plan:

1.- Create a Payment Method:

 - Execution Type: Automatic
 - Execution Process: Simple Execution Process
 - Deferred: Checked

 You can configure this in both payment in and payment out sections to be able to use this payment method in both.

2.- Go to an existing financial account (for example Bank Account 2) and set the new payment method in the payment method tab.

3.- Go to payment in window (F&B US org if you want to use Bank Account 2) and fill the data with the previously configured data.
 - In this case org: F&B US
 - Received From: Choose any business partner and check it's balance in it's customer tab.
 - Previously created payment method.
 - Amount 100.
 - Deposit To: Bank account 2
 Click in add details button:
 - Transaction type G/L Item.
 - G/L Item: not relevant choose anyone.
 - Leave this amount to be used later
 Process it
 Check that the customer balance has decreased the payment amount.
 Reactivate the payment.
 Check that the customer balance has been restored.

4.- Same as before but with an Invoice:
 Select a Partner and check it's balance.(With a US Partner)
 Create a sales invoice with previous partner, previously created payment method, complete it and do not use credit to pay it.
 Check that the customer balance has increased.
 Create a payment in as previously, with the same amount as the total gross amount as the previously created invoice.
 Click on add details, deselect any invoice or selected item and leave this amount to be used later. Process it and execute it.
 Check that the customer balance has decreased.
 Go to the invoice, click on add payment, click on use available credit and pay the invoice.
 A second payment will be created.
 Go to the second payment and reactivate it.
 Go to first payment and rectivate it.
 Check that the customer balance has increased.
 Go to the invoice and reactivate it.
 Check that the customer balance has decreased.
 
You can check this for either sales or pruchase flow.