diff --git a/htdocs/core/modules/barcode/mod_barcode_product_standard.php b/htdocs/core/modules/barcode/mod_barcode_product_standard.php index 9c96584221c..e03bdc6d2e9 100644 --- a/htdocs/core/modules/barcode/mod_barcode_product_standard.php +++ b/htdocs/core/modules/barcode/mod_barcode_product_standard.php @@ -176,7 +176,7 @@ class mod_barcode_product_standard extends ModeleNumRefBarCode { global $conf; - //var_dump($code.' '.$product->ref.' '.$thirdparty_type);exit; + //var_dump($code.' '.$product->ref.' '.$thirdparty_type);exit; require_once DOL_DOCUMENT_ROOT .'/core/lib/functions2.lib.php'; diff --git a/htdocs/product/fiche.php b/htdocs/product/fiche.php index 0e85f897d29..deeae6784e6 100644 --- a/htdocs/product/fiche.php +++ b/htdocs/product/fiche.php @@ -208,18 +208,18 @@ if (empty($reshook)) $object->barcode_type = GETPOST('fk_barcode_type'); $object->barcode = GETPOST('barcode'); // Set barcode_type_xxx from barcode_type id - $stdobject=new GenericObject($db); + $stdobject=new GenericObject($db); $stdobject->element='product'; - $stdobject->barcode_type=GETPOST('fk_barcode_type'); - $result=$stdobject->fetch_barcode(); - if ($result < 0) - { - $error++; - setEventMessage('Failed to get bar code type information '.$stdobject->error, 'errors'); - } + $stdobject->barcode_type=GETPOST('fk_barcode_type'); + $result=$stdobject->fetch_barcode(); + if ($result < 0) + { + $error++; + setEventMessage('Failed to get bar code type information '.$stdobject->error, 'errors'); + } $object->barcode_type_code = $stdobject->barcode_type_code; $object->barcode_type_coder = $stdobject->barcode_type_coder; - $object->barcode_type_label = $stdobject->barcode_type_label; + $object->barcode_type_label = $stdobject->barcode_type_label; $object->description = dol_htmlcleanlastbr(GETPOST('desc')); $object->url = GETPOST('url'); @@ -321,19 +321,19 @@ if (empty($reshook)) $object->barcode_type = GETPOST('fk_barcode_type'); $object->barcode = GETPOST('barcode'); - // Set barcode_type_xxx from barcode_type id + // Set barcode_type_xxx from barcode_type id $stdobject=new GenericObject($db); - $stdobject->element='product'; - $stdobject->barcode_type=GETPOST('fk_barcode_type'); - $result=$stdobject->fetch_barcode(); - if ($result < 0) - { - $error++; - setEventMessage('Failed to get bar code type information '.$stdobject->error, 'errors'); - } - $object->barcode_type_code = $stdobject->barcode_type_code; - $object->barcode_type_coder = $stdobject->barcode_type_coder; - $object->barcode_type_label = $stdobject->barcode_type_label; + $stdobject->element='product'; + $stdobject->barcode_type=GETPOST('fk_barcode_type'); + $result=$stdobject->fetch_barcode(); + if ($result < 0) + { + $error++; + setEventMessage('Failed to get bar code type information '.$stdobject->error, 'errors'); + } + $object->barcode_type_code = $stdobject->barcode_type_code; + $object->barcode_type_coder = $stdobject->barcode_type_coder; + $object->barcode_type_label = $stdobject->barcode_type_label; $object->accountancy_code_sell = GETPOST('accountancy_code_sell'); $object->accountancy_code_buy = GETPOST('accountancy_code_buy');