Skip to content

Commit

Permalink
Formatting fixed on all amounts
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Smit committed Feb 5, 2021
1 parent 27cad07 commit 570ac18
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Objects/SalesItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function setDescription(string $description): self
*/
public function getUnitPrice(): string
{
return number_format($this->unitPrice, 2);
return number_format($this->unitPrice, 2, ".", "");
}

/**
Expand Down Expand Up @@ -82,7 +82,7 @@ public function setQuantity(int $quantity): self
*/
public function getTotalAmount(): string
{
return number_format($this->totalAmount, 2);
return number_format($this->totalAmount, 2, ",", "");
}

/**
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "A wrapper to ease integration into Wirecard (previously MyGate) webservices.",
"license": "MIT",
"minimum-stability": "stable",
"version": "1.0.2",
"version": "1.1",
"authors": [
{
"name": "Christopher Smit",
Expand Down

0 comments on commit 570ac18

Please sign in to comment.