Giter VIP home page Giter VIP logo

Comments (13)

amirsanni avatar amirsanni commented on June 14, 2024

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.

arieljosue avatar arieljosue commented on June 14, 2024

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.

amirsanni avatar amirsanni commented on June 14, 2024

Application=>Controllers=>Transactions.php. function nso_()

from mini-inventory-and-sales-management-system.

arieljosue avatar arieljosue commented on June 14, 2024

awesome thank you!

from mini-inventory-and-sales-management-system.

arieljosue avatar arieljosue commented on June 14, 2024

Hi good work.

I still have this issue. It still get the today's date.

from mini-inventory-and-sales-management-system.

amirsanni avatar amirsanni commented on June 14, 2024

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.

arieljosue avatar arieljosue commented on June 14, 2024

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.

arieljosue avatar arieljosue commented on June 14, 2024

I have done the latter but the value inserted was always current?

from mini-inventory-and-sales-management-system.

arieljosue avatar arieljosue commented on June 14, 2024

https://imgur.com/a/7EIZIB8

from mini-inventory-and-sales-management-system.

amirsanni avatar amirsanni commented on June 14, 2024

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.

arieljosue avatar arieljosue commented on June 14, 2024

Hi, I've done this from what I understand. Am I doing it right?

model --------------------------------------------------------

view --------------------------------------------------------

controller --------------------------------------------------------

from mini-inventory-and-sales-management-system.

arieljosue avatar arieljosue commented on June 14, 2024

I have an error "Oops! Bug? Unable to process your request. Please try again or report error"

from mini-inventory-and-sales-management-system.

amirsanni avatar amirsanni commented on June 14, 2024
  1. Check what the error is on your browser console.
  2. Did you send transDate from the client-side (JavaScript)?
  3. 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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.