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.

Featured Replies

Hi all

I'm looking to display to the user when the last payment was made for a lease (from the invoice table) to include date and amount paid. 

The payment table is related to the lease table by a LeaseID. Inside the invoice table I have Type (which defines the record as a "payment" or "charge"), Date, and Remittance, which is what needs to be shown. I'm assuming this would need to be an SQL statement where it gets the latest date from the invoice table where the record is marked as "payment" in the Type field. Then an additional calculation field to show the remittance amount.

Can this be done natively? 

In the payment table create a DatePaid field calculation: If ( Payments::Type = "Payment" ; Date )  then in the script just calculate Max ( DatePaid ) setting a field.

You could also do this with a WHILE function and avoid having to add extra calculation fields. 

This post was recognized by Ocean West!

comment was awarded the badge 'Great Support' and 1 points.

Actually, you do not need to add anything to your schema for this. Just place a one-row portal to the payments table on the lease layout, sort it by date, descending (if the relationship is not sorted that way already) and filter it to show only records whose type is "payment".

 

  • Author

Both techniques solved the issue. Thank you guys.

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.