mirror of
https://github.com/frappe/books.git
synced 2025-01-11 02:36:14 +00:00
make default date as function
This commit is contained in:
parent
384c238583
commit
4bfa54b3d2
@ -30,7 +30,7 @@ export default {
|
|||||||
size: 'small',
|
size: 'small',
|
||||||
placeholder: 'From Date',
|
placeholder: 'From Date',
|
||||||
fieldname: 'fromDate',
|
fieldname: 'fromDate',
|
||||||
default: DateTime.local().minus({ months: 3 }).toISODate(),
|
default: () => DateTime.local().minus({ months: 3 }).toISODate(),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
fieldtype: 'Date',
|
fieldtype: 'Date',
|
||||||
@ -38,7 +38,7 @@ export default {
|
|||||||
size: 'small',
|
size: 'small',
|
||||||
placeholder: 'To Date',
|
placeholder: 'To Date',
|
||||||
fieldname: 'toDate',
|
fieldname: 'toDate',
|
||||||
default: DateTime.local().toISODate(),
|
default: () => DateTime.local().toISODate(),
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
linkFields: [
|
linkFields: [
|
||||||
|
Loading…
Reference in New Issue
Block a user