Skip to content

Commit

Permalink
close #2008 Fixed: When creating an item, both the sale price and the…
Browse files Browse the repository at this point in the history
… purchase price must be required.
  • Loading branch information
cuneytsenturk committed Apr 27, 2021
1 parent 246a6f4 commit 567496e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/Http/Middleware/Money.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ protected function getAmount($money_format)
logger($e->getMessage());

$amount = 0;

if ($money_format === null) {
$amount = $money_format;
}
}

return $amount;
Expand Down

0 comments on commit 567496e

Please sign in to comment.