2 require_once 'Pman/Roo.php';
4 class Pman_Xtuple_VoidSalesAndPurchaseOrders extends Pman_Roo
8 if (HTML_FlexyFramework::get()->cli) {
11 return parent::getAuth();
16 $this->transObj = DB_DataObject::Factory('cohead');
18 $this->transObj->query('BEGIN');
20 PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, array($this, 'onPearError'));
22 // $cohead = DB_DataObject::factory('cohead');
23 // $cohead->whereAdd("
24 // cohead_status != 'X'
28 // while ($cohead->fetch()){
29 // $cohead->clear($this);
33 $pohead = DB_DataObject::factory('pohead');
36 while ($pohead->fetch()){
41 $this->jerr('ROLL BACK');