mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 21:22:58 +01:00
Fix for client statements #1321
This commit is contained in:
parent
cc1eee7f4f
commit
4d6c0775f9
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -486,17 +486,25 @@ NINJA.invoiceLines = function(invoice) {
|
||||
}
|
||||
|
||||
NINJA.invoiceDocuments = function(invoice) {
|
||||
if(!invoice.account.invoice_embed_documents)return[];
|
||||
if (!invoice.account.invoice_embed_documents) {
|
||||
return [];
|
||||
}
|
||||
|
||||
var stack = [];
|
||||
var stackItem = null;
|
||||
|
||||
var j = 0;
|
||||
for (var i = 0; i < invoice.documents.length; i++)addDoc(invoice.documents[i]);
|
||||
if (invoice.documents) {
|
||||
for (var i = 0; i < invoice.documents.length; i++) {
|
||||
addDoc(invoice.documents[i]);
|
||||
}
|
||||
}
|
||||
|
||||
if(invoice.expenses){
|
||||
if (invoice.expenses) {
|
||||
for (var i = 0; i < invoice.expenses.length; i++) {
|
||||
var expense = invoice.expenses[i];
|
||||
for (var j = 0; j < expense.documents.length; j++)addDoc(expense.documents[j]);
|
||||
for (var j = 0; j < expense.documents.length; j++) {
|
||||
addDoc(expense.documents[j]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user