Change 10.2019
This commit is contained in:
parent
7fbac395a9
commit
8f29c15a2b
6 changed files with 27 additions and 277 deletions
|
|
@ -304,8 +304,7 @@ class TravelUserBookingFewo extends Model
|
|||
//price_travel
|
||||
public function setPriceTravelAttribute($value)
|
||||
{
|
||||
$value = Util::_format_number($value);
|
||||
$this->attributes['price_travel'] = floatval(str_replace(',', '.', $value));
|
||||
$this->attributes['price_travel'] = Util::_clean_float($value);
|
||||
}
|
||||
|
||||
public function getPriceTravelAttribute($value)
|
||||
|
|
@ -322,8 +321,7 @@ class TravelUserBookingFewo extends Model
|
|||
//price_extra
|
||||
public function setPriceExtraAttribute($value)
|
||||
{
|
||||
$value = Util::_format_number($value);
|
||||
$this->attributes['price_extra'] = floatval(str_replace(',', '.', $value));
|
||||
$this->attributes['price_extra'] = Util::_clean_float($value);
|
||||
}
|
||||
public function getPriceExtraAttribute($value)
|
||||
{
|
||||
|
|
@ -339,8 +337,7 @@ class TravelUserBookingFewo extends Model
|
|||
//price_balance
|
||||
public function setPriceBalanceAttribute($value)
|
||||
{
|
||||
$value = Util::_format_number($value);
|
||||
$this->attributes['price_balance'] = floatval(str_replace(',', '.', $value));
|
||||
$this->attributes['price_balance'] = Util::_clean_float($value);
|
||||
}
|
||||
public function getPriceBalanceAttribute($value)
|
||||
{
|
||||
|
|
@ -356,8 +353,7 @@ class TravelUserBookingFewo extends Model
|
|||
//price_travel_total
|
||||
public function setPriceTravelTotalAttribute($value)
|
||||
{
|
||||
$value = Util::_format_number($value);
|
||||
$this->attributes['price_travel_total'] = floatval(str_replace(',', '.', $value));
|
||||
$this->attributes['price_travel_total'] = Util::_clean_float($value);
|
||||
}
|
||||
public function getPriceTravelTotalAttribute($value)
|
||||
{
|
||||
|
|
@ -377,8 +373,7 @@ class TravelUserBookingFewo extends Model
|
|||
//price_deposit
|
||||
public function setPriceDepositAttribute($value)
|
||||
{
|
||||
$value = Util::_format_number($value);
|
||||
$this->attributes['price_deposit'] = floatval(str_replace(',', '.', $value));
|
||||
$this->attributes['price_deposit'] = Util::_clean_float($value);
|
||||
}
|
||||
|
||||
public function getPriceDepositAttribute($value)
|
||||
|
|
@ -395,8 +390,7 @@ class TravelUserBookingFewo extends Model
|
|||
//price_service
|
||||
public function setPriceServiceAttribute($value)
|
||||
{
|
||||
$value = Util::_format_number($value);
|
||||
$this->attributes['price_service'] = floatval(str_replace(',', '.', $value));
|
||||
$this->attributes['price_service'] = Util::_clean_float($value);
|
||||
}
|
||||
|
||||
public function getPriceServiceAttribute($value)
|
||||
|
|
@ -414,8 +408,7 @@ class TravelUserBookingFewo extends Model
|
|||
//price_total
|
||||
public function setPriceTotalAttribute($value)
|
||||
{
|
||||
$value = Util::_format_number($value);
|
||||
$this->attributes['price_total'] = floatval(str_replace(',', '.', $value));
|
||||
$this->attributes['price_total'] = Util::_clean_float($value);
|
||||
}
|
||||
|
||||
public function getPriceTotalAttribute($value)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue