Fix count into loop and test on true
This commit is contained in:
parent
17379cb5cd
commit
05b7c51e9d
@ -2146,7 +2146,8 @@ class Facture extends CommonInvoice
|
|||||||
if (!empty($conf->global->INVOICE_USE_SITUATION))
|
if (!empty($conf->global->INVOICE_USE_SITUATION))
|
||||||
{
|
{
|
||||||
$final = True;
|
$final = True;
|
||||||
while ($i < count($this->lines) && $final == True) {
|
$nboflines = count($this->lines);
|
||||||
|
while (($i < $nboflines) && $final) {
|
||||||
$final = ($this->lines[$i]->situation_percent == 100);
|
$final = ($this->lines[$i]->situation_percent == 100);
|
||||||
$i++;
|
$i++;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user