I’ve got a table of rates with “effectivity dates”. Such that when an order comes in, I need to find the “current” rate associated with that order, on the order’s date. My structure so far is as follows:
Table Order
- Line Items (Link to Order Line Items)
- Order Date
Table Order Line Item
- Order (Link to Orders)
- Order Date (Lookup to Orders.Date)
- Line Item Total
- Line Item Vendor (link to Vendor)
- Effective Vendor Rate (?????HOW????)
Table Vendor
- Name
- Rates (Link to Vendor Rates)
Vendor Rate
- Start Date
- End Date
- Rate (Percentage)