From c588fbd9b23677c63c45993a8ff26d7d7f4925f4 Mon Sep 17 00:00:00 2001 From: aremili Date: Mon, 25 Dec 2017 12:22:06 +0100 Subject: [PATCH] Add total of totals in aged open invoices report --- .../report/templates/aged_open_invoices.mako | 33 ++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/account_financial_report_webkit/report/templates/aged_open_invoices.mako b/account_financial_report_webkit/report/templates/aged_open_invoices.mako index 740b1172..c394f7bb 100644 --- a/account_financial_report_webkit/report/templates/aged_open_invoices.mako +++ b/account_financial_report_webkit/report/templates/aged_open_invoices.mako @@ -88,6 +88,11 @@
${ display_target_move(data) }
+ <% + balance_list = [] + classif_list = [] + classif_list_2 = [] + %> %for account in objects: %if aged_open_inv[account.id] and partners_order[account.id]: @@ -167,11 +172,37 @@
${formatLang(aged_open_inv[account.id]['balance']) | amount}
+ <% + balance_list.append(aged_open_inv[account.id]['balance']) + %> %for classif in ranges: -
${formatLang(aged_open_inv[account.id][classif]) | amount }
+
+ ${formatLang(aged_open_inv[account.id][classif]) | amount } +
+ <% + classif_list.append(aged_open_inv[account.id][classif]) + %> %endfor %endif %endfor # end of the loop on accounts +
+ <% + classif_list = [classif_list[i:i+6] for i in range(0, len(classif_list), 6)] + for i in range(6): + classif_list_2.append([line[i] for line in classif_list]) + %> +
+ +
+
+
+
+
+ + %for cf in classif_list_2: + + %endfor +