We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7796336 commit b8122abCopy full SHA for b8122ab
src/Pdf/PdfInvoice.php
@@ -133,6 +133,10 @@ public function subTotalDiscountedAmount(): Money
133
*/
134
public function totalTaxAmount(): Money
135
{
136
+ if (empty($this->items)) {
137
+ return Money::of(0, $this->getCurrency());
138
+ }
139
+
140
$totalDiscount = $this->totalDiscountAmount();
141
142
/**
0 commit comments