Ver código fonte

[Backend] Documents : correctif isStatusDraft()

feature/souke
Guillaume 1 ano atrás
pai
commit
f0d1ac656c
1 arquivos alterados com 1 adições e 1 exclusões
  1. +1
    -1
      backend/controllers/InvoiceController.php

+ 1
- 1
backend/controllers/InvoiceController.php Ver arquivo

@@ -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
], [

Carregando…
Cancelar
Salvar