Skip to content
Snippets Groups Projects
Commit ec25869e authored by cam.lafit's avatar cam.lafit
Browse files

FIX : UpdateInvoice create object

* To update data, function must work on invoice object
parent 682f6f83
No related branches found
No related tags found
No related merge requests found
...@@ -789,7 +789,7 @@ function updateInvoice($authentication,$invoice) ...@@ -789,7 +789,7 @@ function updateInvoice($authentication,$invoice)
{ {
// Define output language // Define output language
$outputlangs = $langs; $outputlangs = $langs;
$order->generateDocument($invoice->modelpdf, $outputlangs); $object->generateDocument($object->modelpdf, $outputlangs);
} }
} }
if ($invoice['status'] == Facture::STATUS_CLOSED) if ($invoice['status'] == Facture::STATUS_CLOSED)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment