Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0024038Openbravo ERP09. Financial managementpublic2013-06-11 11:142013-08-01 17:51
maite 
ioritzCia 
urgentmajoralways
closedfixed 
5
 
3.0MP26 
Core
No
0024038: Wrong accounting in prepayment against invoice with different conversion rates
When posting a prepayment against invoice and invoice's date and payment's date have different conversion rate defined, accounting entry is not being properly generated
1. Register Purchase Invoice for any Business Partner and date 10/06/2013. Add any lines and process.
2. Define Conversion rate of 0.5 between invoice's currency and accounting schema currency for 10/06/2013
3. Register Payment Out for same BP and payment date 06/06/2013. Add invoice's detail and process.
4. Define Conversion rate of 0.7 between invoice's currency and accounting schema currency for 06/06/2013
5. Post Payment Out and realize that accounting entry is not properly generated as "currency differences" account is not being used.
"bpAmountConverted" is used in createline method, but in that case it is not being calculated as condition "if (!isPrepayment && invoice != null) {" is not satisfied. "bpAmountConverted" should also be calculated in that case.
No tags attached.
Issue History
2013-06-11 11:14maiteNew Issue
2013-06-11 11:14maiteAssigned To => dmiguelez
2013-06-11 11:14maiteModules => Core
2013-06-11 11:14maiteTriggers an Emergency Pack => No
2013-06-11 11:16maiteAssigned Todmiguelez => jonalegriaesarte
2013-06-11 11:16maiteIssue Monitored: networkb
2013-07-01 09:38jonalegriaesarteAssigned Tojonalegriaesarte => ioritzCia
2013-07-01 09:39jonalegriaesarteTarget Version3.0MP24 => 3.0MP26
2013-07-01 09:40maiteAssigned ToioritzCia => jonalegriaesarte
2013-07-01 09:40maiteTarget Version3.0MP26 => 3.0MP24
2013-07-01 09:40maiteProposed Solution updated
2013-07-01 09:42jonalegriaesarteAssigned Tojonalegriaesarte => ioritzCia
2013-07-01 09:42jonalegriaesarteTarget Version3.0MP24 => 3.0MP26
2013-07-01 10:05ngarciaIssue Monitored: ngarcia
2013-07-02 12:48hgbotCheckin
2013-07-02 12:48hgbotNote Added: 0059808
2013-07-02 12:48hgbotStatusnew => resolved
2013-07-02 12:48hgbotResolutionopen => fixed
2013-07-02 12:48hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/7f337909ca826f02ed6673cce17bbdf0d2ac5b7e [^]
2013-07-08 10:18hgbotCheckin
2013-07-08 10:18hgbotNote Added: 0059908
2013-07-16 14:26hudsonbotCheckin
2013-07-16 14:26hudsonbotNote Added: 0060008
2013-07-16 14:26hudsonbotCheckin
2013-07-16 14:26hudsonbotNote Added: 0060033
2013-07-22 12:22maiteNote Added: 0060144
2013-07-22 12:22maiteStatusresolved => closed
2013-07-31 17:25hgbotCheckin
2013-07-31 17:25hgbotNote Added: 0060435
2013-08-01 17:51hudsonbotCheckin
2013-08-01 17:51hudsonbotNote Added: 0060463

Notes
(0059808)
hgbot   
2013-07-02 12:48   
Repository: erp/devel/pi
Changeset: 7f337909ca826f02ed6673cce17bbdf0d2ac5b7e
Author: Ioritz Cia <ioritz.cia <at> openbravo.com>
Date: Mon Jul 01 17:32:35 2013 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/7f337909ca826f02ed6673cce17bbdf0d2ac5b7e [^]

Fixes issue 24038: Prepayment against invoice with different conversion rates.

---
M src/org/openbravo/erpCommon/ad_forms/DocFINPayment.java
---
(0059908)
hgbot   
2013-07-08 10:18   
Repository: erp/devel/pi
Changeset: 47a20feae056fb9c638cd77fbe448d282b3ff0af
Author: Ioritz Cia <ioritz.cia <at> openbravo.com>
Date: Mon Jul 08 10:16:59 2013 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/47a20feae056fb9c638cd77fbe448d282b3ff0af [^]

Related to issue 24038: Prepayment against invoice with different conversion rates.

---
M src/org/openbravo/erpCommon/ad_forms/DocFINPayment.java
---
(0060008)
hudsonbot   
2013-07-16 14:26   
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/9a5d5983399f [^]

Maturity status: Test
(0060033)
hudsonbot   
2013-07-16 14:26   
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/9a5d5983399f [^]

Maturity status: Test
(0060144)
maite   
2013-07-22 12:22   
verified
(0060435)
hgbot   
2013-07-31 17:25   
Repository: erp/devel/pi
Changeset: bd25ca783eca952ba80d3e33ee130ff870f81a39
Author: Ioritz Cia <ioritz.cia <at> openbravo.com>
Date: Wed Jul 31 12:11:59 2013 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/bd25ca783eca952ba80d3e33ee130ff870f81a39 [^]

Related to issue 24038: Prepayment against invoice with different conversion rates.

---
M src/org/openbravo/erpCommon/ad_forms/DocFINPayment.java
---
(0060463)
hudsonbot   
2013-08-01 17:51   
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/37aeae33b0c0 [^]

Maturity status: Test