← Back to team overview

openerp-india team mailing list archive

[Bug 1080840] Re: [6.1, 7.0, account_voucher] Wrong amounts with line type set to credit on journal voucher

 

Well, that is a valid workaround but I think having code that
undocumentedly makes assumptions about the view that is being used is a
bit of a timebomb in the core of your financial system. Having that
said, the real problem is in the design of vouchers and using the same
model for payment vouchers as well as sale and purchase vouchers and my
patch does not solve that either.

-- 
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/1080840

Title:
  [6.1, 7.0, account_voucher] Wrong amounts with line type set to credit
  on journal voucher

Status in OpenERP Addons (modules):
  Confirmed

Bug description:
  Steps to reproduce;

  - using lp:openobject-addons/trunk revno 8076, install new database and chart of accounts e.g. l10n_nl
  - install account_voucher
  - set default income and expense accounts of purchase journal to '7002, purchases'
  - go to Invoicing -> Journal entries -> Journal vouchers
  - create a new entry. Set type to 'purchase', select 'Purchase journal', Choose a partner.
  - create a new voucher line. Account is set to 7002 by default. Set amount to €50,-. Set line type to 'Credit'.
  - post voucher

  Expected results:
  One move line debit €50 on the account payable
  one move line credit €50 on '7002, purchases'

  Observed results:
  One move line debit €100 on the account payable
  another move line credit €50 on the account payable
  one move line credit €50 on '7002, purchases'

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


References