ExcelToJson.php
[Pman.Core] / ExcelToJson.php
index aee5e28..025f53c 100644 (file)
@@ -42,6 +42,10 @@ class Pman_Core_ExcelToJson extends Pman_Roo
             $this->jerr("invalid file");
         }
         
+        $req = array(
+            'LINE', 'ITEM CODE', 'DESCRIPTION', 'QUANTITY', 'AA'
+        );
+        
         $cols[] = false;
         $rows = array();
         $header = false;
@@ -80,7 +84,7 @@ class Pman_Core_ExcelToJson extends Pman_Roo
             $rows[] = $row;
             
         }
-        
+        print_r($cols);exit;
         if (empty($cols)) {
             $this->jerr("could not find a row with " . implode(' / ', $req));
         }