Update product.php
This commit is contained in:
parent
5c3b0847c2
commit
e085c3989a
@ -159,15 +159,6 @@ if ($action == 'other')
|
|||||||
|
|
||||||
$value = GETPOST('activate_useProdSupplierPackaging', 'alpha');
|
$value = GETPOST('activate_useProdSupplierPackaging', 'alpha');
|
||||||
$res = dolibarr_set_const($db, "PRODUCT_USE_SUPPLIER_PACKAGING", $value, 'chaine', 0, '', $conf->entity);
|
$res = dolibarr_set_const($db, "PRODUCT_USE_SUPPLIER_PACKAGING", $value, 'chaine', 0, '', $conf->entity);
|
||||||
if ($value) {
|
|
||||||
$sql_test = "SELECT count(packaging) as cpt FROM ".MAIN_DB_PREFIX."product_fournisseur_price WHERE 1";
|
|
||||||
$resql = $db->query($sql_test);
|
|
||||||
|
|
||||||
if ($resql < 0)
|
|
||||||
{
|
|
||||||
dol_syslog($db->lasterrno(), LOG_ERR);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($action == 'specimen') // For products
|
if ($action == 'specimen') // For products
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user