Fixed recurring-document due_at issue

This commit is contained in:
Cüneyt Şentürk 2023-08-29 10:43:10 +03:00
parent 50eba765d2
commit ccd82f5da4
2 changed files with 2 additions and 2 deletions

View File

@ -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;
},

View File

@ -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())