mirror of
https://github.com/frappe/books.git
synced 2024-11-09 23:30:56 +00:00
make default date as function
This commit is contained in:
parent
384c238583
commit
4bfa54b3d2
@ -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: [
|
||||
|
Loading…
Reference in New Issue
Block a user