From 6500dc487dfbfd586c559bf334940caf6947c850 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sun, 5 Apr 2015 23:41:30 +0200 Subject: [PATCH] Compute NbOfTxs the same way it is iterated issue4344 review12091002 --- template/pain.001.001.03.xml | 2 +- template/pain.001.001.05.xml | 2 +- template/pain.001.003.03.xml | 2 +- template/pain.008.001.02.xml | 2 +- template/pain.008.003.02.xml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/template/pain.001.001.03.xml b/template/pain.001.001.03.xml index 29ea6d6124..25073f6afc 100644 --- a/template/pain.001.001.03.xml +++ b/template/pain.001.001.03.xml @@ -31,7 +31,7 @@ this repository contains the full copyright notices and license terms. --> ${group.reference[:35]} ${datetime.datetime.now().isoformat()} - ${len(group.payments)} + ${sum(len(payments) for _, payments in group.sepa_payments)} ${sum(p.amount for p in group.payments)} diff --git a/template/pain.001.001.05.xml b/template/pain.001.001.05.xml index db275a5448..319afcbbbb 100644 --- a/template/pain.001.001.05.xml +++ b/template/pain.001.001.05.xml @@ -12,7 +12,7 @@ this repository contains the full copyright notices and license terms. --> ${group.reference[:35]} ${datetime.datetime.now().isoformat()} - ${len(group.payments)} + ${sum(len(payments) for _, payments in group.sepa_payments)} ${sum(p.amount for p in group.payments)} diff --git a/template/pain.001.003.03.xml b/template/pain.001.003.03.xml index a54207760b..9b613b4b29 100644 --- a/template/pain.001.003.03.xml +++ b/template/pain.001.003.03.xml @@ -14,7 +14,7 @@ this repository contains the full copyright notices and license terms. --> ${group.reference[:35]} ${datetime.datetime.now().isoformat()} - ${len(group.payments)} + ${sum(len(payments) for _, payments in group.sepa_payments)} ${sum(p.amount for p in group.payments)} ${PartyIdentification(group.sepa_initiating_party, with_address=False)} diff --git a/template/pain.008.001.02.xml b/template/pain.008.001.02.xml index 1898b9a426..86a28ef757 100644 --- a/template/pain.008.001.02.xml +++ b/template/pain.008.001.02.xml @@ -31,7 +31,7 @@ this repository contains the full copyright notices and license terms. --> ${group.reference[:35]} ${datetime.datetime.now().isoformat()} - ${len(group.payments)} + ${sum(len(payments) for _, payments in group.sepa_payments)} ${sum(p.amount for p in group.payments)} diff --git a/template/pain.008.003.02.xml b/template/pain.008.003.02.xml index 21d70c832d..7fdb45d45d 100644 --- a/template/pain.008.003.02.xml +++ b/template/pain.008.003.02.xml @@ -14,7 +14,7 @@ this repository contains the full copyright notices and license terms. --> ${group.reference[:35]} ${datetime.datetime.now().isoformat()} - ${len(group.payments)} + ${sum(len(payments) for _, payments in group.sepa_payments)} ${sum(p.amount for p in group.payments)} ${PartyIdentification(group.sepa_initiating_party, with_address=False)}