Fix initial preview when adding expense to invoice
This commit is contained in:
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
|
|
@ -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…
Add table
Reference in a new issue