Welcome Guest, Not a member yet? Register   Sign In
FIFO/LIFO funtion/class on CI
#1

[eluser]Subekti Pranoto[/eluser]
suppose there is TABLE `inventory' (`RecId` varchar(15), `code` varchar(15), 'price' int(21), 'quantity' int(11))

Are there any code on CI (library/ helper) that can handle FIFO/LIFO function, for inventory purpose?
#2

[eluser]TheFuzzy0ne[/eluser]
Not that I know of. Should be simple enough to implement yourself in your model.
#3

[eluser]Daniel Moore[/eluser]
Seems assigning an auto-incrementing index for each item placed in inventory makes it simple enough to get the max index (LIFO) or the min index (FIFO).




Theme © iAndrew 2016 - Forum software by © MyBB