Fix for embed documents

This commit is contained in:
Hillel Coren 2017-02-04 20:53:17 +02:00
parent 06485f1cb3
commit 3e4528e340
3 changed files with 4 additions and 3 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

@ -486,10 +486,11 @@ NINJA.invoiceLines = function(invoice) {
} }
NINJA.invoiceDocuments = function(invoice) { NINJA.invoiceDocuments = function(invoice) {
if (!invoice.account.invoice_embed_documents) { if (invoice.account.invoice_embed_documents != '1') {
return []; return [];
} }
var j = 0;
var stack = []; var stack = [];
var stackItem = null; var stackItem = null;