Fix phpunit

This commit is contained in:
Laurent Destailleur 2023-04-23 14:09:08 +02:00
parent 3a81318c15
commit 470cbb52f8
2 changed files with 102 additions and 102 deletions

View File

@ -1503,8 +1503,9 @@ class Facture extends CommonInvoice
$use_all_lines = empty($lines); $use_all_lines = empty($lines);
$num = count($object->lines); $num = count($object->lines);
for ($i = 0; $i < $num; $i++) { for ($i = 0; $i < $num; $i++) {
if (!$use_all_lines && !in_array($object->lines[$i]->id, $lines)) {
if (!$use_all_lines && !in_array($object->lines[$i]->id, $lines)) continue; continue;
}
$line = new FactureLigne($this->db); $line = new FactureLigne($this->db);

View File

@ -1705,8 +1705,7 @@ if ($ispaymentok) {
$postactionmessages[] = $msg; $postactionmessages[] = $msg;
$ispostactionok = -1; $ispostactionok = -1;
} }
} } else {
else {
// Nothing done // Nothing done
} }
} }