Skip 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.
FileMaker 2026 Released

Retrieving invoices linked to a payment to check if the payment balance is zero

Featured Replies

Hi,

I am desperately trying to retrieving invoices linked to payments to check if the payment balance is zero in order to skip those specific payments when I then try to link new imported invoices into payments with balance <>0.

I use the scripts below but it does not return me the list of invoices applied to the single payments to check if the total equal the payment total amount. Where is the problem with the script?

Thank yo so much.

Michele Annoni

image.png

Hi Michele,

It looks like you might be trying to query for the payments that have the full name of “room_no”, but it might not be pulling everything due to a missing add of “IncludeRetElement”.

Try adding after PCQB_RqAddFieldWithValue( “IncludeLineItems” ; True ), the following:

Set Variable [ $$Result; PCQB_RqAddFieldWithValue( “IncludeRetElement” ; “AppliedToTxnRet” )

That should instruct QuickBooks to also provide any transactions that the payment has been applied to, which should point you to the invoices that were paid by the received payment.

-PCI Team

  • Author

Dear Sir,

I changed like this but still not working

Link invoices to payments.jpg

  • Author

I tried again with this script but, if I include the two linen in red after the EXECUTE it will not return the "TxnID". If take them out it returns the "TxnID.

image.png

  • Author

Dear All,

disregard this issue ticket. I solved the problem.

Thank you for your support.

Michele Annoni

Create an account or sign in to comment

Account

Navigation

Search

Search

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.