Dear R937,
Quote:
|
Originally Posted by r937
solution b) lets you track only price changes, so solution a) seems more flexible
also, for solution b), you'll need an effective_from column
|
Regarding B), yes, you are righ we should insert a ART_Date_from field.
Doing this change, would option B) be more suittable for a data base design?
Dear rajiravi,
Regariding you questions, by deactivating an article I meant change value of ART_Active from True to False.
Primary key would be ART_Code.
If we change price, another code would be created.
Eg
Code Name Supplier Price Active
----------------------------------
0001AA Art1 001 15.3 True
0002AA Art2 002 80.3 True
If I change price of Art1 to 15.9 then we will have
Code Name Supplier Price Active
----------------------------------
0001AA Art1 001 15.3
False
0002AA Art2 002 80.3 True
0001AB Art1 001 15.9 True
Orders made before price change, would not be affected.
Orders made after, would use the new code.
Thanks & Regards.