Update facture.class.php

This commit is contained in:
Laurent Destailleur 2018-09-27 09:25:37 +02:00 committed by GitHub
parent 022f842cb0
commit e3b1cb9fdb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4828,10 +4828,10 @@ class FactureLigne extends CommonInvoiceLine
* Warning: If invoice is a replacement invoice, this->fk_prev_id is id of the replaced line.
*
* @param int $invoiceid Invoice id
* @param bool $include_credit_note
* @param bool $include_credit_note Include credit note or not
* @return int >= 0
*/
function get_prev_progress($invoiceid, $include_credit_note = true)
function get_prev_progress($invoiceid, $include_credit_note=true)
{
if (is_null($this->fk_prev_id) || empty($this->fk_prev_id) || $this->fk_prev_id == "") {
return 0;