Skip to content
This repository has been archived by the owner on Aug 13, 2020. It is now read-only.

Commit

Permalink
Rename variable to correct name
Browse files Browse the repository at this point in the history
  • Loading branch information
driesvints committed Mar 21, 2019
1 parent ff1963a commit 62324b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Invoice.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public function addOnAmount()
$totalAddOn = 0;

foreach ($this->transaction->addOns as $addOn) {
$totalAddOn += $addOn->amount * $addOn->quantity;
$totalAddOn += $addOn->amount * ($addOn->quantity ?? 1);
}

return (float) $totalAddOn;
Expand Down

0 comments on commit 62324b6

Please sign in to comment.