database - Stock movement in PHP -


I have a software in PHP and Postgrades that I use for invoicing I am running a stock management system I have made that I am trying to create a stock movement page where I can see when a part came, where it was released and when and when was given credit (if it was). I am running 5 tables for stock. My main part is part2vendor, parts, expense, wo_parts and int_part_issue. When I receive the stock, this table goes into Part Vendor 2 (the increase in the number of increments increases) expenditure table provides details of the part number, supplier invoice and date received. Wo_parts stores the part number issued to a program Int_part_issue occurs when I make stock adjustments or use any part internally. I am looking to create a PHP table which lists the part of the 'Paper Trail' (in the order of the date). If necessary I can tell you table names and columns Thank you.

Looks like you need a simple history table? Column

  part_history id part_id date_modified (timestamp) operation (or maybe action_id if you have a working table) vendor_id  

and when you create a new Receive the part,

  INSERT (ID, Part_ID, Action, ADAd, ADI, ADAD) Vendor_id) 46565, 5757575, "Purchased", 757575  

For any part you can rely on history, unrecognized ID

date-modified DE Sort by Sasi.


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -