1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-19 16:01:34 +02:00

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) {
total += lineTotal;
}
if (!item.notes && !item.product_key) {
if (!item.notes && !item.product_key && !item.cost && !item.qty) {
continue;
}
if (item.invoice_item_type_id == 2) {