Make some product fields hidable
This commit allows to hide some more fields in the product card (e.g. you can hide SIZE but not WEIGHT). To allow the product card to be customized a bit better, following new variables can be set to hide the corresponding fields: PRODUCT_DISABLE_PUBLIC_URL PRODUCT_DISABLE_STOCK_LEVELS PRODUCT_DISABLE_NATURE PRODUCT_DISABLE_WEIGHT PRODUCT_DISABLE_PRICES PRODUCT_DISABLE_ACCOUNTING The documentation has to be adapted accordingly.
This commit is contained in:
parent
ac6bbc1914
commit
3134f5be8f
@ -1188,11 +1188,13 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) {
|
|||||||
|
|
||||||
print "</td></tr>";
|
print "</td></tr>";
|
||||||
|
|
||||||
// Public URL
|
if (empty($conf->global->PRODUCT_DISABLE_PUBLIC_URL)) {
|
||||||
print '<tr><td>'.$langs->trans("PublicUrl").'</td><td>';
|
// Public URL
|
||||||
print img_picto('', 'globe', 'class="pictofixedwidth"');
|
print '<tr><td>'.$langs->trans("PublicUrl").'</td><td>';
|
||||||
print '<input type="text" name="url" class="quatrevingtpercent" value="'.GETPOST('url').'">';
|
print img_picto('', 'globe', 'class="pictofixedwidth"');
|
||||||
print '</td></tr>';
|
print '<input type="text" name="url" class="quatrevingtpercent" value="'.GETPOST('url').'">';
|
||||||
|
print '</td></tr>';
|
||||||
|
}
|
||||||
|
|
||||||
if ($type != 1 && !empty($conf->stock->enabled)) {
|
if ($type != 1 && !empty($conf->stock->enabled)) {
|
||||||
// Default warehouse
|
// Default warehouse
|
||||||
@ -1205,20 +1207,24 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) {
|
|||||||
print '</td>';
|
print '</td>';
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
|
|
||||||
// Stock min level
|
if (empty($conf->global->PRODUCT_DISABLE_STOCK_LEVELS)) {
|
||||||
print '<tr><td>'.$form->textwithpicto($langs->trans("StockLimit"), $langs->trans("StockLimitDesc"), 1).'</td><td>';
|
// Stock min level
|
||||||
print '<input name="seuil_stock_alerte" class="maxwidth50" value="'.GETPOST('seuil_stock_alerte').'">';
|
print '<tr><td>'.$form->textwithpicto($langs->trans("StockLimit"), $langs->trans("StockLimitDesc"), 1).'</td><td>';
|
||||||
print '</td>';
|
print '<input name="seuil_stock_alerte" class="maxwidth50" value="'.GETPOST('seuil_stock_alerte').'">';
|
||||||
|
print '</td>';
|
||||||
|
|
||||||
print '</tr><tr>';
|
print '</tr><tr>';
|
||||||
|
|
||||||
// Stock desired level
|
// Stock desired level
|
||||||
print '<tr><td>'.$form->textwithpicto($langs->trans("DesiredStock"), $langs->trans("DesiredStockDesc"), 1).'</td><td>';
|
print '<tr><td>'.$form->textwithpicto($langs->trans("DesiredStock"), $langs->trans("DesiredStockDesc"), 1).'</td><td>';
|
||||||
print '<input name="desiredstock" class="maxwidth50" value="'.GETPOST('desiredstock').'">';
|
print '<input name="desiredstock" class="maxwidth50" value="'.GETPOST('desiredstock').'">';
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
print '<input name="seuil_stock_alerte" type="hidden" value="0">';
|
if (empty($conf->global->PRODUCT_DISABLE_STOCK_LEVELS)) {
|
||||||
print '<input name="desiredstock" type="hidden" value="0">';
|
print '<input name="seuil_stock_alerte" type="hidden" value="0">';
|
||||||
|
print '<input name="desiredstock" type="hidden" value="0">';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Duration
|
// Duration
|
||||||
@ -1230,17 +1236,21 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($type != 1) { // Nature, Weight and volume only applies to products and not to services
|
if ($type != 1) { // Nature, Weight and volume only applies to products and not to services
|
||||||
// Nature
|
if (empty($conf->global->PRODUCT_DISABLE_NATURE)) {
|
||||||
print '<tr><td>'.$form->textwithpicto($langs->trans("NatureOfProductShort"), $langs->trans("NatureOfProductDesc")).'</td><td>';
|
// Nature
|
||||||
$statutarray = array('1' => $langs->trans("Finished"), '0' => $langs->trans("RowMaterial"));
|
print '<tr><td>'.$form->textwithpicto($langs->trans("NatureOfProductShort"), $langs->trans("NatureOfProductDesc")).'</td><td>';
|
||||||
print $form->selectarray('finished', $statutarray, GETPOST('finished', 'alpha'), 1);
|
$statutarray = array('1' => $langs->trans("Finished"), '0' => $langs->trans("RowMaterial"));
|
||||||
print '</td></tr>';
|
print $form->selectarray('finished', $statutarray, GETPOST('finished', 'alpha'), 1);
|
||||||
|
print '</td></tr>';
|
||||||
|
}
|
||||||
|
|
||||||
// Brut Weight
|
if (empty($conf->global->PRODUCT_DISABLE_WEIGHT)) {
|
||||||
print '<tr><td>'.$langs->trans("Weight").'</td><td>';
|
// Brut Weight
|
||||||
print '<input name="weight" size="4" value="'.GETPOST('weight').'">';
|
print '<tr><td>'.$langs->trans("Weight").'</td><td>';
|
||||||
print $formproduct->selectMeasuringUnits("weight_units", "weight", GETPOSTISSET('weight_units') ?GETPOST('weight_units', 'alpha') : (empty($conf->global->MAIN_WEIGHT_DEFAULT_UNIT) ? 0 : $conf->global->MAIN_WEIGHT_DEFAULT_UNIT), 0, 2);
|
print '<input name="weight" size="4" value="'.GETPOST('weight').'">';
|
||||||
print '</td></tr>';
|
print $formproduct->selectMeasuringUnits("weight_units", "weight", GETPOSTISSET('weight_units') ?GETPOST('weight_units', 'alpha') : (empty($conf->global->MAIN_WEIGHT_DEFAULT_UNIT) ? 0 : $conf->global->MAIN_WEIGHT_DEFAULT_UNIT), 0, 2);
|
||||||
|
print '</td></tr>';
|
||||||
|
}
|
||||||
|
|
||||||
// Brut Length
|
// Brut Length
|
||||||
if (empty($conf->global->PRODUCT_DISABLE_SIZE)) {
|
if (empty($conf->global->PRODUCT_DISABLE_SIZE)) {
|
||||||
@ -1349,170 +1359,174 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) {
|
|||||||
|
|
||||||
print '<hr>';
|
print '<hr>';
|
||||||
|
|
||||||
if (!empty($conf->global->PRODUIT_MULTIPRICES)) {
|
if (empty($conf->global->PRODUCT_DISABLE_PRICES)) {
|
||||||
// We do no show price array on create when multiprices enabled.
|
if (!empty($conf->global->PRODUIT_MULTIPRICES)) {
|
||||||
// We must set them on prices tab.
|
// We do no show price array on create when multiprices enabled.
|
||||||
print '<table class="border centpercent">';
|
// We must set them on prices tab.
|
||||||
// VAT
|
print '<table class="border centpercent">';
|
||||||
print '<tr><td class="titlefieldcreate">'.$langs->trans("VATRate").'</td><td>';
|
// VAT
|
||||||
$defaultva = get_default_tva($mysoc, $mysoc);
|
print '<tr><td class="titlefieldcreate">'.$langs->trans("VATRate").'</td><td>';
|
||||||
print $form->load_tva("tva_tx", $defaultva, $mysoc, $mysoc, 0, 0, '', false, 1);
|
$defaultva = get_default_tva($mysoc, $mysoc);
|
||||||
print '</td></tr>';
|
print $form->load_tva("tva_tx", $defaultva, $mysoc, $mysoc, 0, 0, '', false, 1);
|
||||||
print '</table>';
|
print '</td></tr>';
|
||||||
|
print '</table>';
|
||||||
|
|
||||||
print '<br>';
|
print '<br>';
|
||||||
} else {
|
} else {
|
||||||
print '<table class="border centpercent">';
|
print '<table class="border centpercent">';
|
||||||
|
|
||||||
// Price
|
// Price
|
||||||
print '<tr><td class="titlefieldcreate">'.$langs->trans("SellingPrice").'</td>';
|
print '<tr><td class="titlefieldcreate">'.$langs->trans("SellingPrice").'</td>';
|
||||||
print '<td><input name="price" class="maxwidth50" value="'.$object->price.'">';
|
print '<td><input name="price" class="maxwidth50" value="'.$object->price.'">';
|
||||||
print $form->selectPriceBaseType($conf->global->PRODUCT_PRICE_BASE_TYPE, "price_base_type");
|
print $form->selectPriceBaseType($conf->global->PRODUCT_PRICE_BASE_TYPE, "price_base_type");
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|
||||||
// Min price
|
// Min price
|
||||||
print '<tr><td>'.$langs->trans("MinPrice").'</td>';
|
print '<tr><td>'.$langs->trans("MinPrice").'</td>';
|
||||||
print '<td><input name="price_min" class="maxwidth50" value="'.$object->price_min.'">';
|
print '<td><input name="price_min" class="maxwidth50" value="'.$object->price_min.'">';
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|
||||||
// VAT
|
// VAT
|
||||||
print '<tr><td>'.$langs->trans("VATRate").'</td><td>';
|
print '<tr><td>'.$langs->trans("VATRate").'</td><td>';
|
||||||
$defaultva = get_default_tva($mysoc, $mysoc);
|
$defaultva = get_default_tva($mysoc, $mysoc);
|
||||||
print $form->load_tva("tva_tx", $defaultva, $mysoc, $mysoc, 0, 0, '', false, 1);
|
print $form->load_tva("tva_tx", $defaultva, $mysoc, $mysoc, 0, 0, '', false, 1);
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|
||||||
print '</table>';
|
print '</table>';
|
||||||
|
|
||||||
print '<br>';
|
print '<br>';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Accountancy codes
|
// Accountancy codes
|
||||||
print '<!-- accountancy codes -->'."\n";
|
print '<!-- accountancy codes -->'."\n";
|
||||||
print '<table class="border centpercent">';
|
print '<table class="border centpercent">';
|
||||||
|
|
||||||
if (!empty($conf->accounting->enabled)) {
|
if (empty($conf->global->PRODUCT_DISABLE_ACCOUNTING)) {
|
||||||
// Accountancy_code_sell
|
if (!empty($conf->accounting->enabled)) {
|
||||||
print '<tr><td class="titlefieldcreate">'.$langs->trans("ProductAccountancySellCode").'</td>';
|
// Accountancy_code_sell
|
||||||
print '<td>';
|
print '<tr><td class="titlefieldcreate">'.$langs->trans("ProductAccountancySellCode").'</td>';
|
||||||
if ($type == 0) {
|
|
||||||
$accountancy_code_sell = (GETPOSTISSET('accountancy_code_sell') ? GETPOST('accountancy_code_sell', 'alpha') : $conf->global->ACCOUNTING_PRODUCT_SOLD_ACCOUNT);
|
|
||||||
} else {
|
|
||||||
$accountancy_code_sell = (GETPOSTISSET('accountancy_code_sell') ? GETPOST('accountancy_code_sell', 'alpha') : $conf->global->ACCOUNTING_SERVICE_SOLD_ACCOUNT);
|
|
||||||
}
|
|
||||||
print $formaccounting->select_account($accountancy_code_sell, 'accountancy_code_sell', 1, null, 1, 1, 'minwidth150 maxwidth300', 1);
|
|
||||||
print '</td></tr>';
|
|
||||||
|
|
||||||
// Accountancy_code_sell_intra
|
|
||||||
if ($mysoc->isInEEC()) {
|
|
||||||
print '<tr><td class="titlefieldcreate">'.$langs->trans("ProductAccountancySellIntraCode").'</td>';
|
|
||||||
print '<td>';
|
print '<td>';
|
||||||
if ($type == 0) {
|
if ($type == 0) {
|
||||||
$accountancy_code_sell_intra = (GETPOSTISSET('accountancy_code_sell_intra') ? GETPOST('accountancy_code_sell_intra', 'alpha') : $conf->global->ACCOUNTING_PRODUCT_SOLD_INTRA_ACCOUNT);
|
$accountancy_code_sell = (GETPOSTISSET('accountancy_code_sell') ? GETPOST('accountancy_code_sell', 'alpha') : $conf->global->ACCOUNTING_PRODUCT_SOLD_ACCOUNT);
|
||||||
} else {
|
} else {
|
||||||
$accountancy_code_sell_intra = (GETPOSTISSET('accountancy_code_sell_intra') ? GETPOST('accountancy_code_sell_intra', 'alpha') : $conf->global->ACCOUNTING_SERVICE_SOLD_INTRA_ACCOUNT);
|
$accountancy_code_sell = (GETPOSTISSET('accountancy_code_sell') ? GETPOST('accountancy_code_sell', 'alpha') : $conf->global->ACCOUNTING_SERVICE_SOLD_ACCOUNT);
|
||||||
}
|
}
|
||||||
print $formaccounting->select_account($accountancy_code_sell_intra, 'accountancy_code_sell_intra', 1, null, 1, 1, 'minwidth150 maxwidth300', 1);
|
print $formaccounting->select_account($accountancy_code_sell, 'accountancy_code_sell', 1, null, 1, 1, 'minwidth150 maxwidth300', 1);
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
}
|
|
||||||
|
|
||||||
// Accountancy_code_sell_export
|
// Accountancy_code_sell_intra
|
||||||
print '<tr><td class="titlefieldcreate">'.$langs->trans("ProductAccountancySellExportCode").'</td>';
|
if ($mysoc->isInEEC()) {
|
||||||
print '<td>';
|
print '<tr><td class="titlefieldcreate">'.$langs->trans("ProductAccountancySellIntraCode").'</td>';
|
||||||
if ($type == 0) {
|
print '<td>';
|
||||||
$accountancy_code_sell_export = (GETPOST('accountancy_code_sell_export') ? GETPOST('accountancy_code_sell_export', 'alpha') : $conf->global->ACCOUNTING_PRODUCT_SOLD_EXPORT_ACCOUNT);
|
if ($type == 0) {
|
||||||
} else {
|
$accountancy_code_sell_intra = (GETPOSTISSET('accountancy_code_sell_intra') ? GETPOST('accountancy_code_sell_intra', 'alpha') : $conf->global->ACCOUNTING_PRODUCT_SOLD_INTRA_ACCOUNT);
|
||||||
$accountancy_code_sell_export = (GETPOST('accountancy_code_sell_export') ? GETPOST('accountancy_code_sell_export', 'alpha') : $conf->global->ACCOUNTING_SERVICE_SOLD_EXPORT_ACCOUNT);
|
} else {
|
||||||
}
|
$accountancy_code_sell_intra = (GETPOSTISSET('accountancy_code_sell_intra') ? GETPOST('accountancy_code_sell_intra', 'alpha') : $conf->global->ACCOUNTING_SERVICE_SOLD_INTRA_ACCOUNT);
|
||||||
print $formaccounting->select_account($accountancy_code_sell_export, 'accountancy_code_sell_export', 1, null, 1, 1, 'minwidth150 maxwidth300', 1);
|
}
|
||||||
print '</td></tr>';
|
print $formaccounting->select_account($accountancy_code_sell_intra, 'accountancy_code_sell_intra', 1, null, 1, 1, 'minwidth150 maxwidth300', 1);
|
||||||
|
print '</td></tr>';
|
||||||
|
}
|
||||||
|
|
||||||
// Accountancy_code_buy
|
// Accountancy_code_sell_export
|
||||||
print '<tr><td>'.$langs->trans("ProductAccountancyBuyCode").'</td>';
|
print '<tr><td class="titlefieldcreate">'.$langs->trans("ProductAccountancySellExportCode").'</td>';
|
||||||
print '<td>';
|
|
||||||
if ($type == 0) {
|
|
||||||
$accountancy_code_buy = (GETPOST('accountancy_code_buy', 'alpha') ? (GETPOST('accountancy_code_buy', 'alpha')) : $conf->global->ACCOUNTING_PRODUCT_BUY_ACCOUNT);
|
|
||||||
} else {
|
|
||||||
$accountancy_code_buy = (GETPOST('accountancy_code_buy', 'alpha') ? (GETPOST('accountancy_code_buy', 'alpha')) : $conf->global->ACCOUNTING_SERVICE_BUY_ACCOUNT);
|
|
||||||
}
|
|
||||||
print $formaccounting->select_account($accountancy_code_buy, 'accountancy_code_buy', 1, null, 1, 1, 'minwidth150 maxwidth300', 1);
|
|
||||||
print '</td></tr>';
|
|
||||||
|
|
||||||
// Accountancy_code_buy_intra
|
|
||||||
if ($mysoc->isInEEC()) {
|
|
||||||
print '<tr><td class="titlefieldcreate">'.$langs->trans("ProductAccountancyBuyIntraCode").'</td>';
|
|
||||||
print '<td>';
|
print '<td>';
|
||||||
if ($type == 0) {
|
if ($type == 0) {
|
||||||
$accountancy_code_buy_intra = (GETPOSTISSET('accountancy_code_buy_intra') ? GETPOST('accountancy_code_buy_intra', 'alpha') : $conf->global->ACCOUNTING_PRODUCT_BUY_INTRA_ACCOUNT);
|
$accountancy_code_sell_export = (GETPOST('accountancy_code_sell_export') ? GETPOST('accountancy_code_sell_export', 'alpha') : $conf->global->ACCOUNTING_PRODUCT_SOLD_EXPORT_ACCOUNT);
|
||||||
} else {
|
} else {
|
||||||
$accountancy_code_buy_intra = (GETPOSTISSET('accountancy_code_buy_intra') ? GETPOST('accountancy_code_buy_intra', 'alpha') : $conf->global->ACCOUNTING_SERVICE_BUY_INTRA_ACCOUNT);
|
$accountancy_code_sell_export = (GETPOST('accountancy_code_sell_export') ? GETPOST('accountancy_code_sell_export', 'alpha') : $conf->global->ACCOUNTING_SERVICE_SOLD_EXPORT_ACCOUNT);
|
||||||
}
|
}
|
||||||
print $formaccounting->select_account($accountancy_code_buy_intra, 'accountancy_code_buy_intra', 1, null, 1, 1, 'minwidth150 maxwidth300', 1);
|
print $formaccounting->select_account($accountancy_code_sell_export, 'accountancy_code_sell_export', 1, null, 1, 1, 'minwidth150 maxwidth300', 1);
|
||||||
|
print '</td></tr>';
|
||||||
|
|
||||||
|
// Accountancy_code_buy
|
||||||
|
print '<tr><td>'.$langs->trans("ProductAccountancyBuyCode").'</td>';
|
||||||
|
print '<td>';
|
||||||
|
if ($type == 0) {
|
||||||
|
$accountancy_code_buy = (GETPOST('accountancy_code_buy', 'alpha') ? (GETPOST('accountancy_code_buy', 'alpha')) : $conf->global->ACCOUNTING_PRODUCT_BUY_ACCOUNT);
|
||||||
|
} else {
|
||||||
|
$accountancy_code_buy = (GETPOST('accountancy_code_buy', 'alpha') ? (GETPOST('accountancy_code_buy', 'alpha')) : $conf->global->ACCOUNTING_SERVICE_BUY_ACCOUNT);
|
||||||
|
}
|
||||||
|
print $formaccounting->select_account($accountancy_code_buy, 'accountancy_code_buy', 1, null, 1, 1, 'minwidth150 maxwidth300', 1);
|
||||||
|
print '</td></tr>';
|
||||||
|
|
||||||
|
// Accountancy_code_buy_intra
|
||||||
|
if ($mysoc->isInEEC()) {
|
||||||
|
print '<tr><td class="titlefieldcreate">'.$langs->trans("ProductAccountancyBuyIntraCode").'</td>';
|
||||||
|
print '<td>';
|
||||||
|
if ($type == 0) {
|
||||||
|
$accountancy_code_buy_intra = (GETPOSTISSET('accountancy_code_buy_intra') ? GETPOST('accountancy_code_buy_intra', 'alpha') : $conf->global->ACCOUNTING_PRODUCT_BUY_INTRA_ACCOUNT);
|
||||||
|
} else {
|
||||||
|
$accountancy_code_buy_intra = (GETPOSTISSET('accountancy_code_buy_intra') ? GETPOST('accountancy_code_buy_intra', 'alpha') : $conf->global->ACCOUNTING_SERVICE_BUY_INTRA_ACCOUNT);
|
||||||
|
}
|
||||||
|
print $formaccounting->select_account($accountancy_code_buy_intra, 'accountancy_code_buy_intra', 1, null, 1, 1, 'minwidth150 maxwidth300', 1);
|
||||||
|
print '</td></tr>';
|
||||||
|
}
|
||||||
|
|
||||||
|
// Accountancy_code_buy_export
|
||||||
|
print '<tr><td class="titlefieldcreate">'.$langs->trans("ProductAccountancyBuyExportCode").'</td>';
|
||||||
|
print '<td>';
|
||||||
|
if ($type == 0) {
|
||||||
|
$accountancy_code_buy_export = (GETPOST('accountancy_code_buy_export') ? GETPOST('accountancy_code_buy_export', 'alpha') : $conf->global->ACCOUNTING_PRODUCT_BUY_EXPORT_ACCOUNT);
|
||||||
|
} else {
|
||||||
|
$accountancy_code_buy_export = (GETPOST('accountancy_code_buy_export') ? GETPOST('accountancy_code_buy_export', 'alpha') : $conf->global->ACCOUNTING_SERVICE_BUY_EXPORT_ACCOUNT);
|
||||||
|
}
|
||||||
|
print $formaccounting->select_account($accountancy_code_buy_export, 'accountancy_code_buy_export', 1, null, 1, 1, 'minwidth150 maxwidth300', 1);
|
||||||
|
print '</td></tr>';
|
||||||
|
} else {// For external software
|
||||||
|
if (!empty($accountancy_code_sell)) {
|
||||||
|
$object->accountancy_code_sell = $accountancy_code_sell;
|
||||||
|
}
|
||||||
|
if (!empty($accountancy_code_sell_intra)) {
|
||||||
|
$object->accountancy_code_sell_intra = $accountancy_code_sell_intra;
|
||||||
|
}
|
||||||
|
if (!empty($accountancy_code_sell_export)) {
|
||||||
|
$object->accountancy_code_sell_export = $accountancy_code_sell_export;
|
||||||
|
}
|
||||||
|
if (!empty($accountancy_code_buy)) {
|
||||||
|
$object->accountancy_code_buy = $accountancy_code_buy;
|
||||||
|
}
|
||||||
|
if (!empty($accountancy_code_buy_intra)) {
|
||||||
|
$object->accountancy_code_buy_intra = $accountancy_code_buy_intra;
|
||||||
|
}
|
||||||
|
if (!empty($accountancy_code_buy_export)) {
|
||||||
|
$object->accountancy_code_buy_export = $accountancy_code_buy_export;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Accountancy_code_sell
|
||||||
|
print '<tr><td class="titlefieldcreate">'.$langs->trans("ProductAccountancySellCode").'</td>';
|
||||||
|
print '<td class="maxwidthonsmartphone"><input class="minwidth150" name="accountancy_code_sell" value="'.$object->accountancy_code_sell.'">';
|
||||||
|
print '</td></tr>';
|
||||||
|
|
||||||
|
// Accountancy_code_sell_intra
|
||||||
|
if ($mysoc->isInEEC()) {
|
||||||
|
print '<tr><td class="titlefieldcreate">'.$langs->trans("ProductAccountancySellIntraCode").'</td>';
|
||||||
|
print '<td class="maxwidthonsmartphone"><input class="minwidth150" name="accountancy_code_sell_intra" value="'.$object->accountancy_code_sell_intra.'">';
|
||||||
|
print '</td></tr>';
|
||||||
|
}
|
||||||
|
|
||||||
|
// Accountancy_code_sell_export
|
||||||
|
print '<tr><td class="titlefieldcreate">'.$langs->trans("ProductAccountancySellExportCode").'</td>';
|
||||||
|
print '<td class="maxwidthonsmartphone"><input class="minwidth150" name="accountancy_code_sell_export" value="'.$object->accountancy_code_sell_export.'">';
|
||||||
|
print '</td></tr>';
|
||||||
|
|
||||||
|
// Accountancy_code_buy
|
||||||
|
print '<tr><td>'.$langs->trans("ProductAccountancyBuyCode").'</td>';
|
||||||
|
print '<td class="maxwidthonsmartphone"><input class="minwidth150" name="accountancy_code_buy" value="'.$object->accountancy_code_buy.'">';
|
||||||
|
print '</td></tr>';
|
||||||
|
|
||||||
|
// Accountancy_code_buy_intra
|
||||||
|
if ($mysoc->isInEEC()) {
|
||||||
|
print '<tr><td class="titlefieldcreate">'.$langs->trans("ProductAccountancyBuyIntraCode").'</td>';
|
||||||
|
print '<td class="maxwidthonsmartphone"><input class="minwidth150" name="accountancy_code_buy_intra" value="'.$object->accountancy_code_buy_intra.'">';
|
||||||
|
print '</td></tr>';
|
||||||
|
}
|
||||||
|
|
||||||
|
// Accountancy_code_buy_export
|
||||||
|
print '<tr><td class="titlefieldcreate">'.$langs->trans("ProductAccountancyBuyExportCode").'</td>';
|
||||||
|
print '<td class="maxwidthonsmartphone"><input class="minwidth150" name="accountancy_code_buy_export" value="'.$object->accountancy_code_buy_export.'">';
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
}
|
}
|
||||||
|
|
||||||
// Accountancy_code_buy_export
|
|
||||||
print '<tr><td class="titlefieldcreate">'.$langs->trans("ProductAccountancyBuyExportCode").'</td>';
|
|
||||||
print '<td>';
|
|
||||||
if ($type == 0) {
|
|
||||||
$accountancy_code_buy_export = (GETPOST('accountancy_code_buy_export') ? GETPOST('accountancy_code_buy_export', 'alpha') : $conf->global->ACCOUNTING_PRODUCT_BUY_EXPORT_ACCOUNT);
|
|
||||||
} else {
|
|
||||||
$accountancy_code_buy_export = (GETPOST('accountancy_code_buy_export') ? GETPOST('accountancy_code_buy_export', 'alpha') : $conf->global->ACCOUNTING_SERVICE_BUY_EXPORT_ACCOUNT);
|
|
||||||
}
|
|
||||||
print $formaccounting->select_account($accountancy_code_buy_export, 'accountancy_code_buy_export', 1, null, 1, 1, 'minwidth150 maxwidth300', 1);
|
|
||||||
print '</td></tr>';
|
|
||||||
} else {// For external software
|
|
||||||
if (!empty($accountancy_code_sell)) {
|
|
||||||
$object->accountancy_code_sell = $accountancy_code_sell;
|
|
||||||
}
|
|
||||||
if (!empty($accountancy_code_sell_intra)) {
|
|
||||||
$object->accountancy_code_sell_intra = $accountancy_code_sell_intra;
|
|
||||||
}
|
|
||||||
if (!empty($accountancy_code_sell_export)) {
|
|
||||||
$object->accountancy_code_sell_export = $accountancy_code_sell_export;
|
|
||||||
}
|
|
||||||
if (!empty($accountancy_code_buy)) {
|
|
||||||
$object->accountancy_code_buy = $accountancy_code_buy;
|
|
||||||
}
|
|
||||||
if (!empty($accountancy_code_buy_intra)) {
|
|
||||||
$object->accountancy_code_buy_intra = $accountancy_code_buy_intra;
|
|
||||||
}
|
|
||||||
if (!empty($accountancy_code_buy_export)) {
|
|
||||||
$object->accountancy_code_buy_export = $accountancy_code_buy_export;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Accountancy_code_sell
|
|
||||||
print '<tr><td class="titlefieldcreate">'.$langs->trans("ProductAccountancySellCode").'</td>';
|
|
||||||
print '<td class="maxwidthonsmartphone"><input class="minwidth150" name="accountancy_code_sell" value="'.$object->accountancy_code_sell.'">';
|
|
||||||
print '</td></tr>';
|
|
||||||
|
|
||||||
// Accountancy_code_sell_intra
|
|
||||||
if ($mysoc->isInEEC()) {
|
|
||||||
print '<tr><td class="titlefieldcreate">'.$langs->trans("ProductAccountancySellIntraCode").'</td>';
|
|
||||||
print '<td class="maxwidthonsmartphone"><input class="minwidth150" name="accountancy_code_sell_intra" value="'.$object->accountancy_code_sell_intra.'">';
|
|
||||||
print '</td></tr>';
|
|
||||||
}
|
|
||||||
|
|
||||||
// Accountancy_code_sell_export
|
|
||||||
print '<tr><td class="titlefieldcreate">'.$langs->trans("ProductAccountancySellExportCode").'</td>';
|
|
||||||
print '<td class="maxwidthonsmartphone"><input class="minwidth150" name="accountancy_code_sell_export" value="'.$object->accountancy_code_sell_export.'">';
|
|
||||||
print '</td></tr>';
|
|
||||||
|
|
||||||
// Accountancy_code_buy
|
|
||||||
print '<tr><td>'.$langs->trans("ProductAccountancyBuyCode").'</td>';
|
|
||||||
print '<td class="maxwidthonsmartphone"><input class="minwidth150" name="accountancy_code_buy" value="'.$object->accountancy_code_buy.'">';
|
|
||||||
print '</td></tr>';
|
|
||||||
|
|
||||||
// Accountancy_code_buy_intra
|
|
||||||
if ($mysoc->isInEEC()) {
|
|
||||||
print '<tr><td class="titlefieldcreate">'.$langs->trans("ProductAccountancyBuyIntraCode").'</td>';
|
|
||||||
print '<td class="maxwidthonsmartphone"><input class="minwidth150" name="accountancy_code_buy_intra" value="'.$object->accountancy_code_buy_intra.'">';
|
|
||||||
print '</td></tr>';
|
|
||||||
}
|
|
||||||
|
|
||||||
// Accountancy_code_buy_export
|
|
||||||
print '<tr><td class="titlefieldcreate">'.$langs->trans("ProductAccountancyBuyExportCode").'</td>';
|
|
||||||
print '<td class="maxwidthonsmartphone"><input class="minwidth150" name="accountancy_code_buy_export" value="'.$object->accountancy_code_buy_export.'">';
|
|
||||||
print '</td></tr>';
|
|
||||||
}
|
}
|
||||||
print '</table>';
|
print '</table>';
|
||||||
|
|
||||||
@ -1708,9 +1722,11 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) {
|
|||||||
print "\n";
|
print "\n";
|
||||||
|
|
||||||
// Public Url
|
// Public Url
|
||||||
print '<tr><td>'.$langs->trans("PublicUrl").'</td><td>';
|
if (empty($conf->global->PRODUCT_DISABLE_PUBLIC_URL)) {
|
||||||
print '<input type="text" name="url" class="quatrevingtpercent" value="'.$object->url.'">';
|
print '<tr><td>'.$langs->trans("PublicUrl").'</td><td>';
|
||||||
print '</td></tr>';
|
print '<input type="text" name="url" class="quatrevingtpercent" value="'.$object->url.'">';
|
||||||
|
print '</td></tr>';
|
||||||
|
}
|
||||||
|
|
||||||
// Stock
|
// Stock
|
||||||
if ($object->isProduct() && !empty($conf->stock->enabled)) {
|
if ($object->isProduct() && !empty($conf->stock->enabled)) {
|
||||||
@ -1743,16 +1759,20 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) {
|
|||||||
print $formproduct->selectMeasuringUnits("duration_unit", "time", $object->duration_unit, 0, 1);
|
print $formproduct->selectMeasuringUnits("duration_unit", "time", $object->duration_unit, 0, 1);
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
} else {
|
} else {
|
||||||
// Nature
|
if (empty($conf->global->PRODUCT_DISABLE_NATURE)) {
|
||||||
print '<tr><td>'.$form->textwithpicto($langs->trans("NatureOfProductShort"), $langs->trans("NatureOfProductDesc")).'</td><td>';
|
// Nature
|
||||||
print $formproduct->selectProductNature('finished', $object->finished);
|
print '<tr><td>'.$form->textwithpicto($langs->trans("NatureOfProductShort"), $langs->trans("NatureOfProductDesc")).'</td><td>';
|
||||||
print '</td></tr>';
|
print $formproduct->selectProductNature('finished', $object->finished);
|
||||||
|
print '</td></tr>';
|
||||||
|
}
|
||||||
|
|
||||||
// Brut Weight
|
if (empty($conf->global->PRODUCT_DISABLE_WEIGHT)) {
|
||||||
print '<tr><td>'.$langs->trans("Weight").'</td><td>';
|
// Brut Weight
|
||||||
print '<input name="weight" size="5" value="'.$object->weight.'"> ';
|
print '<tr><td>'.$langs->trans("Weight").'</td><td>';
|
||||||
print $formproduct->selectMeasuringUnits("weight_units", "weight", $object->weight_units, 0, 2);
|
print '<input name="weight" size="5" value="'.$object->weight.'"> ';
|
||||||
print '</td></tr>';
|
print $formproduct->selectMeasuringUnits("weight_units", "weight", $object->weight_units, 0, 2);
|
||||||
|
print '</td></tr>';
|
||||||
|
}
|
||||||
|
|
||||||
if (empty($conf->global->PRODUCT_DISABLE_SIZE)) {
|
if (empty($conf->global->PRODUCT_DISABLE_SIZE)) {
|
||||||
// Brut Length
|
// Brut Length
|
||||||
@ -1867,81 +1887,83 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) {
|
|||||||
|
|
||||||
print '<table class="border centpercent">';
|
print '<table class="border centpercent">';
|
||||||
|
|
||||||
if (!empty($conf->accounting->enabled)) {
|
if (empty($conf->global->PRODUCT_DISABLE_ACCOUNTING)) {
|
||||||
// Accountancy_code_sell
|
if (!empty($conf->accounting->enabled)) {
|
||||||
print '<tr><td class="titlefieldcreate">'.$langs->trans("ProductAccountancySellCode").'</td>';
|
// Accountancy_code_sell
|
||||||
print '<td>';
|
print '<tr><td class="titlefieldcreate">'.$langs->trans("ProductAccountancySellCode").'</td>';
|
||||||
print $formaccounting->select_account($object->accountancy_code_sell, 'accountancy_code_sell', 1, '', 1, 1, 'minwidth150 maxwidth300');
|
|
||||||
print '</td></tr>';
|
|
||||||
|
|
||||||
// Accountancy_code_sell_intra
|
|
||||||
if ($mysoc->isInEEC()) {
|
|
||||||
print '<tr><td class="titlefieldcreate">'.$langs->trans("ProductAccountancySellIntraCode").'</td>';
|
|
||||||
print '<td>';
|
print '<td>';
|
||||||
print $formaccounting->select_account($object->accountancy_code_sell_intra, 'accountancy_code_sell_intra', 1, '', 1, 1, 'minwidth150 maxwidth300');
|
print $formaccounting->select_account($object->accountancy_code_sell, 'accountancy_code_sell', 1, '', 1, 1, 'minwidth150 maxwidth300');
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
}
|
|
||||||
|
|
||||||
// Accountancy_code_sell_export
|
// Accountancy_code_sell_intra
|
||||||
print '<tr><td class="titlefieldcreate">'.$langs->trans("ProductAccountancySellExportCode").'</td>';
|
if ($mysoc->isInEEC()) {
|
||||||
print '<td>';
|
print '<tr><td class="titlefieldcreate">'.$langs->trans("ProductAccountancySellIntraCode").'</td>';
|
||||||
print $formaccounting->select_account($object->accountancy_code_sell_export, 'accountancy_code_sell_export', 1, '', 1, 1, 'minwidth150 maxwidth300');
|
print '<td>';
|
||||||
print '</td></tr>';
|
print $formaccounting->select_account($object->accountancy_code_sell_intra, 'accountancy_code_sell_intra', 1, '', 1, 1, 'minwidth150 maxwidth300');
|
||||||
|
print '</td></tr>';
|
||||||
|
}
|
||||||
|
|
||||||
// Accountancy_code_buy
|
// Accountancy_code_sell_export
|
||||||
print '<tr><td>'.$langs->trans("ProductAccountancyBuyCode").'</td>';
|
print '<tr><td class="titlefieldcreate">'.$langs->trans("ProductAccountancySellExportCode").'</td>';
|
||||||
print '<td>';
|
|
||||||
print $formaccounting->select_account($object->accountancy_code_buy, 'accountancy_code_buy', 1, '', 1, 1, 'minwidth150 maxwidth300');
|
|
||||||
print '</td></tr>';
|
|
||||||
|
|
||||||
// Accountancy_code_buy_intra
|
|
||||||
if ($mysoc->isInEEC()) {
|
|
||||||
print '<tr><td class="titlefieldcreate">'.$langs->trans("ProductAccountancyBuyIntraCode").'</td>';
|
|
||||||
print '<td>';
|
print '<td>';
|
||||||
print $formaccounting->select_account($object->accountancy_code_buy_intra, 'accountancy_code_buy_intra', 1, '', 1, 1, 'minwidth150 maxwidth300');
|
print $formaccounting->select_account($object->accountancy_code_sell_export, 'accountancy_code_sell_export', 1, '', 1, 1, 'minwidth150 maxwidth300');
|
||||||
|
print '</td></tr>';
|
||||||
|
|
||||||
|
// Accountancy_code_buy
|
||||||
|
print '<tr><td>'.$langs->trans("ProductAccountancyBuyCode").'</td>';
|
||||||
|
print '<td>';
|
||||||
|
print $formaccounting->select_account($object->accountancy_code_buy, 'accountancy_code_buy', 1, '', 1, 1, 'minwidth150 maxwidth300');
|
||||||
|
print '</td></tr>';
|
||||||
|
|
||||||
|
// Accountancy_code_buy_intra
|
||||||
|
if ($mysoc->isInEEC()) {
|
||||||
|
print '<tr><td class="titlefieldcreate">'.$langs->trans("ProductAccountancyBuyIntraCode").'</td>';
|
||||||
|
print '<td>';
|
||||||
|
print $formaccounting->select_account($object->accountancy_code_buy_intra, 'accountancy_code_buy_intra', 1, '', 1, 1, 'minwidth150 maxwidth300');
|
||||||
|
print '</td></tr>';
|
||||||
|
}
|
||||||
|
|
||||||
|
// Accountancy_code_buy_export
|
||||||
|
print '<tr><td class="titlefieldcreate">'.$langs->trans("ProductAccountancyBuyExportCode").'</td>';
|
||||||
|
print '<td>';
|
||||||
|
print $formaccounting->select_account($object->accountancy_code_buy_export, 'accountancy_code_buy_export', 1, '', 1, 1, 'minwidth150 maxwidth300');
|
||||||
|
print '</td></tr>';
|
||||||
|
} else {
|
||||||
|
// For external software
|
||||||
|
// Accountancy_code_sell
|
||||||
|
print '<tr><td class="titlefieldcreate">'.$langs->trans("ProductAccountancySellCode").'</td>';
|
||||||
|
print '<td><input name="accountancy_code_sell" class="maxwidth200" value="'.$object->accountancy_code_sell.'">';
|
||||||
|
print '</td></tr>';
|
||||||
|
|
||||||
|
// Accountancy_code_sell_intra
|
||||||
|
if ($mysoc->isInEEC()) {
|
||||||
|
print '<tr><td class="titlefieldcreate">'.$langs->trans("ProductAccountancySellIntraCode").'</td>';
|
||||||
|
print '<td><input name="accountancy_code_sell_intra" class="maxwidth200" value="'.$object->accountancy_code_sell_intra.'">';
|
||||||
|
print '</td></tr>';
|
||||||
|
}
|
||||||
|
|
||||||
|
// Accountancy_code_sell_export
|
||||||
|
print '<tr><td class="titlefieldcreate">'.$langs->trans("ProductAccountancySellExportCode").'</td>';
|
||||||
|
print '<td><input name="accountancy_code_sell_export" class="maxwidth200" value="'.$object->accountancy_code_sell_export.'">';
|
||||||
|
print '</td></tr>';
|
||||||
|
|
||||||
|
// Accountancy_code_buy
|
||||||
|
print '<tr><td>'.$langs->trans("ProductAccountancyBuyCode").'</td>';
|
||||||
|
print '<td><input name="accountancy_code_buy" class="maxwidth200" value="'.$object->accountancy_code_buy.'">';
|
||||||
|
print '</td></tr>';
|
||||||
|
|
||||||
|
// Accountancy_code_buy_intra
|
||||||
|
if ($mysoc->isInEEC()) {
|
||||||
|
print '<tr><td class="titlefieldcreate">'.$langs->trans("ProductAccountancyBuyIntraCode").'</td>';
|
||||||
|
print '<td><input name="accountancy_code_buy_intra" class="maxwidth200" value="'.$object->accountancy_code_buy_intra.'">';
|
||||||
|
print '</td></tr>';
|
||||||
|
}
|
||||||
|
|
||||||
|
// Accountancy_code_buy_export
|
||||||
|
print '<tr><td class="titlefieldcreate">'.$langs->trans("ProductAccountancyBuyExportCode").'</td>';
|
||||||
|
print '<td><input name="accountancy_code_buy_export" class="maxwidth200" value="'.$object->accountancy_code_buy_export.'">';
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
}
|
}
|
||||||
|
|
||||||
// Accountancy_code_buy_export
|
|
||||||
print '<tr><td class="titlefieldcreate">'.$langs->trans("ProductAccountancyBuyExportCode").'</td>';
|
|
||||||
print '<td>';
|
|
||||||
print $formaccounting->select_account($object->accountancy_code_buy_export, 'accountancy_code_buy_export', 1, '', 1, 1, 'minwidth150 maxwidth300');
|
|
||||||
print '</td></tr>';
|
|
||||||
} else {
|
|
||||||
// For external software
|
|
||||||
// Accountancy_code_sell
|
|
||||||
print '<tr><td class="titlefieldcreate">'.$langs->trans("ProductAccountancySellCode").'</td>';
|
|
||||||
print '<td><input name="accountancy_code_sell" class="maxwidth200" value="'.$object->accountancy_code_sell.'">';
|
|
||||||
print '</td></tr>';
|
|
||||||
|
|
||||||
// Accountancy_code_sell_intra
|
|
||||||
if ($mysoc->isInEEC()) {
|
|
||||||
print '<tr><td class="titlefieldcreate">'.$langs->trans("ProductAccountancySellIntraCode").'</td>';
|
|
||||||
print '<td><input name="accountancy_code_sell_intra" class="maxwidth200" value="'.$object->accountancy_code_sell_intra.'">';
|
|
||||||
print '</td></tr>';
|
|
||||||
}
|
|
||||||
|
|
||||||
// Accountancy_code_sell_export
|
|
||||||
print '<tr><td class="titlefieldcreate">'.$langs->trans("ProductAccountancySellExportCode").'</td>';
|
|
||||||
print '<td><input name="accountancy_code_sell_export" class="maxwidth200" value="'.$object->accountancy_code_sell_export.'">';
|
|
||||||
print '</td></tr>';
|
|
||||||
|
|
||||||
// Accountancy_code_buy
|
|
||||||
print '<tr><td>'.$langs->trans("ProductAccountancyBuyCode").'</td>';
|
|
||||||
print '<td><input name="accountancy_code_buy" class="maxwidth200" value="'.$object->accountancy_code_buy.'">';
|
|
||||||
print '</td></tr>';
|
|
||||||
|
|
||||||
// Accountancy_code_buy_intra
|
|
||||||
if ($mysoc->isInEEC()) {
|
|
||||||
print '<tr><td class="titlefieldcreate">'.$langs->trans("ProductAccountancyBuyIntraCode").'</td>';
|
|
||||||
print '<td><input name="accountancy_code_buy_intra" class="maxwidth200" value="'.$object->accountancy_code_buy_intra.'">';
|
|
||||||
print '</td></tr>';
|
|
||||||
}
|
|
||||||
|
|
||||||
// Accountancy_code_buy_export
|
|
||||||
print '<tr><td class="titlefieldcreate">'.$langs->trans("ProductAccountancyBuyExportCode").'</td>';
|
|
||||||
print '<td><input name="accountancy_code_buy_export" class="maxwidth200" value="'.$object->accountancy_code_buy_export.'">';
|
|
||||||
print '</td></tr>';
|
|
||||||
}
|
}
|
||||||
print '</table>';
|
print '</table>';
|
||||||
|
|
||||||
@ -2170,9 +2192,11 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) {
|
|||||||
print '<tr><td class="tdtop">'.$langs->trans("Description").'</td><td>'.(dol_textishtml($object->description) ? $object->description : dol_nl2br($object->description, 1, true)).'</td></tr>';
|
print '<tr><td class="tdtop">'.$langs->trans("Description").'</td><td>'.(dol_textishtml($object->description) ? $object->description : dol_nl2br($object->description, 1, true)).'</td></tr>';
|
||||||
|
|
||||||
// Public URL
|
// Public URL
|
||||||
print '<tr><td>'.$langs->trans("PublicUrl").'</td><td>';
|
if (empty($conf->global->PRODUCT_DISABLE_PUBLIC_URL)) {
|
||||||
print dol_print_url($object->url);
|
print '<tr><td>'.$langs->trans("PublicUrl").'</td><td>';
|
||||||
print '</td></tr>';
|
print dol_print_url($object->url);
|
||||||
|
print '</td></tr>';
|
||||||
|
}
|
||||||
|
|
||||||
// Default warehouse
|
// Default warehouse
|
||||||
if ($object->isProduct() && !empty($conf->stock->enabled)) {
|
if ($object->isProduct() && !empty($conf->stock->enabled)) {
|
||||||
@ -2218,19 +2242,23 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) {
|
|||||||
|
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
} else {
|
} else {
|
||||||
// Nature
|
if (empty($conf->global->PRODUCT_DISABLE_NATURE)) {
|
||||||
print '<tr><td class="titlefield">'.$form->textwithpicto($langs->trans("NatureOfProductShort"), $langs->trans("NatureOfProductDesc")).'</td><td>';
|
// Nature
|
||||||
print $object->getLibFinished();
|
print '<tr><td class="titlefield">'.$form->textwithpicto($langs->trans("NatureOfProductShort"), $langs->trans("NatureOfProductDesc")).'</td><td>';
|
||||||
print '</td></tr>';
|
print $object->getLibFinished();
|
||||||
|
print '</td></tr>';
|
||||||
|
}
|
||||||
|
|
||||||
// Brut Weight
|
// Brut Weight
|
||||||
print '<tr><td class="titlefield">'.$langs->trans("Weight").'</td><td>';
|
if (empty($conf->global->PRODUCT_DISABLE_WEIGHT)) {
|
||||||
if ($object->weight != '') {
|
print '<tr><td class="titlefield">'.$langs->trans("Weight").'</td><td>';
|
||||||
print $object->weight." ".measuringUnitString(0, "weight", $object->weight_units);
|
if ($object->weight != '') {
|
||||||
} else {
|
print $object->weight." ".measuringUnitString(0, "weight", $object->weight_units);
|
||||||
print ' ';
|
} else {
|
||||||
|
print ' ';
|
||||||
|
}
|
||||||
|
print "</td></tr>\n";
|
||||||
}
|
}
|
||||||
print "</td></tr>\n";
|
|
||||||
|
|
||||||
if (empty($conf->global->PRODUCT_DISABLE_SIZE)) {
|
if (empty($conf->global->PRODUCT_DISABLE_SIZE)) {
|
||||||
// Brut Length
|
// Brut Length
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user