Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
Itinerary
Commits
1a0f14d0
Commit
1a0f14d0
authored
Oct 10, 2021
by
Volker Krause
Browse files
Allow adding transfers before/after restaurant reservations
parent
b243139d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/app/transferhelper.cpp
View file @
1a0f14d0
...
...
@@ -39,6 +39,9 @@ QDateTime TransferHelper::anchorTimeBefore(const QVariant &res)
}
return
event
.
startDate
();
}
if
(
JsonLd
::
isA
<
FoodEstablishmentReservation
>
(
res
))
{
return
res
.
value
<
FoodEstablishmentReservation
>
().
startTime
();
}
return
{};
}
...
...
@@ -56,5 +59,8 @@ QDateTime TransferHelper::anchorTimeAfter(const QVariant &res)
if
(
JsonLd
::
isA
<
EventReservation
>
(
res
))
{
return
res
.
value
<
EventReservation
>
().
reservationFor
().
value
<
Event
>
().
endDate
();
}
if
(
JsonLd
::
isA
<
FoodEstablishmentReservation
>
(
res
))
{
return
res
.
value
<
FoodEstablishmentReservation
>
().
endTime
();
}
return
{};
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment