2019-04-16 11:22:55 +00:00
|
|
|
from __future__ import unicode_literals
|
2021-09-02 11:14:59 +00:00
|
|
|
|
2019-04-16 11:22:55 +00:00
|
|
|
import frappe
|
|
|
|
|
2021-09-02 11:14:59 +00:00
|
|
|
|
2019-04-16 11:22:55 +00:00
|
|
|
def execute():
|
2019-04-22 05:46:47 +00:00
|
|
|
frappe.db.sql("""
|
|
|
|
update `tabSalary Structure` ss, `tabSalary Detail` sd
|
|
|
|
set sd.docstatus=1
|
|
|
|
where ss.name=sd.parent and ss.docstatus=1 and sd.parenttype='Salary Structure'
|
|
|
|
""")
|