Compute NbOfTxs the same way it is iterated

issue4344
review12091002
This commit is contained in:
Cédric Krier committed 2015-04-05 23:41:30 +02:00
1 parent b36fa4b7d6
commit 6500dc487d
5 files changed
+5 -5

No files matched your search

+1 -1
View File
@@ -31,7 +31,7 @@ this repository contains the full copyright notices and license terms. -->
<MsgId>${group.reference[:35]}</MsgId>
<CreDtTm>${datetime.datetime.now().isoformat()}</CreDtTm>
<!-- Authstn -->
<NbOfTxs>${len(group.payments)}</NbOfTxs>
<NbOfTxs>${sum(len(payments) for _, payments in group.sepa_payments)}</NbOfTxs>
<CtrlSum>${sum(p.amount for p in group.payments)}</CtrlSum>
<!-- PmtTpInf -->
<!-- ReqdColltnDt -->
+1 -1
View File
@@ -12,7 +12,7 @@ this repository contains the full copyright notices and license terms. -->
<MsgId>${group.reference[:35]}</MsgId>
<CreDtTm>${datetime.datetime.now().isoformat()}</CreDtTm>
<!-- Authstn -->
<NbOfTxs>${len(group.payments)}</NbOfTxs>
<NbOfTxs>${sum(len(payments) for _, payments in group.sepa_payments)}</NbOfTxs>
<CtrlSum>${sum(p.amount for p in group.payments)}</CtrlSum>
<!-- PmtTpInf -->
<!-- ReqdColltnDt -->
+1 -1
View File
@@ -14,7 +14,7 @@ this repository contains the full copyright notices and license terms. -->
<GrpHdr>
<MsgId>${group.reference[:35]}</MsgId>
<CreDtTm>${datetime.datetime.now().isoformat()}</CreDtTm>
<NbOfTxs>${len(group.payments)}</NbOfTxs>
<NbOfTxs>${sum(len(payments) for _, payments in group.sepa_payments)}</NbOfTxs>
<CtrlSum>${sum(p.amount for p in group.payments)}</CtrlSum>
<InitgPty>
${PartyIdentification(group.sepa_initiating_party, with_address=False)}
+1 -1
View File
@@ -31,7 +31,7 @@ this repository contains the full copyright notices and license terms. -->
<MsgId>${group.reference[:35]}</MsgId>
<CreDtTm>${datetime.datetime.now().isoformat()}</CreDtTm>
<!-- Authstn -->
<NbOfTxs>${len(group.payments)}</NbOfTxs>
<NbOfTxs>${sum(len(payments) for _, payments in group.sepa_payments)}</NbOfTxs>
<CtrlSum>${sum(p.amount for p in group.payments)}</CtrlSum>
<!-- PmtTpInf -->
<!-- ReqdColltnDt -->
+1 -1
View File
@@ -14,7 +14,7 @@ this repository contains the full copyright notices and license terms. -->
<GrpHdr>
<MsgId>${group.reference[:35]}</MsgId>
<CreDtTm>${datetime.datetime.now().isoformat()}</CreDtTm>
<NbOfTxs>${len(group.payments)}</NbOfTxs>
<NbOfTxs>${sum(len(payments) for _, payments in group.sepa_payments)}</NbOfTxs>
<CtrlSum>${sum(p.amount for p in group.payments)}</CtrlSum>
<InitgPty>
${PartyIdentification(group.sepa_initiating_party, with_address=False)}