2
0
mirror of https://github.com/frappe/books.git synced 2024-12-23 03:19:01 +00:00

make default date as function

This commit is contained in:
Ankit Singhaniya 2021-12-14 23:29:36 +05:30 committed by Alan
parent 384c238583
commit 4bfa54b3d2

View File

@ -30,7 +30,7 @@ export default {
size: 'small',
placeholder: 'From Date',
fieldname: 'fromDate',
default: DateTime.local().minus({ months: 3 }).toISODate(),
default: () => DateTime.local().minus({ months: 3 }).toISODate(),
},
{
fieldtype: 'Date',
@ -38,7 +38,7 @@ export default {
size: 'small',
placeholder: 'To Date',
fieldname: 'toDate',
default: DateTime.local().toISODate(),
default: () => DateTime.local().toISODate(),
},
],
linkFields: [