Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

This topic is 5845 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Hi,

How would you model the structure of the tables to know what was the price of a product in time? In a billing system it's important to keep the price up to date and also keep the price paid for a product for a specific time.

This is one of my approach

products (pkProductID, price (lookup from prices), ...)

prices (pkPriceID, fkProductIDprice, date, ...)

billDetail (fkProductID, fkBillID, price (lookup from product), ...)

Thanx for any other suggestion.

Posted

The price in Products is redundant. The line item (billDetail) can lookup directly from Prices, based on ProductID and either the date or just the most recent price (depending on whether you have future prices and/or bill retroactively).

Posted

To get the most recent price, I will need to create a script? I'm I right or there's another way?

This topic is 5845 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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