diff --git a/htdocs/commande/orderstoinvoice.php b/htdocs/commande/orderstoinvoice.php index 6c409e912b9..0633f40b338 100755 --- a/htdocs/commande/orderstoinvoice.php +++ b/htdocs/commande/orderstoinvoice.php @@ -274,7 +274,7 @@ if (($action == 'create' || $action == 'add') && ! $mesg ) { $fk_parent_line = 0; } - $result = $object->addline( + $result = $object->addline( $id, $desc, $lines[$i]->subprice,