Booking edit v3
This commit is contained in:
parent
6706d28f51
commit
6880c7e989
20 changed files with 691 additions and 97 deletions
|
|
@ -83,7 +83,10 @@ class BookingServiceItem extends Model
|
|||
return $this->belongsTo(TravelCompany::class);
|
||||
}
|
||||
|
||||
|
||||
public function setServicePriceAttribute($value)
|
||||
{
|
||||
$this->attributes['service_price'] = Util::_clean_float($value);
|
||||
}
|
||||
public function getServicePriceAttribute()
|
||||
{
|
||||
return Util::_number_format($this->attributes['service_price']);
|
||||
|
|
@ -92,4 +95,35 @@ class BookingServiceItem extends Model
|
|||
{
|
||||
return $this->attributes['service_price'];
|
||||
}
|
||||
|
||||
public function setCommissionAttribute($value)
|
||||
{
|
||||
$this->attributes['commission'] = Util::_clean_float($value);
|
||||
}
|
||||
public function getCommissionAttribute()
|
||||
{
|
||||
return Util::_number_format($this->attributes['commission']);
|
||||
}
|
||||
public function getCommissionRaw()
|
||||
{
|
||||
return $this->attributes['commission'];
|
||||
}
|
||||
|
||||
public function setServicePriceRefundAttribute($value)
|
||||
{
|
||||
$this->attributes['service_price_refund'] = Util::_clean_float($value);
|
||||
}
|
||||
public function getServicePriceRefundAttribute()
|
||||
{
|
||||
return Util::_number_format($this->attributes['service_price_refund']);
|
||||
}
|
||||
public function getServicePriceRefundRaw()
|
||||
{
|
||||
return $this->attributes['service_price_refund'];
|
||||
}
|
||||
|
||||
public function setServicePriceRefundRaw($value)
|
||||
{
|
||||
return $this->attributes['service_price_refund'] = $value;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue