Ken 2 giờ trước cách đây
mục cha
commit
ba27734579
1 tập tin đã thay đổi với 5 bổ sung0 xóa
  1. 5 0
      app/Models/Rebate.php

+ 5 - 0
app/Models/Rebate.php

@@ -51,6 +51,11 @@ class Rebate extends Authenticatable
     }
 
 
+    protected function getHuishuiRestrictionAttribute($value){
+        $huishui_restriction = Config::where('field', 'huishui_restriction')->first()->val;
+        return $huishui_restriction;
+    }
+
     protected function getHuishuiAmountAttribute($value)
     {
         $value = 0;