Added mandatory feilds to the report

This commit is contained in:
Anurag Mishra 2019-03-12 11:00:02 +05:30
parent 34e1f92a7e
commit 9a1adc7c49
2 changed files with 10 additions and 4 deletions

View File

@ -9,18 +9,21 @@ frappe.query_reports["Employee Billing Summary"] = {
label: __("Employee"),
fieldtype: "Link",
options: "Employee",
reqd: 1
},
{
fieldname:"from_date",
label: __("From Date"),
fieldtype: "Date",
default: frappe.datetime.get_today()
default: frappe.datetime.get_today(),
reqd: 1
},
{
fieldname:"to_date",
label: __("To Date"),
fieldtype: "Date",
default: frappe.datetime.add_days(frappe.datetime.get_today(), 30)
default: frappe.datetime.add_days(frappe.datetime.get_today(), 30),
reqd: 1
},
]
}

View File

@ -9,18 +9,21 @@ frappe.query_reports["Project Billing Summary"] = {
label: __("Project"),
fieldtype: "Link",
options: "Project",
reqd: 1
},
{
fieldname:"from_date",
label: __("From Date"),
fieldtype: "Date",
default: frappe.datetime.get_today()
default: frappe.datetime.get_today(),
reqd: 1
},
{
fieldname:"to_date",
label: __("To Date"),
fieldtype: "Date",
default: frappe.datetime.add_days(frappe.datetime.get_today(), 30)
default: frappe.datetime.add_days(frappe.datetime.get_today(), 30),
reqd: 1
},
]
}