Set default date for fixed end of recurring in TransactionWizard
MODIFY
resources/assets/js/components/TransactionWizard.vue
resources/assets/js/components/TransactionWizard.vue
amount: '10.00',
isRecurring: false,
recurringEnd: 'forever',
- recurringEndDate: '',
+ recurringEndDate: this.get100DaysFutureDate(),
loading: false,
success: false
return new Date().toISOString().slice(0, 10)
},
+ get100DaysFutureDate() {
+ let now = new Date()
+
+ return (now.getFullYear() + 1) + '-' + ('0' + (now.getMonth() + 1)).slice(-2) + '-' + ('0' + now.getDate()).slice(-2)
+ },
+
createEarning() {
if (!this.loading) {
this.loading = true

Set default date for fixed end of recurring in TransactionWizard