for each="mandate in records"
replace text:p="set_lang(mandate.party.lang)"
replace text:p="mandate.set_lang(mandate.party.lang)"

msg_gettext('account_payment_sepa.msg_mandate_title', scheme=mandate.scheme_string)
mandate.identification
msg_gettext('account_payment_sepa.msg_mandate_authorisation_statement', creditor=mandate.company.rec_name) As part of your rights, you are entitled to a refund from your bank under the terms and conditions of your agreement with your bank. A refund must be claimed within 8 weeks starting from the date on which your account was debited.
Your name	mandate.party.name
	Name of the debtor
Your address	mandate.address.street if mandate.address else ''
	Street name and number
	mandate.address.postal_code if mandate.address else ''	mandate.address.city if mandate.address else ''
	Postal code	City
	mandate.address.country.rec_name if mandate.address and mandate.address.country else ''
	Country
Your account number	mandate.account_number.number if mandate.account_number else ''
	Account number – IBAN
	mandate.account_number.account.bank.bic if mandate.account_number else ''
	BIC
Creditor's name	mandate.company.rec_name
	Creditor name
	mandate.company.party.sepa_creditor_identifier_used
	Creditor identifier
	mandate.company_address.street if mandate.company_address else ''
	Street name and number
	mandate.company_address.postal_code if mandate.company_address else ''	mandate.company_address.city if mandate.company_address else ''
	Postal code	City
	mandate.company_address.country.rec_name if mandate.company_address and mandate.company_address.country else ''
	Country
Type of payment	choose test="" when test="mandate.type == 'recurrent'" Recurrent payment /when otherwise test="" Recurrent payment /otherwise /choose	choose test="" when test="mandate.type == 'one-off'" One-off payment /when otherwise test="mandate.type == 'recurrent'" One-off payment /otherwise /choose
Signed at
	Location	Date
Signature
Note: Your rights regarding the above mandate are explained in a statement that you can obtain from your bank.
/for
if test="company and company.header"
for each="line in company.header_used.split('\n')"
line
/for
/if
choose
when test="company and company.logo"
/when
when test="company"
company.rec_name
/choose
if test="company and company.footer"
for each="line in company.footer_used.split('\n')"