fix set billdate

This commit is contained in:
Daniel Seifert 2020-06-04 11:04:17 +02:00
parent 8affd5e4ae
commit 157d9540b3
Signed by: DanielS
GPG Key ID: 8A7C4C6ED1915C6F

View File

@ -80,7 +80,9 @@ class invoicePdf extends pdfdocumentsOrder implements pdfdocumentsOrderinvoiceIn
public function setInvoiceDate()
{
if ($this->getOrder()->getFieldData('oxbilldate') == '0000-00-00') {
$this->getOrder()->assign([date('Y-m-d', mktime(0, 0, 0, date('m'), date('d'), date('Y')))]);
$this->getOrder()->assign([
"oxbilldate" => date('Y-m-d', mktime(0, 0, 0, date('m'), date('d'), date('Y')))
]);
$this->blIsNewOrder = true;
}