VoidSalesAndPurchaseOrders.php
authorEdward <edward@roojs.com>
Wed, 26 Feb 2014 11:08:49 +0000 (19:08 +0800)
committerEdward <edward@roojs.com>
Wed, 26 Feb 2014 11:08:49 +0000 (19:08 +0800)
VoidSalesAndPurchaseOrders.php

index 3138178..527149a 100644 (file)
@@ -21,15 +21,15 @@ class Pman_Xtuple_VoidSalesAndPurchaseOrders extends Pman_Roo
         
         DB_DataObject::factory('cohead')->lockTables();
         
-//        $cohead = DB_DataObject::factory('cohead');
-//        $cohead->whereAdd("
-//            cohead_status != 'X'
-//        ");
-//        $cohead->find();
-//        
-//        while ($cohead->fetch()){
-//            $cohead->clear($this);
-//        }
+        $cohead = DB_DataObject::factory('cohead');
+        $cohead->whereAdd("
+            cohead_status != 'X'
+        ");
+        $cohead->find();
+        
+        while ($cohead->fetch()){
+            $cohead->clear($this);
+        }
         
         
         $pohead = DB_DataObject::factory('pohead');