Ken 2 годин тому
батько
коміт
f4fbc55fc0
1 змінених файлів з 8 додано та 1 видалено
  1. 8 1
      app/Models/Rebate.php

+ 8 - 1
app/Models/Rebate.php

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