Fix Area Limit Setter
This commit is contained in:
@@ -132,6 +132,11 @@ class Benefit extends Model
|
|||||||
"Show Benefit Value" => 'show_benefit_value',
|
"Show Benefit Value" => 'show_benefit_value',
|
||||||
];
|
];
|
||||||
|
|
||||||
|
public function setAreaLimitAttribute($value)
|
||||||
|
{
|
||||||
|
$this->attributes['area_limit'] = $value ? $value : null;
|
||||||
|
}
|
||||||
|
|
||||||
public function setPrePostTreatmentAttribute($value)
|
public function setPrePostTreatmentAttribute($value)
|
||||||
{
|
{
|
||||||
$this->attributes['pre_post_treatment'] = empty($value) ? null : ($value == 'Y');
|
$this->attributes['pre_post_treatment'] = empty($value) ? null : ($value == 'Y');
|
||||||
|
|||||||
Reference in New Issue
Block a user