Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0018707Openbravo ERP09. Financial managementpublic2011-10-05 16:192011-12-01 18:42
mirurita 
ioritzCia 
normalminoralways
closedfixed 
5
pi 
3.0MP6 
OBPS
Core
12826
No
0018707: 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.
depends on backport 00191362.50MP37 closed ioritzCia Assets - create amortization process failing when Start Date is the last day of the month (Monthly depreciation type) 
png Asset_Amortization.png (53,291) 2011-10-05 16:19
https://issues.openbravo.com/file_download.php?file_id=4620&type=bug
png

txt a_asset_post.txt (1,002) 2011-11-22 10:47
https://issues.openbravo.com/file_download.php?file_id=4767&type=bug
Issue History
2011-10-05 16:19miruritaNew Issue
2011-10-05 16:19miruritaAssigned To => jonalegriaesarte
2011-10-05 16:19miruritaFile Added: Asset_Amortization.png
2011-10-05 16:19miruritaModules => Core
2011-10-05 16:19miruritaOBNetwork customer => No
2011-10-10 12:55miruritaSupport ticket => 12826
2011-10-10 12:55miruritaResolution time => 1324335600
2011-10-10 12:55miruritaSeveritymajor => minor
2011-11-21 16:35miruritaFile Added: a_asset_post
2011-11-22 10:46miruritaOBNetwork customerNo => Yes
2011-11-22 10:47miruritaFile Deleted: a_asset_post
2011-11-22 10:47miruritaFile Added: a_asset_post.txt
2011-11-22 10:50ioritzCiaTarget Version => 3.0MP6
2011-11-22 13:00ioritzCiaStatusnew => scheduled
2011-11-22 13:00ioritzCiafix_in_branch => pi
2011-11-24 16:55jonalegriaesarteAssigned Tojonalegriaesarte => ioritzCia
2011-11-30 16:22hgbotCheckin
2011-11-30 16:22hgbotNote Added: 0043592
2011-11-30 16:22hgbotStatusscheduled => resolved
2011-11-30 16:22hgbotResolutionopen => fixed
2011-11-30 16:22hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/c6091e1c1bf1db5c80b6309e92052a74cf9acb52 [^]
2011-12-01 17:54miruritaNote Added: 0043658
2011-12-01 17:54miruritaStatusresolved => closed
2011-12-01 18:42hudsonbotCheckin
2011-12-01 18:42hudsonbotNote Added: 0043664

Notes
(0043592)
hgbot   
2011-11-30 16:22   
Repository: erp/devel/pi
Changeset: c6091e1c1bf1db5c80b6309e92052a74cf9acb52
Author: Ioritz Cia <ioritz.cia <at> openbravo.com>
Date: Fri Nov 25 09:24:08 2011 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/c6091e1c1bf1db5c80b6309e92052a74cf9acb52 [^]

Fixes issue 18707: 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
---
(0043658)
mirurita   
2011-12-01 17:54   
Verified in http://live.builds.openbravo.com/int-full-pgsql [^] on 01/12/2011.
(0043664)
hudsonbot   
2011-12-01 18:42   
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/d188a2d275a9 [^]

Maturity status: Test