Hi all,
A problem I have, and after much thought have still been unable to rectify - hence I ask for some impartial advice and suggestions...
I am writing a pseudo-MRP application, and need to store info. on products to be produced - hence the BOM. However, the company is a design-to-order company, and all orders (pretty much) are unique. Additionally, I want to store details of both processing instructions and purchased items.
Due to the unique nature of the parts the intermediate stages of the products, between the purchased parts and final item, do not have part numbers assigned to them.
Hence my idea was to use the order number as the basis for identifying each stage of the BOM, and then for each level down add further fields to identify the structure. e.g.
ID
ID-01
ID-01-01
ID-01-02
ID-02
etc.
And store each level in a seperatre table, so that each transitory part would be uniquely identified, but would also make sense when stored - making the BOM structure obvious. So there would be the main order table with the main info. customer ref, order date etc. then linked tables relating to the lower levels, with info on the processing steps, processing time, machine etc.
However, some items are purchased items and have different info. related to them than the processing details, e.g. purchasing part number.
Which would then require another set of tables to the processing tables.
Is there an easier way than this (surely), or will I just have to try to construct something which makes sense in code, using alot of queries?
I'm stumped, so any suggestions welcomed.
Plus, sorry this might not make too much sense, I'm not the best at explaining things!
A problem I have, and after much thought have still been unable to rectify - hence I ask for some impartial advice and suggestions...
I am writing a pseudo-MRP application, and need to store info. on products to be produced - hence the BOM. However, the company is a design-to-order company, and all orders (pretty much) are unique. Additionally, I want to store details of both processing instructions and purchased items.
Due to the unique nature of the parts the intermediate stages of the products, between the purchased parts and final item, do not have part numbers assigned to them.
Hence my idea was to use the order number as the basis for identifying each stage of the BOM, and then for each level down add further fields to identify the structure. e.g.
ID
ID-01
ID-01-01
ID-01-02
ID-02
etc.
And store each level in a seperatre table, so that each transitory part would be uniquely identified, but would also make sense when stored - making the BOM structure obvious. So there would be the main order table with the main info. customer ref, order date etc. then linked tables relating to the lower levels, with info on the processing steps, processing time, machine etc.
However, some items are purchased items and have different info. related to them than the processing details, e.g. purchasing part number.
Which would then require another set of tables to the processing tables.
Is there an easier way than this (surely), or will I just have to try to construct something which makes sense in code, using alot of queries?
I'm stumped, so any suggestions welcomed.
Plus, sorry this might not make too much sense, I'm not the best at explaining things!