print('qbXML SalesReceipt for QuickBooks qbXML US editions: ' . "\r\n"); print($SalesReceipt->asQBXML(QUICKBOOKS_ADD_SALESRECEIPT, null, QUICKBOOKS_LOCALE_UNITED_STATES)); print("\r\n\r\n"); print('qbXML SalesReceipt for QuickBooks qbXML Online Edition: ' . "\r\n"); print($SalesReceipt->asQBXML(QUICKBOOKS_ADD_SALESRECEIPT, null, QUICKBOOKS_LOCALE_ONLINE_EDITION)); exit; */ // Create a new Customer object $Customer = new QuickBooks_QBXML_Object_Customer(); // Set some fields $Customer->setFullName('Contractors:ConsoliBYTE, LLC:Keith Palmer'); $Customer->setCustomerTypeFullName('Web:Direct'); $Customer->setNotes('Test notes go here.'); print 'qbXML Customer for QuickBooks qbXML (latest version the framework supports): ' . "\r\n"; print $Customer->asQBXML(QUICKBOOKS_ADD_CUSTOMER); print "\r\n\r\n"; print 'qbXML Customer for QuickBooks qbXML US editions: ' . "\r\n"; print $Customer->asQBXML(QUICKBOOKS_ADD_CUSTOMER, null, QuickBooks_QBXML::LOCALE_UNITED_STATES); print "\r\n\r\n"; print 'qbXML Customer for QuickBooks qbXML Online Edition: ' . "\r\n"; print $Customer->asQBXML(QUICKBOOKS_ADD_CUSTOMER, null, QuickBooks_QBXML::LOCALE_ONLINE_EDITION); print "\r\n\r\n"; $Customer->setListID('1234'); $Customer->setEditSequence('5678'); print 'qbXML Customer (modification) for QuickBooks qbXML Online Edition: ' . "\r\n"; print $Customer->asQBXML(QUICKBOOKS_MOD_CUSTOMER, null, QuickBooks_QBXML::LOCALE_ONLINE_EDITION);