Skip to content

Commit

Permalink
Add additional pain format for PstlAdr
Browse files Browse the repository at this point in the history
As requested in #88 this adds an additional pain format to check if a PstlAdr should be added ti the xml
  • Loading branch information
monofone committed Feb 13, 2020
1 parent 0291b22 commit 460072d
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -168,7 +168,7 @@ public function visitTransferInformation(TransferInformationInterface $transacti

$debtor = $this->createElement('Dbtr');
$debtor->appendChild($this->createElement('Nm', $transactionInformation->getDebitorName()));
if (in_array($this->painFormat, array('pain.008.003.02'))) {
if (in_array($this->painFormat, array('pain.008.003.02', 'pain.008.001.02'))) {
$addPostalAddress = false;
$postalAddress = $this->createElement('PstlAdr');
if ((bool)$transactionInformation->getCountry()) {
Expand Down

0 comments on commit 460072d

Please sign in to comment.