Results 1 to 5 of 5

Thread: Inventory Stock Design

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Oct 2006
    Posts
    30

    Inventory Stock Design

    hi..may i know how the right design for inventory stock if there are transaction between branches.What i have think that every branch must have MasterStock for every item.I need to count every single item for every branch and also need to total every single item for all branches?I dont know how to design the table.

    Example:

    Branch A -------->Branch B--------> Branch C and so on.
    Stock IN Stock Out

    Please someone who have done this similar program before.I really need your help.Thanks

  2. #2
    PowerPoster
    Join Date
    Sep 2003
    Location
    Edmonton, AB, Canada
    Posts
    2,629

    Re: Inventory Stock Design

    uhh.. are you talking about designing a MySQL table to do what you want? or designing an HTML table to do that?

    give some more information if you could.
    Like Archer? Check out some Sterling Archer quotes.

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Oct 2006
    Posts
    30

    Re: Inventory Stock Design

    Quote Originally Posted by kows
    uhh.. are you talking about designing a MySQL table to do what you want? or designing an HTML table to do that?

    give some more information if you could.
    Thanks..i mean Mysql table. I dont know how to do it...can u give me an idea..Thanks

  4. #4
    PowerPoster
    Join Date
    Sep 2003
    Location
    Edmonton, AB, Canada
    Posts
    2,629

    Re: Inventory Stock Design

    well, from what you told me i only understand that you need a table that references branches and inventory items.. i don't know what you mean by everything must have a "masterstock." but from your example, you need stock in and stock out? i don't understand. are they the amount of stock in and out? is it a boolean (either incoming or outgoing)? if you're asking for someone to design a table for you, you need to explain your ideas clearly.

    soo.. taking a blind stab in the dark: assuming you want branch name, inventory name, stock in/out, and the date, you will need four fields, branch and inventory, both of them being either varchars or texts, date being an integer with a max length of 11 (length of unix timestamp), and stockmode as an enum with the values incoming or outgoing. i made the table for you:
    Code:
    CREATE TABLE `stock_inventory` (
    `branch` TEXT NOT NULL ,
    `inventory` TEXT NOT NULL ,
    `mode` ENUM( 'incoming', 'outgoing' ) NOT NULL ,
    `date` INT( 11 ) NOT NULL
    ) ENGINE = MYISAM ;
    Like Archer? Check out some Sterling Archer quotes.

  5. #5

    Thread Starter
    Junior Member
    Join Date
    Oct 2006
    Posts
    30

    Re: Inventory Stock Design

    Thanks a lot..i try it now.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width