we had to adapt invoices and print all unreconciled invoices
o is the invoice
Code:
..
for each="l in o.partner_id.other_move_line_ids"
..l.debit , l.credit
/for
(o.partner_id.debit-o.partner_id.credit)
...
the unreconciled invoices (moves) are printed correctly, but the balance (debit - credit returns random results - mostly the value of the last
line, rarely the correct balance, sometimes first line debit - last line credit.
the partner financial account tab shoes the correct payables and receivables
any idea ?