Skip to content

Commit 4e3c45a

Browse files
committed
wip
1 parent c13ea10 commit 4e3c45a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Models/Invoice.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ public function toPdfInvoice(): PdfInvoice
487487
buyer: Buyer::fromArray($this->buyer_information ?? []),
488488
seller: Seller::fromArray($this->seller_information ?? []),
489489
description: $this->description,
490-
items: $this->items->map(fn ($item) => $item->toPdfInvoiceItem())->all(),
490+
items: $this->items->values()->map(fn ($item) => $item->toPdfInvoiceItem())->all(),
491491
tax_label: $this->getTaxLabel(),
492492
discounts: $this->getDiscounts(),
493493
logo: $this->getLogo(),

0 commit comments

Comments
 (0)