Home
Forums
Members
Search
Help
New topics
Todays topics
Website
Welcome Guest, Not a member yet?
Register
Sign In
Login
Username:
Password:
Remember me
Lost Password?
CodeIgniter Forums
Archived Discussions
Archived Development & Programming
FIFO/LIFO funtion/class on CI
Share on Google
Share on Facebook
Share on Twitter
View a Printable Version
Subscribe to this thread
Add Poll to this thread
Send thread to a friend
Linear Mode
Threaded Mode
FIFO/LIFO funtion/class on CI
El Forum
Guest
#1
03-31-2009, 12:57 AM
[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?
El Forum
Guest
#2
03-31-2009, 03:25 AM
[eluser]TheFuzzy0ne[/eluser]
Not that I know of. Should be simple enough to implement yourself in your model.
El Forum
Guest
#3
03-31-2009, 06:55 AM
[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).
--------------------
Private Messages
User Control Panel
Who's Online
Search
Forum Home
General
-- News & Discussion
-- Events
-- Lounge
-- Regional User Groups
Using CodeIgniter
-- Installation & Setup
-- Model-View-Controller
-- Libraries & Helpers
-- Best Practices
-- Choosing CodeIgniter
-- General Help
CodeIgniter 4
-- CodeIgniter 4 Roadmap
-- CodeIgniter 4 Development
-- CodeIgniter 4 Feature Requests
-- CodeIgniter 4 Support
-- CodeIgniter 4 Discussion
-- CodeIgniter 4 Addins
Development
-- CodeIgniter 3.x
-- CodeIgniter 2.x
-- Issues
-- NetBeans Plugin
External Resources
-- Spotlight
-- Learn More
-- Jobs
-- Addins
Archived Discussions
-- Archived Libraries & Helpers
-- Archived Development & Programming
Theme © iAndrew 2016 -
Forum software by © MyBB