fix: fixed spelling

This commit is contained in:
Anurag Mishra 2019-04-16 16:52:55 +05:30 committed by Nabin Hait
parent 733ff48d51
commit 35e52b5596
2 changed files with 13 additions and 0 deletions

View File

@ -597,3 +597,4 @@ erpnext.patches.v10_0.item_barcode_childtable_migrate # 16-02-2019
erpnext.patches.v12_0.move_item_tax_to_item_tax_template
erpnext.patches.v11_1.set_variant_based_on
erpnext.patches.v11_1.woocommerce_set_creation_user
erpnext.patches.v11_1.set_salary_details_submittable

View File

@ -0,0 +1,12 @@
from __future__ import unicode_literals
import frappe
import itertools
def execute():
salary_structure = frappe.get_all("Salary Structure", filters={"docstatus": 1}, as_list=1)
salary_structure = list(itertools.chain(*salary_structure))
salary_structure = "', '".join(map(str, salary_structure))
query = ''' update `tabSalary Detail` set docstatus=1 where parent in ('{0}')'''.format(salary_structure)
frappe.db.sql(query)