php - Inventory with multi - unit support feature -
i have been developing inventory system (php codeigniter & mysql), have setup except 1 feature 1 of clients wants implement system - multi - unit support feature system.
currently system supports single unit per item per transaction:
item_desc: item1 default_unit: pc reorder: 1 in_stock: 25 remain: 25
in multi - unit feature, become:
item_desc: item1 default_unit: pc big_unit: pack pack_size: 50 reorder: 1 in_stock: 25 pack remain: 24 pack 5 pc
can give me hint on easy way implement this? want know start on thing. appreciate if share idea regarding on 1 :)
we launched v2 of our website , i've gone through 8 months of kinds of questions myself. best way separate tables products, inventory , listings.
products holds product specific information only, things never change. inventory holds information current inventory only, ie quantity on hand, backorder, location in warehouse etc. listings how handle multi item support. table hold listing information , draw other 2 tables product , quantity data. you'd have basic table structure this
products
- productid
- productname
- productmodel
- productdescription
inventory
- inventoryid
- productid
- quantityonhand
- location
listings
- listingid
- inventoryid
- quantityinlisting
- numberoflistings
- price
our company sells lot of preowned things listings change regularly, set listings auto-populate based on inventory if you're selling new things restock. doing way means don't end ton of data duplication if created products multiples. allows sell item in quantity , set prices quantities manually.
Comments
Post a Comment