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:
parent
bcff6b81e8
commit
7ef9bc9cd6
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user