Skip to content

Commit

Permalink
Merge pull request #4 from seem2810/patch-1
Browse files Browse the repository at this point in the history
Update SEPATransfer.php
  • Loading branch information
nemiah authored Jul 14, 2024
2 parents c8e36b1 + ad6a370 commit 527b4d7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/nemiah/phpSepaXml/SEPATransfer.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function __construct($data = null) {
public function addCreditor(SEPACreditor $creditor) {
$reqestedExecutionDate = $creditor->reqestedExecutionDate;

$date = $reqestedExecutionDate->format('Ymd');
$date = $reqestedExecutionDate->format('Y-m-d');

if(!isset($this->creditoren[$date]))
$this->creditoren[$date] = array();
Expand Down Expand Up @@ -103,7 +103,7 @@ public function toXML() {
$PmtTpInf = $PmtInf->addChild('PmtTpInf');
$PmtTpInf->addChild('SvcLvl')->addChild('Cd', 'SEPA');

$PmtTpInf = $PmtInf->addChild('ReqdExctnDt', '1999-01-01'); //OK
$PmtTpInf = $PmtInf->addChild('ReqdExctnDt', $sequence); //OK

$this->debitor->XMLTransfer($PmtInf);

Expand All @@ -128,4 +128,4 @@ public function toXML() {

return $xml;
}
}
}

0 comments on commit 527b4d7

Please sign in to comment.