Merge pull request #10252 from ATM-Nicolas/fix_call_to_update_price

FIX : Function updatePrice with wrong parameters
This commit is contained in:
Laurent Destailleur 2018-12-19 13:02:00 +01:00 committed by GitHub
commit ed13f7b729
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1440,7 +1440,7 @@ if ((empty($conf->global->PRODUIT_CUSTOMER_PRICES) || $action=='showlog_default_
// Il doit au moins y avoir la ligne de prix initial.
// On l'ajoute donc pour remettre a niveau (pb vieilles versions)
$object->updatePrice($object->price, $object->price_base_type, $user, $newprice_min);
$object->updatePrice($object->price, $object->price_base_type, $user, $object->tva_tx, $object->price_min);
$result = $db->query($sql);
$num = $db->num_rows($result);