MICHELE ANNONI Posted November 29, 2021 Posted November 29, 2021 I am trying to transfer a Subtotal line of an Invoice from FM to QuickBooks using the FM Book Connector. What I pass is just the Line Item and the Description using the "InvoiceLineAdd" as I am expecting QuickBooks to automatically calculate the value of the Subtotal. But I get an error Code 3040 as per file attached. Any clue on how to deal with Subtotals? Thanks Michele Annoni
Geoffrey Gerhard Posted November 29, 2021 Posted November 29, 2021 Are you doing some kind of conversion in your error message? QB doesn't have an "Item Amount" element. When you write "...just the Line Item..." do you mean the FullName / ListID value of the ItemSubTotal? It might be useful to capture the value of PCQB_SGetXML ( "Request" ) to see what it contains. I'm guessing, having never attempted to pass an ItemSubtotal line to an Invoice, that the problem may trace to the "PCQB_RqAddFieldWithValue ( "Amount" ; ... ) function evaluating with a null value. I believe that function should be skipped when passing an ItemSubTotal Invoice LineItem. HTH! Geoffrey Gerhard Creative Solutions Incorporated 14000 Creekside Drive Matthews, NC 28105 704.814.6852
MICHELE ANNONI Posted November 30, 2021 Author Posted November 30, 2021 Dear Geoffrey, you were right. There was a flag that was not working correctly and so the program was passing the field "Amount" to the item "Subtotal". Once the flag was properly tested the field "Amount" was skipped and the "Subtotal" correctly flow into QBs. Many thanks Michele Annoni
Recommended Posts
This topic is 1080 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now