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;