Browse Source

Merge branch 'develop'

master
Guillaume 1 year ago
parent
commit
cb7a259c19
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      backend/controllers/InvoiceController.php

+ 1
- 1
backend/controllers/InvoiceController.php View File

@@ -65,7 +65,7 @@ class InvoiceController extends DocumentController

$invoice = $invoiceManager->findOneInvoiceById($idInvoice);

if ($invoice && $invoice->isStatusDraft()) {
if ($invoice && $invoiceManager->isStatusDraft($invoice)) {
Order::updateAll([
'id_invoice' => null
], [

Loading…
Cancel
Save