ExcelToJson.php
[Pman.Core] / ExcelToJson.php
index 39dffd0..bfa51d5 100644 (file)
@@ -43,7 +43,7 @@ class Pman_Core_ExcelToJson extends Pman_Roo
         }
         
         $req = array(
-            'LINE', 'ITEM CODE', 'DESCRIPTION', 'QUANTITY'
+            'LINE', 'ITEM CODE', 'DESCRIPTION', 'QUANTITY', 'AA'
         );
         
         $cols[] = false;
@@ -71,6 +71,7 @@ class Pman_Core_ExcelToJson extends Pman_Roo
                 }
                 foreach($req as $r) {
                     if (!in_array($r,$cols)) {
+                        print_r($r);
                         $cols = false;
                         break;
                     }
@@ -84,7 +85,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));
         }