apprentice
Registered User.
- Local time
- Today, 08:34
- Joined
- Jan 13, 2015
- Messages
- 27
I am setting up a inventory database and i will like the cost of the items to be calculated using FIFO. Can anyone help me with some codes?
Sample tables:
PARTS TABLE:
part code
description
cost
quantity on hand
PART TYPES
part type id
party type
INVENTORY
invent id
location
reorder quantity
INVOICE
id
date
part code
part type
qty
cost
ext cost
NB
For every item i will like the previous cost to be charged before the new cost. eg. if 10 pens where entered at $2 and another 5pens were entered at $4 each and 1 need 11 pens, i want the first 10 to be charged at $2 each and one at $4.
i hope i explained it clearly.
Sample tables:
PARTS TABLE:
part code
description
cost
quantity on hand
PART TYPES
part type id
party type
INVENTORY
invent id
location
reorder quantity
INVOICE
id
date
part code
part type
qty
cost
ext cost
NB
For every item i will like the previous cost to be charged before the new cost. eg. if 10 pens where entered at $2 and another 5pens were entered at $4 each and 1 need 11 pens, i want the first 10 to be charged at $2 each and one at $4.
i hope i explained it clearly.