when is leave , don't create a devis
This commit is contained in:
parent
42b29b3b6d
commit
651aaad405
@ -49,6 +49,15 @@ class GestionService {
|
|||||||
$this->talkService = $talkService;
|
$this->talkService = $talkService;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private function GetIsLeaveFromVCalendarString(string $vCalendarString): bool{
|
||||||
|
$isLeave = false;
|
||||||
|
$isLeaveValue = VCalendarHelpers::GetValueFromKeyInVCalendarString("ISLEAVE", $vCalendarString);
|
||||||
|
if($isLeaveValue == "1"){
|
||||||
|
$isLeave = true;
|
||||||
|
}
|
||||||
|
return $isLeave;
|
||||||
|
}
|
||||||
|
|
||||||
private function GetCalendarSummaryFromVCalendarString(string $vCalendarString): string
|
private function GetCalendarSummaryFromVCalendarString(string $vCalendarString): string
|
||||||
{
|
{
|
||||||
$summaryValue = "Nom du défunt";
|
$summaryValue = "Nom du défunt";
|
||||||
@ -197,6 +206,10 @@ class GestionService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function HandleCreatedCalendarObject(string $vCalendarString){
|
public function HandleCreatedCalendarObject(string $vCalendarString){
|
||||||
|
$isCalendarForLeave = $this->GetIsLeaveFromVCalendarString($vCalendarString);
|
||||||
|
if($isCalendarForLeave){
|
||||||
|
return;
|
||||||
|
}
|
||||||
$calendarSummary = $this->GetCalendarSummaryFromVCalendarString($vCalendarString);
|
$calendarSummary = $this->GetCalendarSummaryFromVCalendarString($vCalendarString);
|
||||||
$clientId = $this->GetClientIdFromVCalendarString($vCalendarString);
|
$clientId = $this->GetClientIdFromVCalendarString($vCalendarString);
|
||||||
$locationId = $this->GetLocationIdFromVCalendarString($vCalendarString);
|
$locationId = $this->GetLocationIdFromVCalendarString($vCalendarString);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user