Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0021640Openbravo ERP03. Procurement managementpublic2012-09-13 13:372015-09-01 00:02
maite 
gorkaion 
urgentmajoralways
closedfixed 
5
3.0MP13 
3.0MP16 
Core
Production - QA Approved
2012-06-27
https://code.openbravo.com/erp/devel/pi/rev/c5aaaa74353d [^]
yes
0021640: Wrong MatchInvoice posting when invoice is in foreign currency
Wrong MatchInvoice posting when invoice is in foreign currency
1. Create Goods Receipt for "España" org. Add line for any product (ensuring that product has cost defined). Process and Post Receipt in "USD accounting schema"
2. Create invoice using "Create Lines from" this receipt. Process and Post. Realize that amount is properly converted and posted in USD.
3. Go to associated Match Invoice document and post it. Realize that "Currency Suspense Balancing" account is used
Problem is that "strExpenses" amount is converted 2 times.
In line 225 (file DocMatchInv.java), "strExpenses" is converted. Than variable "bdExpenses" is created with this converted amount.
However, in line 249, "bdExpenses" is converted again.

Solution is to eliminate conversion performed in line 225
No tags attached.
blocks defect 00228813.0MP22 closed jecharri Wrong definition of the alert 'Wrong Matched Invoice posting. Wrong currency conversion.' 
Issue History
2012-09-13 13:37maiteNew Issue
2012-09-13 13:37maiteAssigned To => dmiguelez
2012-09-13 13:37maiteModules => Core
2012-09-13 13:37maiteAssigned Todmiguelez => jonalegriaesarte
2012-09-13 13:37maiteIssue Monitored: networkb
2012-09-13 18:18maiteProposed Solution updated
2012-09-13 18:18maiteTag Attached: Regression
2012-09-13 18:29maiteAssigned Tojonalegriaesarte => gorkaion
2012-09-13 18:31maiteTag Detached: Regression
2012-09-13 18:32maiteRegression level => Production - Confirmed Stable
2012-09-13 18:33maiteversion => 3.0MP11
2012-09-13 19:15shuehnerIssue Monitored: shuehner
2012-09-18 10:16gorkaionRegression levelProduction - Confirmed Stable => Production - QA Approved
2012-09-18 10:16gorkaionversion3.0MP11 => 3.0MP13
2012-09-18 18:52hgbotCheckin
2012-09-18 18:52hgbotNote Added: 0052214
2012-09-18 18:52hgbotStatusnew => resolved
2012-09-18 18:52hgbotResolutionopen => fixed
2012-09-18 18:52hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/c1726636a231b0952847071ecf1e3b14067fc12f [^]
2012-09-18 18:53dmiguelezClosed by => dmiguelez
2012-09-18 18:53dmiguelezNote Added: 0052215
2012-09-18 18:53dmiguelezStatusresolved => closed
2012-09-21 10:51gorkaionStatusclosed => new
2012-09-21 10:51gorkaionResolutionfixed => open
2012-09-21 10:57gorkaionRegression date => 2012-06-27
2012-09-21 10:57gorkaionRegression introduced by commit => https://code.openbravo.com/erp/devel/pi/rev/c5aaaa74353d [^]
2012-09-21 10:58gorkaionStatusnew => closed
2012-09-21 10:58gorkaionResolutionopen => fixed
2012-09-26 17:16hgbotCheckin
2012-09-26 17:16hgbotNote Added: 0052662
2012-09-26 17:16hgbotStatusclosed => resolved
2012-09-26 17:16hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/devel/pi/rev/c1726636a231b0952847071ecf1e3b14067fc12f [^] => http://code.openbravo.com/erp/devel/pi/rev/c501ca2ff03f81906967655496232966b0b6325c [^]
2012-09-26 17:19hudsonbotCheckin
2012-09-26 17:19hudsonbotNote Added: 0052783
2012-09-26 17:33gorka_gilStatusresolved => closed
2013-01-24 11:17VictorVillarRelationship addedblocks 0022881
2015-09-01 00:02hudsonbotCheckin
2015-09-01 00:02hudsonbotNote Added: 0079932
2015-09-01 00:02hudsonbotCheckin
2015-09-01 00:02hudsonbotNote Added: 0079933

Notes
(0052214)
hgbot   
2012-09-18 18:52   
Repository: erp/devel/pi
Changeset: c1726636a231b0952847071ecf1e3b14067fc12f
Author: Gorka Ion Damián <gorkaion.damian <at> openbravo.com>
Date: Tue Sep 18 16:29:47 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/c1726636a231b0952847071ecf1e3b14067fc12f [^]

Fixed issue 21640.Removed duplicated conversion.

---
M src/org/openbravo/erpCommon/ad_forms/DocMatchInv.java
A src-util/modulescript/build/classes/org/openbravo/modulescript/Issue21640WrongMatchInvAccounting.class
A src-util/modulescript/build/classes/org/openbravo/modulescript/Issue21640WrongMatchInvAccountingData.class
A src-util/modulescript/src/org/openbravo/modulescript/Issue21640WrongMatchInvAccounting.java
A src-util/modulescript/src/org/openbravo/modulescript/Issue21640WrongMatchInvAccounting_data.xsql
---
(0052215)
dmiguelez   
2012-09-18 18:53   
Code Review + Testing OK
(0052662)
hgbot   
2012-09-26 17:16   
Repository: erp/devel/pi
Changeset: c501ca2ff03f81906967655496232966b0b6325c
Author: Gorka Ion Damián <gorkaion.damian <at> openbravo.com>
Date: Tue Sep 18 16:29:47 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/c501ca2ff03f81906967655496232966b0b6325c [^]

Fixed issue 21640.Removed duplicated conversion.

---
M src/org/openbravo/erpCommon/ad_forms/DocMatchInv.java
A src-util/modulescript/build/classes/org/openbravo/modulescript/Issue21640WrongMatchInvAccounting.class
A src-util/modulescript/build/classes/org/openbravo/modulescript/Issue21640WrongMatchInvAccountingData.class
A src-util/modulescript/src/org/openbravo/modulescript/Issue21640WrongMatchInvAccounting.java
A src-util/modulescript/src/org/openbravo/modulescript/Issue21640WrongMatchInvAccounting_data.xsql
---
(0052783)
hudsonbot   
2012-09-26 17:19   
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/b780e90c6452 [^]

Maturity status: Test
(0079932)
hudsonbot   
2015-09-01 00:02   
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/880a20775a45 [^]
Maturity status: Test
(0079933)
hudsonbot   
2015-09-01 00:02   
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/880a20775a45 [^]
Maturity status: Test