${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_payable_initiator_id, with_address=False)}
${key['payment_info'][:35]}
TRF
${'true' if group.journal.sepa_batch_booking else 'false'}
${len(payments)}
${sum(p.amount for p in payments)}
SEPA
${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
${payment.sepa_instruction_id}
${payment.sepa_end_to_end_id}
${payment.amount}
${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]}