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 ce0f4e2 commit 428f1c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Models/CustomerInvoice.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function book($send_email = false)
{
return $this->request->handleWithExceptions(function () use ($send_email) {

return $this->request->client->post("{$this->entity}/{$this->{$this->primaryKey}}/book" . (($send_email === true) ? '?send_mail=true' : ''))
return $this->request->client->post("{$this->entity}/{$this->{$this->primaryKey}}/book" . (($send_email === true) ? '?send_mail' : ''))
->getBody()
->getContents();
});
Expand Down
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?bbok={$book}")
$response = json_decode((string)$this->request->client->post("{$this->entity}/{$this->{$this->primaryKey}}/convert-to-invoice" . (($book === true) ? '?book' : ''))
->getBody());

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

0 comments on commit 428f1c7

Please sign in to comment.