Merge pull request #7507 from dolibarr95/patch-20

Line missing (error 500)
This commit is contained in:
Laurent Destailleur 2017-10-02 00:10:03 +02:00 committed by GitHub
commit 03c08b1de4

View File

@ -561,6 +561,7 @@ if (empty($reshook))
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 )
{
setEventMessages($langs->trans("ErrorQtyTooLowForThisSupplier"), null, 'warnings');