From 102f9062e88a687258e63bee1bc9d92de3a1b016 Mon Sep 17 00:00:00 2001 From: Javier Wong Date: Tue, 8 Mar 2016 15:51:33 +0800 Subject: [PATCH] Whitelist get_month_details This is useful when manually pulling the salary structure in custom scripts for processing of other customized deductables or perhaps contributions. --- erpnext/hr/doctype/process_payroll/process_payroll.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/hr/doctype/process_payroll/process_payroll.py b/erpnext/hr/doctype/process_payroll/process_payroll.py index 13516b693c..a71200cb57 100644 --- a/erpnext/hr/doctype/process_payroll/process_payroll.py +++ b/erpnext/hr/doctype/process_payroll/process_payroll.py @@ -188,7 +188,7 @@ class ProcessPayroll(Document): return journal_entry.as_dict() - +@frappe.whitelist() def get_month_details(year, month): ysd = frappe.db.get_value("Fiscal Year", year, "year_start_date") if ysd: