<?php require_once dirname(__FILE__) . '/config.php'; require_once dirname(__FILE__) . '/views/header.tpl.php'; ?> <pre> <?php $InvoiceService = new QuickBooks_IPP_Service_Invoice(); $invoice_to_void = '{-34}'; //$invoice_to_void = 34; // just the integer will work too if ($resp = $InvoiceService->void($Context, $realm, $invoice_to_void)) { print ' Updated!<br>'; } else { print ' ' . $InvoiceService->lastError() . '<br>'; } /* print('<br><br><br><br>'); print("\n\n\n\n\n\n\n\n"); print('Request [' . $IPP->lastRequest() . ']'); print("\n\n\n\n"); print('Response [' . $IPP->lastResponse() . ']'); print("\n\n\n\n\n\n\n\n\n"); */ ?> </pre> <?php require_once dirname(__FILE__) . '/views/footer.tpl.php';