Commit 1a0f14d0 authored by Volker Krause's avatar Volker Krause
Browse files

Allow adding transfers before/after restaurant reservations

parent b243139d
......@@ -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 {};
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment