don't reset new order state if bill number should set

this prevents required save in some cases
This commit is contained in:
Daniel Seifert 2020-11-20 11:52:59 +01:00
parent 720a506da3
commit 09f6111c4d
Signed by: DanielS
GPG Key ID: 8A7C4C6ED1915C6F

View File

@ -54,8 +54,6 @@ class invoicePdf extends pdfdocumentsOrder implements pdfdocumentsOrderinvoiceIn
public function setInvoiceNumber()
{
$this->blIsNewOrder = false;
if (!$this->getOrder()->getFieldData('oxbillnr')) {
$this->getOrder()->assign(['oxbillnr' => $this->getOrder()->getNextBillNum()]);