public static function TxnVoidResponse($requestID, $user, $action, $ID, $extra, &$err, $last_action_time, $last_actionident_time, $xml, $idents, $config = array())
	{
		$Driver = QuickBooks_Driver_Singleton::getInstance();
		
		// Figure out what SQL table this object came from
		$map = array();
		$others = array();
		QuickBooks_SQL_Schema::mapToSchema(trim(QuickBooks_Utilities::objectToXMLElement($extra['object'])), QUICKBOOKS_SQL_SCHEMA_MAP_TO_SQL, $map, $others);
			
		$table = QUICKBOOKS_DRIVER_SQL_PREFIX_SQL . $map[0];
		
		// We just need to set the voided flag on the transaction
		$update = array(
			QUICKBOOKS_DRIVER_SQL_FIELD_FLAG_VOIDED => 1, 
			'AmountDue' => 0.0, 
			'Amount' => 0.0, 
			'OpenAmount' => 0.0, 
			'Amount' => 0.0, 
			'Subtotal' => 0.0, 
			'TotalAmount' => 0.0, 
			'BalanceRemaining' => 0.0, 
			'SalesTaxTotal' => 0.0,
			);
		
		$where = array(
			array( QUICKBOOKS_DRIVER_SQL_FIELD_ID => $ID ), 
			);	
		
		// Update the SQL table to indicate it was voided
		$Driver->update($table, $update, $where);				
		
		return true;
	}
public static function TxnVoidResponse($requestID, $user, $action, $ID, $extra, &$err, $last_action_time, $last_actionident_time, $xml, $idents, $config = array())
	{
		$Driver = QuickBooks_Driver_Singleton::getInstance();
		
		// Figure out what SQL table this object came from
		$map = array();
		$others = array();
		QuickBooks_SQL_Schema::mapToSchema(trim(QuickBooks_Utilities::objectToXMLElement($extra['object'])), QUICKBOOKS_SQL_SCHEMA_MAP_TO_SQL, $map, $others);
			
		$table = QUICKBOOKS_DRIVER_SQL_PREFIX_SQL . $map[0];
		
		// We just need to set the voided flag on the transaction
		$update = array(
			QUICKBOOKS_DRIVER_SQL_FIELD_FLAG_VOIDED => 1, 
			'AmountDue' => 0.0, 
			'Amount' => 0.0, 
			'OpenAmount' => 0.0, 
			'Amount' => 0.0, 
			'Subtotal' => 0.0, 
			'TotalAmount' => 0.0, 
			'BalanceRemaining' => 0.0, 
			'SalesTaxTotal' => 0.0,
			);
		
		$where = array(
			array( QUICKBOOKS_DRIVER_SQL_FIELD_ID => $ID ), 
			);	
		
		// Update the SQL table to indicate it was voided
		$Driver->update($table, $update, $where);				
		
		return true;
	}
public static function TxnVoidResponse ( $ requestID , $ user , $ action , $ ID , $ extra , & $ err , $ last_action_time , $ last_actionident_time , $ xml , $ idents , $ config = array ( ) ) { $ Driver = QuickBooks_Driver_Singleton :: getInstance ( ) ; // Figure out what SQL table this object came from $ map = array ( ) ; $ others = array ( ) ; QuickBooks_SQL_Schema :: mapToSchema ( trim ( QuickBooks_Utilities :: objectToXMLElement ( $ extra [ 'object' ] ) ) , QUICKBOOKS_SQL_SCHEMA_MAP_TO_SQL , $ map , $ others ) ; $ table = QUICKBOOKS_DRIVER_SQL_PREFIX_SQL . $ map [ 0 ] ; // We just need to set the voided flag on the transaction $ update = array ( QUICKBOOKS_DRIVER_SQL_FIELD_FLAG_VOIDED => 1 , 'AmountDue' => 0.0 , 'Amount' => 0.0 , 'OpenAmount' => 0.0 , 'Amount' => 0.0 , 'Subtotal' => 0.0 , 'TotalAmount' => 0.0 , 'BalanceRemaining' => 0.0 , 'SalesTaxTotal' => 0.0 , ) ; $ where = array ( array ( QUICKBOOKS_DRIVER_SQL_FIELD_ID => $ ID ) , ) ; // Update the SQL table to indicate it was voided $ Driver -> update ( $ table , $ update , $ where ) ; return true ; }
Receive a response from QuickBooks about a voided transaction

@return boolean
Receive a response from QuickBooks about a voided transaction