i have my onAfterInsert event coded
sc_exec_sql("INSERT INTO hcm_emp_history (person_id, person_type, effective, pay_cd, amount) values ( {person_id}, {person_type}, {effective}, ‘pay’, 998 ) ; ");
But in the generated SC code (i grabbed in server) it missed the “)” (as below, AFTER 998) in file “EmployeeHistory_apl.php”
$nm_select ="INSERT INTO hcm_emp_history (person_id, person_type, effective, pay_cd, amount) values ( $this->person_id , $this->person_type , $this->effective , ‘pay’, 998;
It’s a serious bug and kindly fix it ASAP.
I am not able to proceed…