add proportional stockThreshold

This commit is contained in:
isUnknown 2024-09-04 17:02:37 +02:00
parent 3ee87a6f04
commit 9391a37a1e
10 changed files with 47 additions and 21 deletions

View file

@ -37,6 +37,7 @@ function createArraySession($event, $session) {
$arraySession['duration'] = $isMapadoEvent ? $event->remoteDuration() : $event->duration();
$arraySession['ticketingUrl'] = $isMapadoEvent ? $session->ticketingUrl() : false;
$arraySession['bookableStock'] = $isMapadoEvent ? $session->bookableStock()->value() : 'free';
$arraySession['totalStock'] = $isMapadoEvent ? (int) $event->totalStock()->value() : 'free';
$arraySession['color'] = $event->color();
$arraySession['category'] = $event->category();