disable online payment warehouse
This commit is contained in:
parent
0428e026c9
commit
6ba5708814
@ -94,9 +94,9 @@ if ($action == 'setvalue' && $user->admin)
|
|||||||
if (! $result > 0)
|
if (! $result > 0)
|
||||||
$error ++;
|
$error ++;
|
||||||
// Stock decrement
|
// Stock decrement
|
||||||
$result = dolibarr_set_const($db, "ONLINE_PAYMENT_WAREHOUSE", (GETPOST('ONLINE_PAYMENT_WAREHOUSE', 'alpha') > 0 ? GETPOST('ONLINE_PAYMENT_WAREHOUSE', 'alpha') : ''), 'chaine', 0, '', $conf->entity);
|
//$result = dolibarr_set_const($db, "ONLINE_PAYMENT_WAREHOUSE", (GETPOST('ONLINE_PAYMENT_WAREHOUSE', 'alpha') > 0 ? GETPOST('ONLINE_PAYMENT_WAREHOUSE', 'alpha') : ''), 'chaine', 0, '', $conf->entity);
|
||||||
if (! $result > 0)
|
//if (! $result > 0)
|
||||||
$error ++;
|
// $error ++;
|
||||||
|
|
||||||
// Payment token for URL
|
// Payment token for URL
|
||||||
$result = dolibarr_set_const($db, "PAYMENT_SECURITY_TOKEN", GETPOST('PAYMENT_SECURITY_TOKEN', 'alpha'), 'chaine', 0, '', $conf->entity);
|
$result = dolibarr_set_const($db, "PAYMENT_SECURITY_TOKEN", GETPOST('PAYMENT_SECURITY_TOKEN', 'alpha'), 'chaine', 0, '', $conf->entity);
|
||||||
@ -302,13 +302,13 @@ if ($conf->global->MAIN_FEATURES_LEVEL >= 2) // TODO Not used by current code
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Warehouse for automatic decrement
|
// Warehouse for automatic decrement
|
||||||
if ($conf->global->MAIN_FEATURES_LEVEL >= 2) // warehouse to reduce stock for online payment
|
//if ($conf->global->MAIN_FEATURES_LEVEL >= 2) // warehouse to reduce stock for online payment
|
||||||
{
|
//{
|
||||||
print '<tr class="oddeven"><td>';
|
// print '<tr class="oddeven"><td>';
|
||||||
print $langs->trans("ONLINE_PAYMENT_WAREHOUSE").'</td><td>';
|
// print $langs->trans("ONLINE_PAYMENT_WAREHOUSE").'</td><td>';
|
||||||
print $formproduct->selectWarehouses($conf->global->ONLINE_PAYMENT_WAREHOUSE, 'ONLINE_PAYMENT_WAREHOUSE', '', 1, $disabled);
|
// print $formproduct->selectWarehouses($conf->global->ONLINE_PAYMENT_WAREHOUSE, 'ONLINE_PAYMENT_WAREHOUSE', '', 1, $disabled);
|
||||||
print '</td></tr>';
|
// print '</td></tr>';
|
||||||
}
|
//}
|
||||||
|
|
||||||
print '<tr class="oddeven"><td>';
|
print '<tr class="oddeven"><td>';
|
||||||
print $langs->trans("CSSUrlForPaymentForm").'</td><td>';
|
print $langs->trans("CSSUrlForPaymentForm").'</td><td>';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user