Add global $langs to method, necessary for triggers to function

correctly
This commit is contained in:
jean 2015-03-17 14:20:08 +01:00
parent 04c88b0d94
commit 9e9a8894ea

View File

@ -154,7 +154,7 @@ class ProductFournisseur extends Product
*/
function update_buyprice($qty, $buyprice, $user, $price_base_type, $fourn, $availability, $ref_fourn, $tva_tx, $charges=0, $remise_percent=0, $remise=0, $newnpr=0)
{
global $conf;
global $conf, $langs;
// Clean parameter
if (empty($qty)) $qty=0;