Fix initial preview when adding expense to invoice

This commit is contained in:
Hillel Coren 2017-10-17 11:33:50 +03:00
parent bcff6b81e8
commit 7ef9bc9cd6
3 changed files with 4 additions and 4 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

@ -692,7 +692,7 @@ function calculateAmounts(invoice) {
if (lineTotal) { if (lineTotal) {
total += lineTotal; total += lineTotal;
} }
if (!item.notes && !item.product_key) { if (!item.notes && !item.product_key && !item.cost && !item.qty) {
continue; continue;
} }
if (item.invoice_item_type_id == 2) { if (item.invoice_item_type_id == 2) {