00 Day
00 Hour
00 Min
00 Sec

Gordian

Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • in reply to: Custom email class #72397
    Gordian
    Participant

    I registered my email class inside ‘class-emails.php’ and created file with my class inside ’email’ folder of HRM module. Is that enough or should I do anything else?

    P. S. Should I do include method in the class-emails.php to show location of my class file?

    in reply to: Custom Model. No pop up window. How to animate button #70176
    Gordian
    Participant

    Should I register my new form (\wp-content\wp-content\plugins\erp\modules\hrm\views\js-templates\violation-form.php) somewhere as it was made for my new model (in hrm.php)?

    P.S. I’ve done all modification in hrm.js, hrm.min.js, hrm.php and so on. But no result…

    • This reply was modified 4 years, 7 months ago by Gordian.
    in reply to: Syntax for updating data #70104
    Gordian
    Participant

    @mehedi,
    thanks for your help! I did it. I deleted ‘einformed’ variable from Class Employee protected data.

    in reply to: Syntax for updating data #70102
    Gordian
    Participant

    Thank you!

    Just to make it clear… I created a field in employees table. The name of field is ‘einformed’.
    I want this field to take parametr ‘no’ in case if posted date of birth (in the form) is not the same as it is in DB. So, ‘einformed ‘ variable doesn’t mentioned is the form. I’m trying to use it only in ‘update employee’ function.

    P.S. I’v added it to the employee model, but there is no success.

    in reply to: Syntax for updating data #70000
    Gordian
    Participant

    This is my code inside class-employee.php, update employee function of hrm module.

    //update user einformed if license_date was changed
    if ( isset( $posted[‘license_date’] ) && $posted[‘license_date’] !== $this->erp_user->license_date ) {

    $this->erp_user->update( [ ‘user_id’ => $this->user_id, ‘einformed’ => ‘no’ ] );

    if ( is_wp_error( $result ) ) {
    return $result;
    }
    }

Viewing 5 posts - 1 through 5 (of 5 total)

Contact Us

Reach out to us for any inquiry

You must enter full name
You must enter email
You must enter message

We received your query

We will reply to you very soon :)