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 DB_DataObject::factory('cohead')->lockTables();
24 $cohead = DB_DataObject::factory('cohead');
30 while ($cohead->fetch()){
31 $cohead->clear($this);
35 $pohead = DB_DataObject::factory('pohead');
38 while ($pohead->fetch()){
39 $pohead->clear($this);
43 $this->jok('ROLL BACK');