Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

Overdue Payments Report incorrect calculation - why does amount show in Due column when not due?

By
Miles Cantley
on 1/2/14, 11:21 AM 647 views

I have recofigured the standard Overdue Payments report and renamed the 'Maturity' column to 'Due', as it is supposed to show the total for that line only if the amount due date has been passed. The test I am using is as follows:

[[ company.currency_id.symbol ]][[ formatLang((line['date_maturity'] < time.strftime('%Y-%m-%d'))) and formatLang(line['debit'] - line['credit']) ]]

This all looks OK to me but the report returns the total of the line whether it is due or not, so the total due calculation at the bottom of the report is also wrong. Please help?

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 1/2/14, 11:21 AM
Seen: 647 times
Last updated: 3/16/15, 8:10 AM