|
|
@@ -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;
|