hi all ,
try to execute this query directly from terminal it’s work perfect , but when I place it into the code using frappe.db.sql. the table not effected and no errors popup
can anyone recheck it ?
frappe.db.sql(“”“update
tabSales Person Commission
t1, (select name, employee_name fromtabSalary Slip
where MONTHNAME(CURDATE())=MONTHNAME(start_date)) t2 set t1.salary_slip=t2.name where ifnull(salary_slip,‘’)=‘’ and t1.sales_person=t2.employee_name”“”)
thanks in advance
best regards