simple foreign currency invoice

Bug #639807 reported by Thomas Dreiling
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
openerp-openbig
Fix Released
Undecided
Unassigned

Bug Description

This is an example w/o cash discount. See attached pdf.

Revision history for this message
Thomas Dreiling (thomas-dreiling) wrote :
Changed in bigconsulting:
status: New → Fix Released
Revision history for this message
Thomas Dreiling (thomas-dreiling) wrote :

Amount seems to be fixed as is the ending balance issue. Still, there was no exchange rate difference correction posted. I miss the two lines seen in the attachment the lack of which also causes the invoice to be only partially reconciled. This error is partly connected to https://bugs.launchpad.net/bigconsulting/+bug/640304 as the same logic has to be applied.

Changed in bigconsulting:
status: Fix Released → New
Revision history for this message
Thomas Dreiling (thomas-dreiling) wrote :

I'm sorry, I just noticed that I tested this with the wrong database which did not have the modules installed. I'll retest in a minute. Ignore the above comment for now.

Changed in bigconsulting:
status: New → Incomplete
Revision history for this message
Thomas Dreiling (thomas-dreiling) wrote :

Ok, I had the correct db now. The exchange rate difference correction is correct except for the error reported in https://bugs.launchpad.net/bigconsulting/+bug/644220 (foreign currency amount has to be 0.00 for the correctional move lines, see att. 1). The computed ending balance when confirming the statement is still incorrect (att. 2). It's off by 22612 USD although this is not a cash discount invoice. Finally, the invoice did not get reconciled, only partially (att. 3).

Revision history for this message
Thomas Dreiling (thomas-dreiling) wrote :
Revision history for this message
Thomas Dreiling (thomas-dreiling) wrote :
Changed in bigconsulting:
status: Incomplete → New
Revision history for this message
Thomas Dreiling (thomas-dreiling) wrote :

If the calculated ending balance is still an issue, here is a patch which will fix it. Please check it.
I introduce 2 fields to the bank statement lines - cash_discount and transferred_amount - which will automatically be filled by the invoice selection wizard. I also overload the _end_balance method so it calculates the ending balance as (amount - cash_discount) in state "draft" now.

Changed in bigconsulting:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.