Database design for Inventory & Billing
Hi,
I am working on a Inventory & Billing Management System. I am having some problem with the design of some tables. The problems are as follows
1. I have a product table. Where I am storing the product details, but the problem is that each product have an unique serial no, generated by the manufacturer. Now I want to store the serial number in my database. What should be my approach for this?
2. The second problem is with my billing section. I would like to save each and every bill generated from my system for future use. Now any bill may have a single item (single quantity)/ single item (multiple quantity)/ multiple items(single quantity)/multiple items (multiple quantity). Now I would like to have the serial number(s) also be included in the bill, for future reference. What would be the table structure for this?
Please help
anirban1087
Junior Poster in Training
54 posts since Aug 2010
Reputation Points: 10
Solved Threads: 0
Yes you are right. I can save the purchase order. In fact I am doing the same thing. But it is also true that 10 pieces of same product will come with 10 different serial number. Just think of any electronics goods. They all come with unique serial number. And I am right now unable to work that out.
anirban1087
Junior Poster in Training
54 posts since Aug 2010
Reputation Points: 10
Solved Threads: 0
Hi,
Thanks for your prompt reply. I have also agree with you. May be this is the only solution to this kind of problems. Once again thanks a lot.
anirban1087
Junior Poster in Training
54 posts since Aug 2010
Reputation Points: 10
Solved Threads: 0
in product table you can store manufacturer serial number and use as per your needs, no need to create another table
crishjeny
Junior Poster in Training
98 posts since Nov 2010
Reputation Points: 0
Solved Threads: 3