Ken 2 horas atrás
pai
commit
f4fbc55fc0
1 arquivos alterados com 8 adições e 1 exclusões
  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;