← Back to team overview

openerp-india team mailing list archive

[Bug 1083534] Re: multi-currency sales and purchase receipts generate wrong journal items

 

** Branch linked: lp:~openerp-dev/openobject-addons/trunk-
bug-1083534-tta

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

Title:
  multi-currency sales and purchase receipts generate wrong journal
  items

Status in OpenERP Addons (modules):
  In Progress

Bug description:
  Observed on runbot in latest 6.1:
  (Build 274)
  server (3643)
  addons (5377)
  web (4890)

  and trunk:
  (Build 273)
  server (4601)
  addons (8141)
  web (3502)

  To reproduce:
  Install a DB with demo data (in my case, base currency is EUR)
  Create a sale journal with a different currency (e.g. CHF)
  Create a sale receipt, choose the sale journal in CHF and enter a line with amount 100. If you post the voucher, the generated journal items are wrong: 
  Account Receivable, debit: 100, amount_currency 100
  Revenue Account, credit: 100, amount_currency -130

  Instead, I am expecting to find:
  Account Receivable, debit: 77, amount_currency 100
  revenue account, credit:77 amount_currency: 100

  same thing happens for purchase receipt

  I found a workaround for this: if I add to the sales (resp. purchase) receipt form view the field
  <field name="payment_rate_currency_id" invisible="True"/>
  then everything seems to work fine. I tested this on 6.1.

  Thanks!

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


References