← Back to team overview

openerp-india team mailing list archive

[Bug 1018776] Re: account_voucher: can't close foreign currency invoice by 'full reconcile'

 

I'm attaching a possible solution.
What the patch does: when the voucher is multi currency and the related voucher line is 'full reconcile', the 'payment_rate' is set to the invoice's rate, so that 'amount currency' of the new 'move.line' will be equal to the invoice's one and the full riconciliation can be done

** Patch added: "lp_1018776.patch"
   https://bugs.launchpad.net/openobject-addons/+bug/1018776/+attachment/3206671/+files/lp_1018776.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/1018776

Title:
  account_voucher: can't close foreign currency invoice by 'full
  reconcile'

Status in OpenERP Addons (modules):
  New

Bug description:
  openobject-addons/6.1 revno 6863

   - Create a new rate (=1.3) with today's date for USD currency
   - Create a 'Customers USD' receivable account, setting USD as 'Secondary Currency'
   - Create a new invoice of 100 USD with yesterday's date (the EUR credit is 77.92 = 100÷1.2834)
   - Click on payment button, leave today's date, set the 'Paid Amount' to 76.92 (=100÷1.3) and select the 'Bank (EUR)' journal
   - Select 'full reconcile' on the voucher line (you want to close the invoice)
   - Select 'reconcile payment balance' as 'payment difference' (and set an account for the difference)
   - Validate the voucher

  The EUR amounts are corrects, but the 'amount currency' is '-101.30
  USD ($)' (=77.92×1.3) and this prevents the invoice to be closed

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


References