mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-23 20:00:33 -04: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) {
|
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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user