Skip to content
This repository was archived by the owner on Aug 26, 2025. It is now read-only.

Commit 7cee2b4

Browse files
committed
Fixes invoice customer association
1 parent 1dbf01a commit 7cee2b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Model/Invoice/Invoice.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,11 +265,11 @@ public function toArray(): array
265265
}
266266

267267
if (null !== $this->business) {
268-
$data['business'] = $this->business->toArray();
268+
$data['business'] = $this->business->getId();
269269
}
270270

271271
if (null !== $this->customer) {
272-
$data['customer'] = $this->customer->toArray();
272+
$data['customer'] = $this->customer->getId();
273273
}
274274

275275
if (null !== $this->amountDetails) {

0 commit comments

Comments
 (0)