Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0027289Openbravo ERPZ. Otherspublic2014-08-07 10:362015-02-04 20:34
maite 
AtulOpenbravo 
urgentmajoralways
closedfixed 
5
 
3.0PR15Q23.0PR15Q2 
Sandrahuguet
Advanced Payables and Receivables Mngmt
No
0027289: "Not Balance" error received when posting a multi-currency OUT transaction (although suspense balancing no needs to be used)
"Not Balance" error received when posting a multi-currency OUT transaction (although suspense balancing no needs to be used)
0. Access "General Ledger Configuration" window and "General Accounts" tab. Configure both accounting schemas with "Suspense Balancing Use" unmarked
1. Configure "Transferencia" payment method as "Receive Payments in Multiple Currency"
2. Register Payment OUT for "Alimentos y Supermercados" for any amount, "Transferencia" payment method and USD currency. "Add details" and select any GL Item and "Process and Deposit"
3. Access already created multi-currency transaction a try to post it. 'Not balance' error will be obtained

If you access to General Ledger Configuration and mark "Suspense Balancing Use" and then try to post Transaction again it will be correctly posted (not using suspense balancing account)
Problem is in "getBalance" method in DocFINFinAccTransaction.java, in lines 808 and 816 because lineBalance is negative and it is being substracted
No tags attached.
related to defect 0025173 closed pramakrishnan "Not Balance" error received when posting a multi-currency transaction (although suspense balancing no needs to be used) 
causes defect 00302733.0PR15Q4 closed AtulOpenbravo "Not Balance" error received when posting a transaction (although suspense balancing is not needed) 
Issue History
2014-08-07 10:36maiteNew Issue
2014-08-07 10:36maiteAssigned To => dmiguelez
2014-08-07 10:36maiteModules => Advanced Payables and Receivables Mngmt
2014-08-07 10:36maiteResolution time => 1410300000
2014-08-07 10:36maiteTriggers an Emergency Pack => No
2014-08-07 10:37maiteRelationship addedrelated to 0025173
2014-08-07 10:37maiteIssue Monitored: networkb
2014-09-29 10:49eduardo_ArgalTarget Version3.0PR14Q4 => 3.0PR15Q1
2014-12-22 17:25SandrahuguetTarget Version3.0PR15Q1 => 3.0PR15Q2
2015-01-12 09:24SandrahuguetAssigned Todmiguelez => AtulOpenbravo
2015-01-13 07:58AtulOpenbravoStatusnew => scheduled
2015-01-13 07:58AtulOpenbravofix_in_branch => pi
2015-01-13 08:37AtulOpenbravoNote Added: 0073442
2015-01-22 17:27hgbotCheckin
2015-01-22 17:27hgbotNote Added: 0073729
2015-01-22 17:27hgbotStatusscheduled => resolved
2015-01-22 17:27hgbotResolutionopen => fixed
2015-01-22 17:27hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/368eb470c2955fb9525c9e529591c2699122ef21 [^]
2015-01-22 17:27SandrahuguetNote Added: 0073730
2015-01-22 17:28SandrahuguetReview Assigned To => Sandrahuguet
2015-01-22 17:28SandrahuguetStatusresolved => closed
2015-01-22 17:28SandrahuguetFixed in Version => 3.0PR15Q2
2015-02-04 20:34hudsonbotCheckin
2015-02-04 20:34hudsonbotNote Added: 0074174
2015-07-02 12:20vmromanosRelationship addedcauses 0030273

Notes
(0073442)
AtulOpenbravo   
2015-01-13 08:37   
Test Plan
- Login as F&B International Group Admin role.
- Navigate to "General Ledger Configuration" window. Configure both accounting schemas >>"General Accounts" >> "Suspense Balancing Use" = No.
- Configure "Transferencia" payment method as "Receive Payments in Multiple Currency" as well as in Financial Account >> Payment Method tab.
- Create a Payment OUT for "Bebidas" for any amount, "Transferencia" payment method and USD currency. "Add details" and select any GL Item and "Process and Withdrawal".
- Navigate to created multi-currency transaction in financial Account >> Transaction Tab. Post it.
- Transaction is posted succesfully.
(0073729)
hgbot   
2015-01-22 17:27   
Repository: erp/devel/pi
Changeset: 368eb470c2955fb9525c9e529591c2699122ef21
Author: Atul Gaware <atul.gaware <at> openbravo.com>
Date: Tue Jan 13 12:59:52 2015 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/368eb470c2955fb9525c9e529591c2699122ef21 [^]

Fixes Issue 27289:"Not Balance" error received when posting a multi-currency
OUT transaction (although suspense balancing no needs to be used)

Problem was a negate value (in case of payments where isReceipt=No) was being
subtracted.

---
M src/org/openbravo/erpCommon/ad_forms/DocFINFinAccTransaction.java
---
(0073730)
Sandrahuguet   
2015-01-22 17:27   
Code review + testing OK
(0074174)
hudsonbot   
2015-02-04 20:34   
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/f36c91d0ad63 [^]
Maturity status: Test