Add global $langs to method, necessary for triggers to function
correctly
This commit is contained in:
parent
04c88b0d94
commit
9e9a8894ea
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user