[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
SF.net SVN: ledger-smb:[2911] addons/1.3/assets/trunk/sql/modules/Assets. sql
- Subject: SF.net SVN: ledger-smb:[2911] addons/1.3/assets/trunk/sql/modules/Assets. sql
- From: ..hidden..
- Date: Wed, 24 Feb 2010 22:11:59 +0000
Revision: 2911
http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=2911&view=rev
Author: einhverfr
Date: 2010-02-24 22:11:58 +0000 (Wed, 24 Feb 2010)
Log Message:
-----------
Fixing 'doy' error with asset depreciation
Modified Paths:
--------------
addons/1.3/assets/trunk/sql/modules/Assets.sql
Modified: addons/1.3/assets/trunk/sql/modules/Assets.sql
===================================================================
--- addons/1.3/assets/trunk/sql/modules/Assets.sql 2010-02-24 19:55:43 UTC (rev 2910)
+++ addons/1.3/assets/trunk/sql/modules/Assets.sql 2010-02-24 22:11:58 UTC (rev 2911)
@@ -46,8 +46,7 @@
- coalesce(
ai.start_depreciation::timestamp,
ai.purchase_date::timestamp))
- - extract (DOY from
- max(rep.report_date)::timestamp
+ - (max(rep.report_date)
- coalesce(
ai.start_depreciation::timestamp,
ai.purchase_date::timestamp))::numeric / 365
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.