Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0019136Openbravo ERP09. Financial managementpublic2011-10-05 16:192011-12-15 11:19
mirurita 
ioritzCia 
normalminoralways
closedfixed 
5
pi 
2.50MP372.50MP37 
Core
No
0019136: Assets - create amortization process failing when Start Date is the last day of the month (Monthly depreciation type)
If you configure a monthly amortization starting in the last day of a month it will fail:

Error:
An amortization plan cannot be created for so low amount and / or so big amount of time
1) Go to Financial Management || Assets || Assets || Assets
2) Create a new Asset
 - Search Key: Test
 - Name: Test
 - Calculate Type: Time
 - Amortize: Monthly
 - Usable Life - Months: 2
 - Purchase Date: 31-03-2011
 - Depreciation Start Date: 31-03-2011
 - Asset Value: 100
 - Depreciation Amt: 100
3) Click on Calculate Amortization button

The process fails, showing the following error:
An amortization plan cannot be created for so low amount and / or so big amount of time
No tags attached.
blocks defect 00187073.0MP6 closed ioritzCia Assets - create amortization process failing when Start Date is the last day of the month (Monthly depreciation type) 
Issue History
2011-11-22 13:00ioritzCiaTypedefect => backport
2011-11-22 13:00ioritzCiafix_in_branch => 2.50
2011-11-24 16:54jonalegriaesarteTarget Version3.0MP6 => 2.50MP37
2011-11-24 17:11ioritzCiaAssigned Tojonalegriaesarte => ioritzCia
2011-12-01 11:53hgbotCheckin
2011-12-01 11:53hgbotNote Added: 0043641
2011-12-01 11:53hgbotStatusscheduled => resolved
2011-12-01 11:53hgbotResolutionopen => fixed
2011-12-01 11:53hgbotFixed in SCM revision => http://code.openbravo.com/erp/stable/2.50/rev/773966254d4baeb3f5282eb7e211c70d93e0c84c [^]
2011-12-01 11:53hgbotCheckin
2011-12-01 11:53hgbotNote Added: 0043646
2011-12-01 11:53hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/stable/2.50/rev/773966254d4baeb3f5282eb7e211c70d93e0c84c [^] => http://code.openbravo.com/erp/stable/2.50/rev/e621214afca28bd339cb77390d1def927ad0721e [^]
2011-12-15 11:19jecharriNote Added: 0043891
2011-12-15 11:19jecharriStatusresolved => closed
2011-12-15 11:19jecharriFixed in Version => 2.50MP37

Notes
(0043641)
hgbot   
2011-12-01 11:53   
Repository: erp/stable/2.50
Changeset: 773966254d4baeb3f5282eb7e211c70d93e0c84c
Author: Ioritz Cia <ioritz.cia <at> openbravo.com>
Date: Tue Nov 22 13:01:44 2011 +0100
URL: http://code.openbravo.com/erp/stable/2.50/rev/773966254d4baeb3f5282eb7e211c70d93e0c84c [^]

Fixes issue 19136: Assets - create amortization process failing
when Start Date is the last day of the month (Monthly depreciation type.

---
M src-db/database/model/functions/A_ASSET_POST.xml
---
(0043646)
hgbot   
2011-12-01 11:53   
Repository: erp/stable/2.50
Changeset: e621214afca28bd339cb77390d1def927ad0721e
Author: Ioritz Cia <ioritz.cia <at> openbravo.com>
Date: Thu Dec 01 10:26:22 2011 +0100
URL: http://code.openbravo.com/erp/stable/2.50/rev/e621214afca28bd339cb77390d1def927ad0721e [^]

Fixes issue 19136: Assets - create amortization process failing
when Start Date is the last day of the month (Monthly depreciation type).

---
M src-db/database/model/functions/A_ASSET_POST.xml
---
(0043891)
jecharri   
2011-12-15 11:19   
I have tested with first and end days of the months 01/04/2011, 31/04/2011,01/03/2011 and 31/03/2011
Apart form that, I have tested with intermediate days and it is working properly.