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.

Relating two records to a single record

Featured Replies

How can I have two related Tables (Statements and Orders) so that a payment and a refund (two different records) in Statements will populate just the one record in Orders?

The Tables are related by the number generated automatically in Orders. The number is entered manually in the relevant Statement record.

The idea being that when the payment and, if applicable, refund appear in the Statement, they are numbered and will show in the Order record in order to validate the item and complete the Order.

I can make it work with a payment or refund but not both.

Can I do this?

So let me get this straight.

When you create a statement you want to automatically create an order as well.

But when you add a refund to the statement you do not want to create an order (of course)

I would create a separate table occurrence based on the statement table between your statement table and your orders table. Something like:

Orders = StatementToOrders =(greater than zero) StatementLineItems

So your StatementToOrders table occurrence has only the items that are greater than zero (sales) and nothing less than zero (refunds)

Then adjust your "allow records to be created" appropriately.

  • Author

Order is created first but payment may not appear in Statements for a few weeks.

so how are you creating a statement via a script?

if so my solution still stands create a separate TO with a greater than relationship. Have your script look at these records that way it only sees the the records that are a charge not a refund.

Create an account or sign in to comment

Important Information

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

Account

Navigation

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.