From 9f4ca1fb9e01698a88058a2f603448ce6d172e87 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Tue, 20 Sep 2016 16:59:15 +0530 Subject: [PATCH] set posting date in salalry slip --- erpnext/hr/doctype/salary_slip/test_records.json | 1 + erpnext/patches.txt | 2 ++ 2 files changed, 3 insertions(+) diff --git a/erpnext/hr/doctype/salary_slip/test_records.json b/erpnext/hr/doctype/salary_slip/test_records.json index ba59dd1378f..20cef3db185 100644 --- a/erpnext/hr/doctype/salary_slip/test_records.json +++ b/erpnext/hr/doctype/salary_slip/test_records.json @@ -36,6 +36,7 @@ ], "employee": "_T-Employee-0001", "employee_name": "_Test Employee", + "posting_date": "2013-02-01", "fiscal_year": "_Test Fiscal Year 2013", "month": "01", "payment_days": 31, diff --git a/erpnext/patches.txt b/erpnext/patches.txt index 73d1f832dd0..c9ae6e0ba3e 100644 --- a/erpnext/patches.txt +++ b/erpnext/patches.txt @@ -330,3 +330,5 @@ execute:frappe.db.sql("update `tabTimesheet` ts, `tabEmployee` emp set ts.employ erpnext.patches.v7_1.update_lead_source erpnext.patches.v7_1.fix_link_for_customer_from_lead erpnext.patches.v7_0.update_mode_of_payment_type +execute:frappe.reload_doctype("Salary Slip") +execute:frappe.db.sql("update `tabSalary Slip` set posting_date=creation")