Skip to content

Commit

Permalink
Fixed book on convert
Browse files Browse the repository at this point in the history
  • Loading branch information
kg-bot committed Jan 24, 2020
1 parent 428f1c7 commit 3a8e714
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Models/Order.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public function convertToInvoice($book = false)
{
return $this->request->handleWithExceptions(function () use ($book) {

$response = json_decode((string)$this->request->client->post("{$this->entity}/{$this->{$this->primaryKey}}/convert-to-invoice" . (($book === true) ? '?book' : ''))
$response = json_decode((string)$this->request->client->post("{$this->entity}/{$this->{$this->primaryKey}}/convert-to-invoice?book=" . (($book === true) ? 'true' : 'false'))
->getBody());

$invoice = (new CustomerInvoiceBuilder($this->request))->find($response->invoice_id);
Expand Down

0 comments on commit 3a8e714

Please sign in to comment.