ExcelToJson.php
[Pman.Core] / ExcelToJson.php
index e10f739..3072cb4 100644 (file)
@@ -43,7 +43,7 @@ class Pman_Core_ExcelToJson extends Pman_Roo
         }
         
         $req = array(
-            'LINE', 'ITEM CODE', 'DESCRIPTION', 'QUANTITY', 'AA'
+            'LINE', 'ITEM CODE', 'DESCRIPTION', 'QUANTITY'
         );
         
         $cols = false;
@@ -66,14 +66,13 @@ class Pman_Core_ExcelToJson extends Pman_Roo
                 foreach($n as $k) {
                     $cols[] = strtoupper(trim($k));
                 }
-                print_r($cols);exit;
+                
                 if (empty($cols)) {
                     continue;
                 }
                
                 foreach($req as $r) {
                     if (!in_array($r,$cols)) {
-                        print_r($r);
                         $cols = false;
                         break;
                     }
@@ -91,7 +90,7 @@ class Pman_Core_ExcelToJson extends Pman_Roo
         if (empty($cols)) {
             $this->jerr("could not find a row with " . implode(' / ', $req));
         }
-        
+        print_r($cols);
         fclose($fh);
         
         exit;