Lead create Booking
This commit is contained in:
parent
3df0e93c2c
commit
34a3d2196b
18 changed files with 462 additions and 160 deletions
|
|
@ -125,8 +125,24 @@ class Customer extends Model
|
|||
];
|
||||
|
||||
public static $salutationType = [
|
||||
1 => 'Mann',
|
||||
2 => 'Frau'
|
||||
1 => 'Herr',
|
||||
2 => 'Frau',
|
||||
3 => 'Divers/keine Anrede',
|
||||
4 => 'Firma'
|
||||
];
|
||||
|
||||
public static $salutationNameType = [
|
||||
1 => 'Herr',
|
||||
2 => 'Frau',
|
||||
3 => '',
|
||||
4 => 'Firma'
|
||||
];
|
||||
|
||||
public static $salutationDearType = [
|
||||
1 => 'geehrter',
|
||||
2 => 'geehrte',
|
||||
3 => 'geehrte:r',
|
||||
4 => ''
|
||||
];
|
||||
|
||||
public function travel_country()
|
||||
|
|
@ -155,7 +171,15 @@ class Customer extends Model
|
|||
}
|
||||
|
||||
public function getSalutation(){
|
||||
return $this->salutation_id == 1 ? 'Herr' : 'Frau';
|
||||
return isset(self::$salutationType[$this->salutation_id]) ? self::$salutationType[$this->salutation_id] : '';
|
||||
}
|
||||
|
||||
public function getSalutationName(){
|
||||
return isset(self::$salutationNameType[$this->salutation_id]) ? self::$salutationNameType[$this->salutation_id] : '';
|
||||
}
|
||||
|
||||
public function getSalutationDear(){
|
||||
return isset(self::$salutationDearType[$this->salutation_id]) ? self::$salutationDearType[$this->salutation_id] : '';
|
||||
}
|
||||
|
||||
public function fullName()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue