diff --git a/src/nemiah/phpSepaXml/SEPATransfer.php b/src/nemiah/phpSepaXml/SEPATransfer.php index ee19011..10a63ae 100644 --- a/src/nemiah/phpSepaXml/SEPATransfer.php +++ b/src/nemiah/phpSepaXml/SEPATransfer.php @@ -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(); @@ -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); @@ -128,4 +128,4 @@ public function toXML() { return $xml; } -} \ No newline at end of file +}