|
@@ -64,8 +64,8 @@ class DocumentLineItemFactory extends Factory
|
64
|
64
|
|
65
|
65
|
$lineItem->refresh();
|
66
|
66
|
|
67
|
|
- $taxTotal = $lineItem->calculateTaxTotal()->getAmount();
|
68
|
|
- $discountTotal = $lineItem->calculateDiscountTotal()->getAmount();
|
|
67
|
+ $taxTotal = $lineItem->calculateTaxTotalAmount();
|
|
68
|
+ $discountTotal = $lineItem->calculateDiscountTotalAmount();
|
69
|
69
|
|
70
|
70
|
$lineItem->updateQuietly([
|
71
|
71
|
'tax_total' => $taxTotal,
|
|
@@ -100,8 +100,8 @@ class DocumentLineItemFactory extends Factory
|
100
|
100
|
|
101
|
101
|
$lineItem->refresh();
|
102
|
102
|
|
103
|
|
- $taxTotal = $lineItem->calculateTaxTotal()->getAmount();
|
104
|
|
- $discountTotal = $lineItem->calculateDiscountTotal()->getAmount();
|
|
103
|
+ $taxTotal = $lineItem->calculateTaxTotalAmount();
|
|
104
|
+ $discountTotal = $lineItem->calculateDiscountTotalAmount();
|
105
|
105
|
|
106
|
106
|
$lineItem->updateQuietly([
|
107
|
107
|
'tax_total' => $taxTotal,
|
|
@@ -136,8 +136,8 @@ class DocumentLineItemFactory extends Factory
|
136
|
136
|
|
137
|
137
|
$lineItem->refresh();
|
138
|
138
|
|
139
|
|
- $taxTotal = $lineItem->calculateTaxTotal()->getAmount();
|
140
|
|
- $discountTotal = $lineItem->calculateDiscountTotal()->getAmount();
|
|
139
|
+ $taxTotal = $lineItem->calculateTaxTotalAmount();
|
|
140
|
+ $discountTotal = $lineItem->calculateDiscountTotalAmount();
|
141
|
141
|
|
142
|
142
|
$lineItem->updateQuietly([
|
143
|
143
|
'tax_total' => $taxTotal,
|