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

@ -46,5 +46,4 @@ return [
],
'locale' => 'fr_FR.UTF-8',
'ticketingUrl' => 'https://cdn-besancon.mapado.com/',
'stockThreshold' => 15,
];

View file

@ -87,7 +87,8 @@ return [
"place" => $event->place()->value(),
"eventUrl" => $event->url(),
"ticketingUrl" => $ticketingUrl,
"bookableStock" => $bookableStock
"bookableStock" => $bookableStock,
"totalStock" => (int) $event->totalStock()->value(),
]);
}
}