Skip to content

Commit

Permalink
Fix tax on invoice (#1412)
Browse files Browse the repository at this point in the history
  • Loading branch information
driesvints committed Aug 4, 2022
1 parent 5c357cd commit 458d62e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Invoice.php
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ public function rawAmountOff()
*/
public function tax()
{
return $this->formatAmount($this->invoice->tax);
return $this->formatAmount($this->invoice->tax ?? 0);
}

/**
Expand Down

0 comments on commit 458d62e

Please sign in to comment.