Import/WayBill.php
authorEdward <edward@roojs.com>
Fri, 24 Jan 2014 05:20:08 +0000 (13:20 +0800)
committerEdward <edward@roojs.com>
Fri, 24 Jan 2014 05:20:08 +0000 (13:20 +0800)
Import/WayBill.php

index b086510..630b7c1 100644 (file)
@@ -132,6 +132,19 @@ class Pman_Xtuple_Import_WayBill extends Pman_Roo
                 $errMsg[] = $row['賣家備註'] . " - no matching qty";
                 continue;
             }
+            
+            $old = clone ($shiphead);
+            $shiphead->shiphead_delivery_note = $row['運單號'];
+            
+            $shiphead->update($old);
+            
+            $this->transObj->lockTables();
+            
+            $res = $this->confirm($roo);
+            if (true !== $res) {
+                $roo->jerr($res);
+            }
+            
         }
         
         if(!empty($errMsg)){