From 157d9540b3dc399ae833ca5226832dad3f81b611 Mon Sep 17 00:00:00 2001 From: Daniel Seifert Date: Thu, 4 Jun 2020 11:04:17 +0200 Subject: [PATCH] fix set billdate --- Application/Model/Documents/invoicePdf.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Application/Model/Documents/invoicePdf.php b/Application/Model/Documents/invoicePdf.php index 7d48e6a..c4899fc 100644 --- a/Application/Model/Documents/invoicePdf.php +++ b/Application/Model/Documents/invoicePdf.php @@ -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; }