Update product.php

This commit is contained in:
Laurent Destailleur 2022-03-07 14:59:55 +01:00 committed by GitHub
parent 5c3b0847c2
commit e085c3989a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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