I'm working on a quotation software. It basically creates quotations for customers based on certains ProductModel
that contains n
Plan
that contains n
PriceRange
Edit:
Here's a ER diagram of the current DB
When you create a quotation, you select 1 or many PriceRange
s for it. The thing is those PriceRanges
attribute's values can be modified by an user. If they change an attribute's value, previous quotation should maintain the value it was created with (Along with the Plan and ProductModel attribute's values it was created with).
We tried creating a table called QuotationDataParam
that contain each attribute for the other 3 tables (ProductModelName, Description, PlanName, RangeLow, RangeHigh, Bounty and Fine). But that way you can't group a PriceRange
by Plans
, nor can group Plans
by ProductModel
.