Items are comes in Piece and Boxes.
e.g
Suppose,
- I have purchase 100 piece (tablet) of medicineX.
- I have purchase one Box which contain 50 medicineY.
Now item dispense by piece wise only.
Means MedicineX will be given to customer by how much piece they demands one or two or five as per their demands.
Same for MedicineY, I will open the Box of 50 medicine and will give to customer as they demands means 2 , 5 Piece, …etc
Now I required to have a Table in SQL-Server Database.
I have confusion in what are the field should be in table I will create.
Please help…thanks……
Usually, you keep the stock quantity in the smallest possible unit (i.e. pieces) and have a second field for the box size (and even more fields for tray size, pallet size if it matters).
For example, a stock item with “quantity=350”, “boxsize=50” means that you have 7 boxes of 50 pieces each. You could also have “quantity=343”, “boxsize=50”, which means you have 6 original boxes of 50 and an opened box with 43 pieces left.