Fix warning
This commit is contained in:
parent
87da0a276d
commit
620a088827
@ -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']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user