From 706133bd7b85ef7629c2e618cac896c73c02df2a Mon Sep 17 00:00:00 2001 From: David Bomba Date: Fri, 15 Mar 2024 12:22:09 +1100 Subject: [PATCH] Minor fixes for sub calculator --- app/Services/Subscription/SubscriptionCalculator.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Services/Subscription/SubscriptionCalculator.php b/app/Services/Subscription/SubscriptionCalculator.php index 77b444ac77..ad730d1677 100644 --- a/app/Services/Subscription/SubscriptionCalculator.php +++ b/app/Services/Subscription/SubscriptionCalculator.php @@ -83,7 +83,7 @@ class SubscriptionCalculator $line_item->quantity = (float) $item['quantity']; $line_item->cost = (float) $item['product']['price']; $line_item->notes = $item['product']['notes']; - + $line_item->tax_id = $item['product']['tax_id'] ?? '1'; $items[] = $line_item; } @@ -99,7 +99,7 @@ class SubscriptionCalculator $line_item->quantity = (float) $item['quantity']; $line_item->cost = (float) $item['product']['price']; $line_item->notes = $item['product']['notes']; - + $line_item->tax_id = $item['product']['tax_id'] ?? '1'; $items[] = $line_item; }