shyamsundar
Programmer
Hi Techie Guys/Gals,
I am developing Inventory system in MS-Access, I recently switched from foxpro for DOS to MS-Access. I need your help on this. Before asking help, let me describe how i designed the system.
I have 6 tables namely Master Item, Ledger, Receipts,Receipt_item, Issues and Issu Item.
1.Master Item consists of ItemCode,ItemName,OpeningBalance & Present Balance.(I want the present balance is automtically updated (i.e added when recieved, substracted when issued)
2.Ledger consists of ItemCode,Date,Price,OpeningBalance,Present Balance
(The difference between master & ledger is, I can have same item with different prices, obviously on different dates, that is why i included date field here).
3. Receipt consist of Rect_no,Rect_date,Rect_from
4. ReceiptItem - Rect_no(related with receipt table),item_code, price & Quantity
5. Issue consist of ISS_no,ISS_date,ISS_to
6. IssueItem - Iss_no(related with Issue table),item_code, Quantity Issued.
Now what I want is...
While recieving each item, it will look into master table for item code and update(add)quantity. Then look into ledger table for item code and price, if itemcode and price in receipt matches in ledger it will just update (add) quantity to item, else it will add a new row with itemcode,receipt date,price and quantity from rect_item)
And, while issueing, it will look into master table for item code and update(sustract)quantity. Then look into ledger filter for issued item code ordered by date, and issue accordingly. for example the issue quantity is 5 and your ledger rows are
C001 12-12-2002 $55.60 2
C001 12-13-2002 $56.10 4
Then it should take (55.60 x2)from 1st row and (56.10 x 3) from second row.
I hope i am clear. Any help is highly appreciated, suggestion to change the above logic is also highly appreciated.
Thanx in advance
Shyam
cwizshyam@yahoo.com
I am developing Inventory system in MS-Access, I recently switched from foxpro for DOS to MS-Access. I need your help on this. Before asking help, let me describe how i designed the system.
I have 6 tables namely Master Item, Ledger, Receipts,Receipt_item, Issues and Issu Item.
1.Master Item consists of ItemCode,ItemName,OpeningBalance & Present Balance.(I want the present balance is automtically updated (i.e added when recieved, substracted when issued)
2.Ledger consists of ItemCode,Date,Price,OpeningBalance,Present Balance
(The difference between master & ledger is, I can have same item with different prices, obviously on different dates, that is why i included date field here).
3. Receipt consist of Rect_no,Rect_date,Rect_from
4. ReceiptItem - Rect_no(related with receipt table),item_code, price & Quantity
5. Issue consist of ISS_no,ISS_date,ISS_to
6. IssueItem - Iss_no(related with Issue table),item_code, Quantity Issued.
Now what I want is...
While recieving each item, it will look into master table for item code and update(add)quantity. Then look into ledger table for item code and price, if itemcode and price in receipt matches in ledger it will just update (add) quantity to item, else it will add a new row with itemcode,receipt date,price and quantity from rect_item)
And, while issueing, it will look into master table for item code and update(sustract)quantity. Then look into ledger filter for issued item code ordered by date, and issue accordingly. for example the issue quantity is 5 and your ledger rows are
C001 12-12-2002 $55.60 2
C001 12-13-2002 $56.10 4
Then it should take (55.60 x2)from 1st row and (56.10 x 3) from second row.
I hope i am clear. Any help is highly appreciated, suggestion to change the above logic is also highly appreciated.
Thanx in advance
Shyam
cwizshyam@yahoo.com