← Back to team overview

openerp-india team mailing list archive

[Bug 1019324] Re: Wrong "Amount currency" on account.move.line when "Group invoice line" is active

 

** Patch added: "Patch that fixes the bug"
   https://bugs.launchpad.net/bugs/1019324/+attachment/3207863/+files/fix-group_invoice_line.diff

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

Title:
  Wrong "Amount currency" on account.move.line when "Group invoice line"
  is active

Status in OpenERP Addons (modules):
  New

Bug description:
  Here are the steps to reproduce the bug on OpenERP 6.1 (but the same scenario should work on trunk) :
  1. Create a new OpenERP database with the "account_accountant" module. I suppose that your company currency is EUR.
  2. On the Sale journal, activate the option "Group invoice line".
  3. Create a new customer invoice (check that it has the journal on which you activated the option "Group invoice line") with 2 invoice lines :
    - product HDD1 with quantity 1 and unit price 100
    - same product HDD1 but with quantity 2 and unit price 200
  4. Validate the invoice
  5. Look at the account move line that has been generated in the Sale journal :
  the account move line with the income account has 2 wrong values :
  - the "Amount currency" should be "300"... but it is "100".
  - the "Quantity" should be "3"... but it is "1".

  This bug is also present on OpenERP 5.0 and OpenERP trunk (not tested
  on trunk, but when you see the code... you can say that the bug is
  there too !).

  The attached patched fixes the bug (patch for OpenERP 6.1... but the
  code is the same in trunk).

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


References