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 b506d4e7c7
commit a8ef16a4b2

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()]);