Travis fix

This commit is contained in:
andreubisquerra 2021-10-10 08:58:17 +02:00 committed by GitHub
parent 92756e1864
commit be60293554
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -580,10 +580,9 @@ if ($action == "freezone") {
if ($action == "addnote") {
$desc = GETPOST('addnote', 'alpha');
if ($idline==0){
if ($idline==0) {
$invoice->update_note_public($desc);
}
else foreach ($invoice->lines as $line) {
} else foreach ($invoice->lines as $line) {
if ($line->id == $idline) {
$result = $invoice->updateline($line->id, $desc, $line->subprice, $line->qty, $line->remise_percent, $line->date_start, $line->date_end, $line->tva_tx, $line->localtax1_tx, $line->localtax2_tx, 'HT', $line->info_bits, $line->product_type, $line->fk_parent_line, 0, $line->fk_fournprice, $line->pa_ht, $line->label, $line->special_code, $line->array_options, $line->situation_percent, $line->fk_unit);
}