Skip to content

Commit

Permalink
Bill paid attribute amount check empty
Browse files Browse the repository at this point in the history
  • Loading branch information
cuneytsenturk committed Nov 12, 2018
1 parent 1d085b6 commit 94ae3c9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/Models/Expense/Bill.php
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,10 @@ public function getDiscountAttribute()
*/
public function getPaidAttribute()
{
if (empty($this->amount)) {
return false;
}

$paid = 0;
$reconciled = $reconciled_amount = 0;

Expand Down

0 comments on commit 94ae3c9

Please sign in to comment.