[fix] update timestamps and relink communication for timesheet

This commit is contained in:
RobertSchouten 2016-10-07 11:03:04 +08:00 committed by GitHub
parent ef4e41380b
commit e0a636c081

View File

@ -318,3 +318,4 @@ erpnext.patches.v7_0.set_party_name_in_payment_entry
execute:frappe.db.sql("update `tabTimesheet` ts, `tabEmployee` emp set ts.employee_name = emp.employee_name where emp.name = ts.employee and ts.employee_name is null and ts.employee is not null")
execute:frappe.db.sql("delete from `tabTimesheet Detail` where NOT EXISTS (select name from `tabTimesheet` where name = `tabTimesheet Detail`.parent)")
erpnext.patches.v7_0.update_mode_of_payment_type
finally:erpnext.patches.v7_0.update_timesheet_modified_created