Skip to content

Commit

Permalink
fix: calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
mnlmaier committed Nov 20, 2024
1 parent 2cd8d8f commit fbd2ec1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function calculateTaxAndFeesForTicket(
?->sum(fn($taxOrFee) => $this->calculateFee($taxOrFee, $price, $quantity)) ?: 0.00;

$taxFees = $ticket->getTaxRates()
?->sum(fn($taxOrFee) => $this->calculateFee($taxOrFee, $price, $quantity));
?->sum(fn($taxOrFee) => $this->calculateFee($taxOrFee, $price + $fees, $quantity));

return new TaxCalculationResponse(
feeTotal: $fees ? ($fees * $quantity) : 0.00,
Expand Down

0 comments on commit fbd2ec1

Please sign in to comment.