Ejemplo n.º 1
0
$NonInventoryItem->setPrice(25.25);

$API->addNonInventoryItem($NonInventoryItem, 'my_noninventory_item_add_callback');

$Account = new QuickBooks_Object_Account();
$Account->setName('My Test Account ' . mt_rand());
$Account->setAccountType(QUICKBOOKS_ACCOUNT_ACCOUNTTYPE_BANK);
$Account->setAccountNumber('1234fgc');

$API->addAccount($Account, 'callback', 25);
*/
$Class = new QuickBooks_Object_Class();
$Class->setName('My Test Class ' . mt_rand());
//print_r($Class);
//print($Class->asQBXML(QUICKBOOKS_ADD_CLASS . 'Rq'));
$API->addClass($Class, 'callback', 15);
//$API->getServiceItemByName('Test Name', 'callback');
//$API->getInventoryItemByName('Test Name', 'callback');
//$API->getNonInventoryItemByName('Test Name', 'callback');
/*
$SalesReceipt = new QuickBooks_Object_SalesReceipt();

$Invoice = new QuickBooks_Object_Invoice();
$Invoice->setOther('test of other');
$Invoice->setMemo('test of a memo');
$Invoice->setCustomerApplicationID(15);
$Invoice->setRefNumber(125);

$InvoiceLine1 = new QuickBooks_Object_Invoice_InvoiceLine();
$InvoiceLine1->setItemApplicationID(12);
$InvoiceLine1->setAmount(300.00);