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.

Compare to prior invoices

Featured Replies

Invoices are flagged with DocType = Sale if commissions should be considered (based upon items sold). They get a special commission if there have been no other invoices with DocType = Sale for that Customer within one year. The current invoice would qualify for special commission also if it's the very first order (and it's also DocType Sale) -- no prior invoices.

I created a date calc which takes the Ship Date and subtracts one year. It's called 1YearAgo.

I've created another copy of invoices called Commissions sorted on ShipDate descending and joined on:

CustomerCode = CustomerCode

DocType = DocType (Doc type only contains words SALE or is blank)

1YearAgo >= commissions:ShipDate

It doesn't work. I need to be able to view each invoice and have it look backwards to see if it should receive special commissions. How please? Do I need use script instead? Tried everything - desperate.

  • Author

I realized I was trying to split and get two results (NO prior invoices and invoices greater than a year). I reversed my thinking and related on any customer invoices that happened during that year then use a calc to find no relationship. it's giving the right results but causes the portal to draw so slowly I don't want to use it.

I guess I'll run a script to set a regular invoice field with the calc so I won't have to display it. Both the calc and the relationship are quite ugly and slow but boss need answers in the morning. crazy.gif If anyone knows a better way I'd appreciate suggestions anyway ... maybe I'll try auto enter after this script finishes to keep it up to date. smile.gif

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.