Line missing (error 500)
Create an instance of ProductFournisseur.
This commit is contained in:
parent
8ae798f2e5
commit
3849da4fe4
@ -561,6 +561,7 @@ if (empty($reshook))
|
|||||||
if (!$res) dol_print_error($db);
|
if (!$res) dol_print_error($db);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$productsupplier = new ProductFournisseur($db);
|
||||||
if ($productsupplier->get_buyprice(0, price2num($_POST['qty']), $line->fk_product, 'none', GETPOST('socid','int')) < 0 )
|
if ($productsupplier->get_buyprice(0, price2num($_POST['qty']), $line->fk_product, 'none', GETPOST('socid','int')) < 0 )
|
||||||
{
|
{
|
||||||
setEventMessages($langs->trans("ErrorQtyTooLowForThisSupplier"), null, 'warnings');
|
setEventMessages($langs->trans("ErrorQtyTooLowForThisSupplier"), null, 'warnings');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user