Ken 2 ore fa
parent
commit
ba27734579
1 ha cambiato i file con 5 aggiunte e 0 eliminazioni
  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;