Fix custom code should not appears on services
This commit is contained in:
parent
a57a41a07d
commit
3611161b67
@ -324,7 +324,8 @@ if ((! empty($_REQUEST['unused']) && $_REQUEST['unused'] == 'true') || (isset($a
|
|||||||
if (preg_match('/GlobalVariableUpdaterHelp$/', $value)) $qualifiedforclean=0;
|
if (preg_match('/GlobalVariableUpdaterHelp$/', $value)) $qualifiedforclean=0;
|
||||||
if (preg_match('/OppStatus/', $value)) $qualifiedforclean=0;
|
if (preg_match('/OppStatus/', $value)) $qualifiedforclean=0;
|
||||||
if (preg_match('/AvailabilityType/', $value)) $qualifiedforclean=0;
|
if (preg_match('/AvailabilityType/', $value)) $qualifiedforclean=0;
|
||||||
|
if (preg_match('/CardProduct/', $value)) $qualifiedforclean=0;
|
||||||
|
|
||||||
if (preg_match('/sms/i', $value)) $qualifiedforclean=0;
|
if (preg_match('/sms/i', $value)) $qualifiedforclean=0;
|
||||||
if (preg_match('/TF_/i', $value)) $qualifiedforclean=0;
|
if (preg_match('/TF_/i', $value)) $qualifiedforclean=0;
|
||||||
if (preg_match('/WithBankUsing/i', $value)) $qualifiedforclean=0;
|
if (preg_match('/WithBankUsing/i', $value)) $qualifiedforclean=0;
|
||||||
|
|||||||
@ -32,6 +32,8 @@ ServicesOnSellAndOnBuy=Services for sale and for purchase
|
|||||||
LastModifiedProductsAndServices=Latest %s modified products/services
|
LastModifiedProductsAndServices=Latest %s modified products/services
|
||||||
LastRecordedProducts=Latest %s recorded products
|
LastRecordedProducts=Latest %s recorded products
|
||||||
LastRecordedServices=Latest %s recorded services
|
LastRecordedServices=Latest %s recorded services
|
||||||
|
CardProduct0=Product card
|
||||||
|
CardProduct1=Service card
|
||||||
Stock=Stock
|
Stock=Stock
|
||||||
Stocks=Stocks
|
Stocks=Stocks
|
||||||
Movements=Movements
|
Movements=Movements
|
||||||
|
|||||||
@ -1314,7 +1314,7 @@ else
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Custom code
|
// Custom code
|
||||||
if (empty($conf->global->PRODUCT_DISABLE_CUSTOM_INFO))
|
if (! $object->isService() && empty($conf->global->PRODUCT_DISABLE_CUSTOM_INFO))
|
||||||
{
|
{
|
||||||
print '<tr><td>'.$langs->trans("CustomCode").'</td><td><input name="customcode" size="10" value="'.$object->customcode.'"></td>';
|
print '<tr><td>'.$langs->trans("CustomCode").'</td><td><input name="customcode" size="10" value="'.$object->customcode.'"></td>';
|
||||||
// Origin country
|
// Origin country
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user