Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0023206Openbravo ERP09. Financial managementpublic2013-03-01 13:022013-03-04 10:59
dmiguelez 
dmiguelez 
normalmajoralways
closedfixed 
20Community Appliance
 
3.0MP21 
mirurita
Core
No
0023206: Issue when Processing Amortizations with Multicurrency.
If an Amortization has Amortization Lines in different currencies, it fails when processing it.
Create an Asset Group with Organization *

Create an Asset with
- Currency USD
- Depreciate Yes
- Calculate Type Time
- Amortize Monthly
- Usable Life - Months 10
- Depreciation Start Date Today
- Asset Value 100,000.00
Click on Recalculate Amortization

Create an Asset with
- Currency EUR
- Depreciate Yes
- Calculate Type Time
- Amortize Monthly
- Usable Life - Months 10
- Depreciation Start Date Today
- Asset Value 100,000.00
Click on Recalculate Amortization

In Amortization Window select the first one and check that there are two lines, one with EUR and the other with USD
Try to process it. It fails.
No tags attached.
Issue History
2013-03-01 13:02dmiguelezNew Issue
2013-03-01 13:02dmiguelezAssigned To => dmiguelez
2013-03-01 13:02dmiguelezModules => Core
2013-03-01 13:02dmiguelezTriggers an Emergency Pack => No
2013-03-01 13:06hgbotCheckin
2013-03-01 13:06hgbotNote Added: 0056892
2013-03-01 13:06hgbotStatusnew => resolved
2013-03-01 13:06hgbotResolutionopen => fixed
2013-03-01 13:06hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/cf93a9fc7d1eca89072b3e4c7349cdc548fee9a2 [^]
2013-03-02 05:48hudsonbotCheckin
2013-03-02 05:48hudsonbotNote Added: 0056944
2013-03-04 10:59miruritaReview Assigned To => mirurita
2013-03-04 10:59miruritaNote Added: 0056973
2013-03-04 10:59miruritaStatusresolved => closed
2013-03-04 10:59miruritaFixed in Version => 3.0MP21

Notes
(0056892)
hgbot   
2013-03-01 13:06   
Repository: erp/devel/pi
Changeset: cf93a9fc7d1eca89072b3e4c7349cdc548fee9a2
Author: David Miguelez <david.miguelez <at> openbravo.com>
Date: Fri Mar 01 13:03:17 2013 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/cf93a9fc7d1eca89072b3e4c7349cdc548fee9a2 [^]

Fixes Issue 0023206. When calling the Convert Currency function
it sends the client and organization.

---
M src-db/database/model/functions/A_AMORTIZATION_PROCESS.xml
---
(0056944)
hudsonbot   
2013-03-02 05:48   
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/f5db629e7058 [^]

Maturity status: Test
(0056973)
mirurita   
2013-03-04 10:59   
code review + testing OK

the total amortization is calculated doing conversions to the amortization header currency:
* Total amortization in EUR: 180
* Total amortization in USD: 255