Fixed recurring-document due_at issue
This commit is contained in:
parent
50eba765d2
commit
ccd82f5da4
@ -702,7 +702,7 @@ const app = new Vue({
|
||||
|
||||
onChangeRecurringDate() {
|
||||
let started_at = new Date(this.form.recurring_started_at);
|
||||
let due_at = format(addDays(started_at, this.form.payment_terms), 'YYYY-MM-DD');
|
||||
let due_at = format(addDays(started_at, this.form.payment_terms), 'yyyy-MM-dd');
|
||||
|
||||
this.form.due_at = due_at;
|
||||
},
|
||||
|
@ -62,7 +62,7 @@
|
||||
@if ($last = $item->recurring->documents->last()?->issued_at)
|
||||
{{ $last->format(company_date_format()) }}
|
||||
@else
|
||||
<x-empty-data />
|
||||
<x-empty-data />
|
||||
@endif
|
||||
@else
|
||||
@if ($last = $item->recurring->getLastRecurring())
|
||||
|
Loading…
x
Reference in New Issue
Block a user