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.
This commit is contained in:
Javier Wong 2016-03-08 15:51:33 +08:00 committed by Anand Doshi
parent ba7b05ad27
commit 102f9062e8

View File

@ -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: