Browse Source

[Backend] Documents : correctif isStatusDraft()

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

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



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


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

Loading…
Cancel
Save