[ADD] sepa: add Instruction Identification field

InstrId is optional, so there should be no harm in
adding it always, with the same value as EndToEndId.
This commit is contained in:
andreparames
2018-07-18 16:06:38 +01:00
committed by Dũng (Trần Đình)
parent 06261f8984
commit 26d16d0966

View File

@@ -130,6 +130,11 @@ class AccountPaymentOrder(models.Model):
payment_info, 'CdtTrfTxInf')
payment_identification = etree.SubElement(
credit_transfer_transaction_info, 'PmtId')
instruction_identification = etree.SubElement(
payment_identification, 'InstrId')
instruction_identification.text = self._prepare_field(
'Instruction Identification', 'line.name',
{'line': line}, 35, gen_args=gen_args)
end2end_identification = etree.SubElement(
payment_identification, 'EndToEndId')
end2end_identification.text = self._prepare_field(