mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
[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:
committed by
Carlos Roca
parent
22980d0caa
commit
7852eeecf0
@@ -156,12 +156,11 @@ class AccountPaymentOrder(models.Model):
|
||||
payment_info, 'DrctDbtTxInf')
|
||||
payment_identification = etree.SubElement(
|
||||
dd_transaction_info, 'PmtId')
|
||||
if pain_flavor == 'pain.008.001.02.ch.01':
|
||||
instruction_identification = etree.SubElement(
|
||||
payment_identification, 'InstrId')
|
||||
instruction_identification.text = self._prepare_field(
|
||||
'Intruction Identification', 'line.name',
|
||||
{'line': line}, 35, gen_args=gen_args)
|
||||
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(
|
||||
|
||||
Reference in New Issue
Block a user