Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0038643Openbravo ERP09. Financial managementpublic2018-05-28 11:242018-05-29 15:19
ngarcia 
AtulOpenbravo 
immediatemajoralways
closedfixed 
5
 
3.0PR18Q2.13.0PR18Q2.1 
dmiguelez
Core
Production - Confirmed Stable
2017-08-04
3.0PR17Q4
https://code.openbravo.com/erp/devel/pi/rev/2ab8016a2353 [^]
No
0038643: Debit and credit amounts are wrongly updated in G/L Journal lines with different currency than general ledger currency
Debit and credit amounts are wrongly updated in G/L Journal lines with different currency than general ledger currency
As group admin role:
   Define a valid Conversion Rate (different from 1) from EUR to USD
   Create a G/L Journal
      Organization: F&B US, Inc.
      Currency: EUR

   Add a header to it
      Organization: F&B US, Inc.
      General Ledger: F&B International Group US/A/US Dollar
      Currency: EUR
   Check the rate is updated accordingly

   Add a line to it
   Select an account
   Add a Debit amount and check it is updated with the value of 'General Ledger Currency Debit' and it should not
   The same happens with Credit amount
No tags attached.
blocks defect 0038639 closed AtulOpenbravo Debit and credit amounts are wrongly updated in G/L Journal lines with different currency than general ledger currency 
Issue History
2018-05-28 17:52AtulOpenbravoTypedefect => backport
2018-05-28 17:52AtulOpenbravoTarget Version => 3.0PR18Q2.1
2018-05-28 17:57AtulOpenbravoRegression level => Production - Confirmed Stable
2018-05-28 17:57AtulOpenbravoRegression date => 2017-08-04
2018-05-28 17:57AtulOpenbravoRegression introduced in release => 3.0PR17Q4
2018-05-28 17:57AtulOpenbravoRegression introduced by commit => https://code.openbravo.com/erp/devel/pi/rev/2ab8016a2353 [^]
2018-05-28 21:32AtulOpenbravoNote Added: 0104756
2018-05-29 15:17hgbotCheckin
2018-05-29 15:17hgbotNote Added: 0104772
2018-05-29 15:17hgbotStatusscheduled => resolved
2018-05-29 15:17hgbotResolutionopen => fixed
2018-05-29 15:17hgbotFixed in SCM revision => http://code.openbravo.com/erp/backports/3.0PR18Q2.1/rev/e0c799c4d5ba730ce78e1d260d6090a86eac3813 [^]
2018-05-29 15:19dmiguelezReview Assigned To => dmiguelez
2018-05-29 15:19dmiguelezStatusresolved => closed
2018-05-29 15:19dmiguelezFixed in Version => 3.0PR18Q2.1

Notes
(0104756)
AtulOpenbravo   
2018-05-28 21:32   
Test Plan
- Login as F&B International Group Admin role:
- For current period May 18 realize that Currency Conversion EUR to USD is 1.23
- Create a G/L Journal
   - Organization: F&B US, Inc.
   - Currency: EUR
- Add a header to it
   - Organization: F&B US, Inc.
   - General Ledger: F&B International Group US/A/US Dollar
   -Currency: EUR
- Check the rate is set as 1.23
- Add a line to it
- Select any account
- Set Debit amount as 100 and realize that 'General Ledger Currency Debit' is set as 123.
- Set Credit amount as 100 and realize that 'General Legder Currency Credit' is set as 123.
(0104772)
hgbot   
2018-05-29 15:17   
Repository: erp/backports/3.0PR18Q2.1
Changeset: e0c799c4d5ba730ce78e1d260d6090a86eac3813
Author: Atul Gaware <atul.gaware <at> openbravo.com>
Date: Tue May 29 00:27:14 2018 +0530
URL: http://code.openbravo.com/erp/backports/3.0PR18Q2.1/rev/e0c799c4d5ba730ce78e1d260d6090a86eac3813 [^]

Fixes Issue 0038643: Debit and credit amounts are wrongly updated
in G/L Journal lines with different currency than general ledger
currency

**amtSourceDr was wrongly set as amtAcctDr and amtSourceCr as
amtAcctCr in the callouts refactor project. Both values are
set correctly now.

---
M src/org/openbravo/erpCommon/ad_callouts/SL_JournalLineAmt.java
---