VoidSalesAndPurchaseOrders.php
authorEdward <edward@roojs.com>
Wed, 26 Feb 2014 09:16:17 +0000 (17:16 +0800)
committerEdward <edward@roojs.com>
Wed, 26 Feb 2014 09:16:17 +0000 (17:16 +0800)
VoidSalesAndPurchaseOrders.php

index ddfefaa..c91f131 100644 (file)
@@ -23,7 +23,6 @@ class Pman_Xtuple_VoidSalesAndPurchaseOrders extends Pman_Roo
         $cohead->whereAdd("
             cohead_status != 'X'
         ");
-        $cohead->orderBy('cohead_id DESC');
         $cohead->find();
         
         while ($cohead->fetch()){
@@ -32,6 +31,11 @@ class Pman_Xtuple_VoidSalesAndPurchaseOrders extends Pman_Roo
         
         
         $pohead = DB_DataObject::factory('pohead');
+        $pohead->find();
+        
+        while ($pohead->fetch()){
+            print_r($pohead);exit;
+        }
         
         
         $this->jerr('ROLL BACK');