${group.sepa_message_id[:35]}
${datetime.datetime.now().replace(microsecond=0).isoformat()}
${sum(len(payments) for _, payments in group.sepa_payments)}
${sum(p.amount for p in group.payments)}
${PartyIdentification(group.sepa_initiating_party, id=group.journal.sepa_receivable_initiator_id, with_address=False)}
${key['payment_info'][:35]}
DD
${'true' if group.journal.sepa_batch_booking else 'false'}
${len(payments)}
${sum(p.amount for p in payments)}
SEPA
${key['scheme']}
${key['sequence_type']}
${key['date'].isoformat()}
${PartyIdentification(group.company.party)}
${Account(group.journal.sepa_bank_account_number)}
${FinancialInstitution(group.journal.sepa_bank_account_number.account.bank, only_bic=True)}
SLEV
${PartyIdentification(group.company.party, id='eu_at_02', with_name=False, with_address=False)}
${payment.sepa_instruction_id}
${payment.sepa_end_to_end_id}
${payment.amount}
${mandate.identification}
${mandate.signature_date.isoformat()}
${FinancialInstitution(payment.sepa_bank_account_number.account.bank, only_bic=True)}
${PartyIdentification(payment.party)}
${Account(payment.sepa_bank_account_number, with_ccy=False)}
${normalize('NFKD', payment.sepa_remittance_information).encode('ascii', 'replace')[:140]}