Raphaël Doursenaud 11 gadi atpakaļ
vecāks
revīzija
12fed4f4d7

+ 1 - 1
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';
 

+ 21 - 21
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');