1
0
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:
Hillel Coren 2018-03-22 12:40:01 +02:00
parent 0885253f86
commit f14fc6291c
4 changed files with 7 additions and 6 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

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

View File

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