Fix warning

This commit is contained in:
Laurent Destailleur 2020-12-29 16:33:58 +01:00
parent 87da0a276d
commit 620a088827

View File

@ -777,12 +777,11 @@ function updateInvoice($authentication, $invoice)
$object->generateDocument($object->model_pdf, $outputlangs); $object->generateDocument($object->model_pdf, $outputlangs);
} }
} }
if ($invoice['status'] == Facture::STATUS_CLOSED) if ($invoice['status'] == Facture::STATUS_CLOSED) {
{ $result = $object->set_paid($fuser, $invoice['close_code'], $invoice['close_note']);
$result = $object->set_paid($fuser, $invoice->close_code, $invoice->close_note);
} }
if ($invoice['status'] == Facture::STATUS_ABANDONED) if ($invoice['status'] == Facture::STATUS_ABANDONED)
$result = $object->set_canceled($fuser, $invoice->close_code, $invoice->close_note); $result = $object->set_canceled($fuser, $invoice['close_code'], $invoice['close_note']);
} }
} }