O.K. This one's complicated, i hope i can explain this in an understandable way.
I'm working on an exsisting Database system, with customers, inventory, etc.. The problem is, is that there's a file for all the inventory items, and a file for all the price codes ( which is all the parts with a code at the end to specify the customers price). That makes it hard to give certain customers different prices, because then to start a new price code for a customer, we have to duplicate every part in the inventory and add a new code, and change all new prices.
Now, I've been working on a new system, that has all inventory in ONE file, and different fields for each price code. So if we want a new price code for a customer, i just add a new field. I just can't figure out how to pull a price from the inventory for a part, according to which price code the customer has specified in the customer database. (example) customer code = code1 (cust. dat.), then use price code1 (inv. dat. code1 field) for part#4.
Does this make sense? Maybe there's is an easier, more efficient approach that would work better!?
I'm working on an exsisting Database system, with customers, inventory, etc.. The problem is, is that there's a file for all the inventory items, and a file for all the price codes ( which is all the parts with a code at the end to specify the customers price). That makes it hard to give certain customers different prices, because then to start a new price code for a customer, we have to duplicate every part in the inventory and add a new code, and change all new prices.
Now, I've been working on a new system, that has all inventory in ONE file, and different fields for each price code. So if we want a new price code for a customer, i just add a new field. I just can't figure out how to pull a price from the inventory for a part, according to which price code the customer has specified in the customer database. (example) customer code = code1 (cust. dat.), then use price code1 (inv. dat. code1 field) for part#4.
Does this make sense? Maybe there's is an easier, more efficient approach that would work better!?