From b9e6128da4e78a38b4daa41ed3d46355384f05a4 Mon Sep 17 00:00:00 2001 From: denisdulici Date: Mon, 13 Jan 2020 17:14:55 +0300 Subject: [PATCH] fixed bill badge --- app/Models/Purchase/Bill.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/Purchase/Bill.php b/app/Models/Purchase/Bill.php index c03bf6f2b..39523af53 100644 --- a/app/Models/Purchase/Bill.php +++ b/app/Models/Purchase/Bill.php @@ -259,7 +259,7 @@ class Bill extends Model */ public function getStatusLabelAttribute() { - switch ($this->code) { + switch ($this->status) { case 'paid': $label = 'success'; break;