← Back to team overview

openerp-india team mailing list archive

[Bug 1283432] [NEW] wrong analytic amount

 

Public bug reported:

when defining a journal item which has anlalytic, the analytic amount is registered wrong in analytic journal items.
for example a 50$ credit in journal is 50$ debit in analytic journal item. i am using openerp 7.0-20140126-002446.

i checked the code. in /addons/account/account_move_line.py : line 182 the analytic amount is calculated by this formula 
'amount': (obj_line.credit or  0.0) - (obj_line.debit or 0.0).
 but it should be (obj_line.debit or  0.0) - (obj_line.credit or 0.0).

** Affects: openobject-addons
     Importance: Undecided
         Status: New

** Patch added: "account_move_line.py.patch"
   https://bugs.launchpad.net/bugs/1283432/+attachment/3991232/+files/account_move_line.py.patch

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1283432

Title:
  wrong analytic amount

Status in OpenERP Addons (modules):
  New

Bug description:
  when defining a journal item which has anlalytic, the analytic amount is registered wrong in analytic journal items.
  for example a 50$ credit in journal is 50$ debit in analytic journal item. i am using openerp 7.0-20140126-002446.

  i checked the code. in /addons/account/account_move_line.py : line 182 the analytic amount is calculated by this formula 
  'amount': (obj_line.credit or  0.0) - (obj_line.debit or 0.0).
   but it should be (obj_line.debit or  0.0) - (obj_line.credit or 0.0).

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1283432/+subscriptions


Follow ups

References