Ken преди 2 часа
родител
ревизия
ba27734579
променени са 1 файла, в които са добавени 5 реда и са изтрити 0 реда
  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;