Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
3759 Lượt xem

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?

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 8 16
3401
2
thg 3 15
8066
1
thg 3 15
7716
0
thg 3 15
3606
1
thg 3 15
5288