mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-09 12:42:36 +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;
|
||||
} else if (field == 'invoice.due_date') {
|
||||
label = invoice.is_quote ? invoiceLabels.valid_until : invoiceLabels.due_date;
|
||||
if (invoice.is_recurring) {
|
||||
value = false;
|
||||
} else if (invoice.partial_due_date) {
|
||||
if (invoice.partial_due_date) {
|
||||
value = invoice.partial_due_date;
|
||||
} else {
|
||||
value = invoice.due_date;
|
||||
|
@ -1170,8 +1170,11 @@
|
||||
|
||||
if (invoice.is_recurring) {
|
||||
invoice.invoice_number = "{!! trans('texts.assigned_when_sent') !!}";
|
||||
invoice.due_date = "{!! trans('texts.assigned_when_sent') !!}";
|
||||
if (invoice.start_date) {
|
||||
invoice.invoice_date = invoice.start_date;
|
||||
} else {
|
||||
invoice.invoice_date = invoice.due_date;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user