mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-09 20:52:56 +01:00
Show pending due date on recurring invoice preview
This commit is contained in:
parent
0885253f86
commit
f14fc6291c
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1258,9 +1258,7 @@ NINJA.renderField = function(invoice, field, twoColumn) {
|
|||||||
value = invoice.invoice_date;
|
value = invoice.invoice_date;
|
||||||
} else if (field == 'invoice.due_date') {
|
} else if (field == 'invoice.due_date') {
|
||||||
label = invoice.is_quote ? invoiceLabels.valid_until : invoiceLabels.due_date;
|
label = invoice.is_quote ? invoiceLabels.valid_until : invoiceLabels.due_date;
|
||||||
if (invoice.is_recurring) {
|
if (invoice.partial_due_date) {
|
||||||
value = false;
|
|
||||||
} else if (invoice.partial_due_date) {
|
|
||||||
value = invoice.partial_due_date;
|
value = invoice.partial_due_date;
|
||||||
} else {
|
} else {
|
||||||
value = invoice.due_date;
|
value = invoice.due_date;
|
||||||
|
@ -1170,9 +1170,12 @@
|
|||||||
|
|
||||||
if (invoice.is_recurring) {
|
if (invoice.is_recurring) {
|
||||||
invoice.invoice_number = "{!! trans('texts.assigned_when_sent') !!}";
|
invoice.invoice_number = "{!! trans('texts.assigned_when_sent') !!}";
|
||||||
|
invoice.due_date = "{!! trans('texts.assigned_when_sent') !!}";
|
||||||
if (invoice.start_date) {
|
if (invoice.start_date) {
|
||||||
invoice.invoice_date = invoice.start_date;
|
invoice.invoice_date = invoice.start_date;
|
||||||
}
|
} else {
|
||||||
|
invoice.invoice_date = invoice.due_date;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@if (!$invoice->id || $invoice->is_recurring)
|
@if (!$invoice->id || $invoice->is_recurring)
|
||||||
|
Loading…
Reference in New Issue
Block a user