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.

Multi-Predicate or Alternative Key

Featured Replies

Basic database

Customer --< Location ---< Invoices

UID keys to foreign keys pretty typical...

However the billing company is changing for many locations - it was a distributorship that is winding down and each location are going to be billed directly..

To preserve historical data. one thought would be to ad a multi predicate between locations and Invoices so that oldCustomer / location invoices remain linked and when the new   customer UID is assigned to the location only new invoices are connected.

other though was to add GetContainerAttribute ( List ( customer_UID ; location_id)  ; "md5" ) to the location table and use that as the key between location & invoice.

they both do the trick but I am probably making it much more convoluted then need be.

OR

the real solution would be to create a script to duplicate the location assign a new customer - and then setting status on the prior customer / location to closed. and of course script duplicate all the associated tables that are needed for future invoices. But then trying to consolidate reports by location / company will be fun. 

 

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.