Amit Dodiya (OpenERP) has proposed merging
lp:~openerp-dev/openobject-addons/6.1-opw-574732-ado into
lp:openobject-addons/6.1.
Requested reviews:
Xavier ALT (OpenERP) (xal-openerp)
Naresh(OpenERP) (nch-openerp)
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/6.1-opw-574732-ado/+merge/105444
Hello,
"[FIX] : incorrect rounding for residual amount field"
Steps :
1. Create an asset , set Time method = Number of depreciations, Number of
depreciations = 23, Period length = 1
2. Value of the asset: 1500
3. Compute the depreciation board the first Depreciation line = 65.22
4. Now confirm the asset
5. Validate the first depreciation line
6. Reset the asset to draft
7. Change the value of the asset to 2100 and Compute the depreciation board
PROBLEM 1: Second line in depreciation board there is a incorrect rounding for
column Amount already depreciated": 65 instead of 65.22
PROBLEM 2: If you compute the column "Depreciation amount" we do not obtain 2100
Regards,
Amit
--
https://code.launchpad.net/~openerp-dev/openobject-addons/6.1-opw-574732-ado/+merge/105444
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/6.1-opw-574732-ado.
=== modified file 'account_asset/account_asset.py'
--- account_asset/account_asset.py 2012-01-31 13:36:57 +0000
+++ account_asset/account_asset.py 2012-05-11 06:57:26 +0000
@@ -189,7 +189,7 @@
def _amount_residual(self, cr, uid, ids, name, args, context=None):
cr.execute("""SELECT
- l.asset_id as id, round(SUM(abs(l.debit-l.credit))) AS amount
+ l.asset_id as id, SUM(abs(l.debit-l.credit)) AS amount
FROM
account_move_line l
WHERE
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help : https://help.launchpad.net/ListHelp