Skip to content

Commit d9f1739

Browse files
committed
Don't apply taxes automatically if taxable amount is defined manually
1 parent d55db77 commit d9f1739

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Traits/InvoiceHelpers.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,10 @@ public function calculateDiscount(): void
348348

349349
public function calculateTax(): void
350350
{
351+
if ($this->taxable_amount) {
352+
return;
353+
}
354+
351355
$this->taxable_amount = $this->total_amount;
352356
$totalAmount = $this->taxable_amount;
353357

0 commit comments

Comments
 (0)