diff --git a/Classes/Invoice.php b/Classes/Invoice.php index 1135bc4..8245d09 100644 --- a/Classes/Invoice.php +++ b/Classes/Invoice.php @@ -213,19 +213,19 @@ public function template($template = 'default') * * @param string $name * @param int $price - * @param int $ammount + * @param int $amount * @param string $id * @param string $imageUrl * * @return self */ - public function addItem($name, $price, $ammount = 1, $id = '-', $imageUrl = null) + public function addItem($name, $price, $amount = 1, $id = '-', $imageUrl = null) { $this->items->push(Collection::make([ 'name' => $name, 'price' => $price, - 'ammount' => $ammount, - 'totalPrice' => number_format(bcmul($price, $ammount, $this->decimals), $this->decimals), + 'amount' => $amount, + 'totalPrice' => number_format(bcmul($price, $amount, $this->decimals), $this->decimals), 'id' => $id, 'imageUrl' => $imageUrl, ])); @@ -272,7 +272,7 @@ public function formatCurrency() private function subTotalPrice() { return $this->items->sum(function ($item) { - return bcmul($item['price'], $item['ammount'], $this->decimals); + return bcmul($item['price'], $item['amount'], $this->decimals); }); } diff --git a/Config/invoices.php b/Config/invoices.php index 91aca04..7667357 100644 --- a/Config/invoices.php +++ b/Config/invoices.php @@ -86,7 +86,7 @@ | | The tax type accepted values are: 'percentage' and 'fixed'. | The percentage type calculates the tax depending on the invoice price, and - | the fixed type simply adds a fixed ammount to the total price. + | the fixed type simply adds a fixed amount to the total price. | You can't mix percentage and fixed tax rates. */ 'tax_rates' => [ diff --git a/Templates/default.blade.php b/Templates/default.blade.php index 1b81c46..77e1d31 100644 --- a/Templates/default.blade.php +++ b/Templates/default.blade.php @@ -154,7 +154,7 @@