How does one handle situation when you have sales orders and items tables, and then at one point in time you have to change an item. The change will also show up on sales order that have that item. However, lets say that at the time the sales order was place the information was correct but changed later. I don’t want older SOs to change what they show for line items and I don’t want to have to make new items because it will confuse me later which item is correct.
I noticed that in OpenERP it does just that, keeps the name of part number and description on sales order even if you changed it after sales order was made.
If you are creating new database restructure your Item table. Create a table (for e.g.
ItemHistory). have aItemIDandItemTypeIDandDateCreatedFields on it.ItemID should be used for orders and
ItemTypeID+DateCreatedwill help you to get the current Item.