Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hbhossein committed Jun 26, 2023
1 parent 0ae69b3 commit 0e54b4b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 0 additions & 2 deletions src/Http/invoicePacket.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,5 @@ public function __construct(string $username, Invoice $invoice) {
$this->needEncrypt = true;
$this->data = $invoice->toArray();
$this->retry = $invoice->retry;

unset($this->data['header']['clientId']);
}
}
4 changes: 3 additions & 1 deletion src/InvoiceHeader.php
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,9 @@ public function __construct(string $username = null) {

public function toArray(): array
{
return get_object_vars($this);
$arr = get_object_vars($this);
unset($arr['clientId']);
return $arr;
}

public function setTaxID(DateTime $date, int $internalInvoiceId)
Expand Down

0 comments on commit 0e54b4b

Please sign in to comment.