if ($_GET["action"] == 'remove_pf') { $product = new ProductFournisseur($db); if ($product->fetch($_GET["id"]) > 0) { if ($_GET["rowid"]) { $result=$product->remove_product_fournisseur_price($_GET["rowid"]); $_GET["action"] = ''; $mesg = '<div class="ok">'.$langs->trans("PriceRemoved").'.</div>'; } else { // Deprecated. Should not occurs if ($product->remove_fournisseur($_GET["socid"]) > 0) { $_GET["action"] = ''; $mesg = '<div class="ok">'.$langs->trans("SupplierRemoved").'.</div>'; } else { $_GET["action"] = ''; } } } } if ($_POST["action"] == 'updateprice' && $_POST["cancel"] <> $langs->trans("Cancel")) { $id_fourn=GETPOST("id_fourn");