Comments (13)
You'll have to edit the script to do this. The current date and time are used by default. To do it manually, add a field on the front-end where you can manually enter it, and then put that field as the transaction date in your DB table.
from mini-inventory-and-sales-management-system.
awesome thank you. can you tell me which script to edit for it? i'm new to codeigniter and I would really appreciate it if you can tell me
from mini-inventory-and-sales-management-system.
Application=>Controllers=>Transactions.php. function nso_()
from mini-inventory-and-sales-management-system.
awesome thank you!
from mini-inventory-and-sales-management-system.
Hi good work.
I still have this issue. It still get the today's date.
from mini-inventory-and-sales-management-system.
Did you do what I said initially? You'll need to make some modifications. Add a field on the client side for getting transaction date, send the input data to the server side, and use that data as transaction date on the server side/dB.
from mini-inventory-and-sales-management-system.
Hi amir. Sorry for the late reply. May I know where the can I remove the default value of transdate?
from mini-inventory-and-sales-management-system.
I have done the latter but the value inserted was always current?
from mini-inventory-and-sales-management-system.
from mini-inventory-and-sales-management-system.
Open application=>model=>transaction.php, function add, the transaction date is set on the line with $this->db->platform() == "sqlite3" ? $this->db->set('transDate', "datetime('now')", FALSE) : $this->db->set('transDate', "NOW()", FALSE);
You can remove/comment that line and have the transaction date sent to that function by the calling function and then include it in the $data array in function add. Note that the key must the column name in the table, in this case transDate.
from mini-inventory-and-sales-management-system.
Hi, I've done this from what I understand. Am I doing it right?
model --------------------------------------------------------
view --------------------------------------------------------
controller --------------------------------------------------------
from mini-inventory-and-sales-management-system.
I have an error "Oops! Bug? Unable to process your request. Please try again or report error"
from mini-inventory-and-sales-management-system.
- Check what the error is on your browser console.
- Did you send transDate from the client-side (JavaScript)?
- Ensure you send to and receive transDate in function insertTrToDb, then send it to the model from there.
from mini-inventory-and-sales-management-system.
Related Issues (20)
- Login failed HOT 2
- refund or cancel
- I cant login there is 404 issue in login HOT 1
- Currency Change Value HOT 2
- Can't login to the system demo HOT 2
- Demo login credentials is not work. HOT 2
- demo password HOT 8
- how to see/print barcode from items code HOT 2
- Credential problem on localhost HOT 5
- Not login on HOT 3
- Trying to get in touch regarding a security issue HOT 3
- 💥 Potential security vulnerability HOT 2
- New Development Demo HOT 1
- New version?
- transactions HOT 1
- Hello developers, can you add a version number?
- Can't login HOT 5
- Possible XSS vulnerabilies
- Neema
- The available quantity is always 0 for users of type 'basic', even though the quantity is not 0 in admin. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mini-inventory-and-sales-management-system.