fix: Default dates in report

This commit is contained in:
Deepesh Garg
2024-04-24 16:59:51 +05:30
parent e0c8ff10da
commit c3244f009b
20 changed files with 47 additions and 42 deletions

View File

@@ -22,14 +22,14 @@ frappe.query_reports["Incorrect Serial No Valuation"] = {
fieldtype: 'Date',
fieldname: 'from_date',
reqd: 1,
default: frappe.defaults.get_user_default("year_start_date")
default: erpnext.utils.get_fiscal_year(frappe.datetime.get_today(), true)[1]
},
{
label: __('To Date'),
fieldtype: 'Date',
fieldname: 'to_date',
reqd: 1,
default: frappe.defaults.get_user_default("year_end_date")
default: erpnext.utils.get_fiscal_year(frappe.datetime.get_today(), true)[2]
}
]
};