Merge pull request #2958 from jfefe/patch-8
FIX #2957 : missing $langs object for trigger
This commit is contained in:
commit
15060d973c
@ -156,7 +156,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)
|
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,$mysoc;
|
global $conf,$mysoc, $langs;
|
||||||
|
|
||||||
// Clean parameter
|
// Clean parameter
|
||||||
if (empty($qty)) $qty=0;
|
if (empty($qty)) $qty=0;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user