1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-11 13:42:49 +01:00

Minor fixes for sub calculator

This commit is contained in:
David Bomba 2024-03-15 12:22:09 +11:00
parent e3e19208a4
commit 706133bd7b

View File

@ -83,7 +83,7 @@ class SubscriptionCalculator
$line_item->quantity = (float) $item['quantity']; $line_item->quantity = (float) $item['quantity'];
$line_item->cost = (float) $item['product']['price']; $line_item->cost = (float) $item['product']['price'];
$line_item->notes = $item['product']['notes']; $line_item->notes = $item['product']['notes'];
$line_item->tax_id = $item['product']['tax_id'] ?? '1';
$items[] = $line_item; $items[] = $line_item;
} }
@ -99,7 +99,7 @@ class SubscriptionCalculator
$line_item->quantity = (float) $item['quantity']; $line_item->quantity = (float) $item['quantity'];
$line_item->cost = (float) $item['product']['price']; $line_item->cost = (float) $item['product']['price'];
$line_item->notes = $item['product']['notes']; $line_item->notes = $item['product']['notes'];
$line_item->tax_id = $item['product']['tax_id'] ?? '1';
$items[] = $line_item; $items[] = $line_item;
} }