last changes since 6-2023
This commit is contained in:
parent
561c5875a7
commit
c1c613a4b9
53 changed files with 1351 additions and 93 deletions
|
|
@ -222,6 +222,7 @@ class Booking extends Model
|
|||
//'airline_id' => 'int',
|
||||
'refund' => 'int',
|
||||
'xx_tkt' => 'int',
|
||||
'insurance_offer' => 'int',
|
||||
'is_rail_fly' => 'bool',
|
||||
'comfort' => 'bool',
|
||||
'airline_ids' => 'array',
|
||||
|
|
@ -277,6 +278,7 @@ class Booking extends Model
|
|||
'final_payment',
|
||||
'final_payment_date',
|
||||
'travelagenda_id',
|
||||
'insurance_offer',
|
||||
'paying_out',
|
||||
'paying_out_status',
|
||||
//'airline_id',
|
||||
|
|
@ -313,6 +315,12 @@ class Booking extends Model
|
|||
2 => 'erledigt',
|
||||
];
|
||||
|
||||
public static $insurance_offer_types = [
|
||||
0 => '-',
|
||||
1 => 'Nein, keine Reiseversicherung gewünscht',
|
||||
2 => 'Ja, ich wünsche ein Reiseversicherungsangebot'
|
||||
];
|
||||
|
||||
public static $paying_out_status_types = [
|
||||
0 => '-',
|
||||
1 => 'offen',
|
||||
|
|
@ -921,6 +929,10 @@ class Booking extends Model
|
|||
return isset(self::$paying_out_types[$this->paying_out]) ? self::$paying_out_types[$this->paying_out] : '-';
|
||||
}
|
||||
|
||||
public function getInsuranceOfferType(){
|
||||
return isset(self::$insurance_offer_types[$this->insurance_offer]) ? self::$insurance_offer_types[$this->insurance_offer] : '-';
|
||||
}
|
||||
|
||||
public function getPayingOutStatusType(){
|
||||
return isset(self::$paying_out_status_types[$this->paying_out_status]) ? self::$paying_out_status_types[$this->paying_out_status] : '-';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue