![]() only if you need to, and after you have the basics of your integration down (e.g. Since you're just getting started with QuickBooks development, I would HIGHLY RECOMMEND that you go with option 1. here because it's a required field for invoices. Create it (or use an existing item) via the QuickBooks UI (in QuickBooks choose Lists > Item List ).Similar to Ship Method, you have to either: You reference an item: Īnd QuickBooks is telling you that that item does not exist. This is a very similar error to the ShipMethod error above. The specified record does not exist in the list. QuickBooks error message: Invalid argument. If you want to send the ListID you'll have to query QuickBooks to get the ListID values back (they do not show in the QuickBooks UI).ģ140: There is an invalid reference to QuickBooks Item "item" in the Invoice line. I'd recommend you send the FullName only. Don't send both, it just makes errors more confusing. You should also decide whether you're going to send a ListID or a FullName. You could leave out the entirely if you don't want to set it at all.Make a ShipMethodAdd call to create the ship method (docs: ).In QuickBooks choose Lists > Customer & Vendor Profile Lists > Item List ) Go into the QuickBooks UI, and create a ship method named Fedex (This is probably your best choice, since Ship Methods tend to not change often and there's usually not too many of them.If you try to insert something and reference a foreign key that doesn't exist, you get an error. Think of ShipMethodRef/FullName (and/or ShipMethodRef/ListID) as a foreign key constraint. QuickBooks is, at it's core, a relational database. you need to send: 1.50ģ140: There is an invalid reference to QuickBooks Ship Method "Fedex" in the Invoice. Let's talk about the specific error messages you're getting:ģ040: There was an error when converting the amount "1.5" in the field "Amount"ĭollar amounts in QuickBooks have 2 decimal places. It looks like you're on the right track here. $Queue->enqueue(QUICKBOOKS_ADD_INVOICE, $primary_key_of_your_customer) įunction _quickbooks_invoice_add_request($requestID, $user, $action, $ID, $extra, &$err, $last_action_time, $last_actionident_time, $version, $locale)įunction _quickbooks_invoice_add_response($requestID, $user, $action, $ID, $extra, &$err, $last_action_time, $last_actionident_time, $xml, $idents)įunction _quickbooks_error_stringtoolong($requestID, $user, $action, $ID, $extra, &$err, $xml, $errnum, $errmsg) ![]() $Queue = new QuickBooks_WebConnector_Queue($dsn) $dsn = new QuickBooks_WebConnector_Server($dsn, $map, $errmap, $hooks, $log_level, $soapserver, QUICKBOOKS_WSDL, $soap_options, $handler_options, $driver_options, $callback_options) $handler_options = array( 'deny_concurrent_logins' => false, $soapserver = QUICKBOOKS_SOAPSERVER_BUILTIN $errmap = array(3070 => '_quickbooks_error_stringtoolong') I have added my sample code to create an invoice with non-inventory items: array( '_quickbooks_invoice_add_request', '_quickbooks_invoice_add_response' )) Please help me, how I can create an invoice with non-inventory items? I want to create an invoice with non-inventory items from my website to Quick books desktop application.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |