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 c13ea10 commit 4e3c45aCopy full SHA for 4e3c45a
src/Models/Invoice.php
@@ -487,7 +487,7 @@ public function toPdfInvoice(): PdfInvoice
487
buyer: Buyer::fromArray($this->buyer_information ?? []),
488
seller: Seller::fromArray($this->seller_information ?? []),
489
description: $this->description,
490
- items: $this->items->map(fn ($item) => $item->toPdfInvoiceItem())->all(),
+ items: $this->items->values()->map(fn ($item) => $item->toPdfInvoiceItem())->all(),
491
tax_label: $this->getTaxLabel(),
492
discounts: $this->getDiscounts(),
493
logo: $this->getLogo(),
0 commit comments