Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Passing a Subtotal to an Invoice

Featured Replies

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

Subtotal in Invoice.jpg

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

  • Author

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

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.