Zum Inhalt

IsStockItemResourceFree (Opus Funktion)

Beschreibung

Diese Funktion prüft, ob ein Lagerartikel frei ist. Checks whether a stock item (room, equipment, etc.) is free for the given date and time range. Accepts either a single ID or a list of IDs. Returns 0 if free, non-zero if occupied.

Argumente

Name

Typ

Beschreibung

StockItemID

integer

[integer]

SSH_StockItemID (ID of the stock item (resource) to check; pass a list to check multiple items at once)

Array von StockItemID

Date

datetime

Datum
calendar date of the event to check

StartTime

datetime

Startzeit

EndTime

datetime

Endzeit

Rückgabewert integer

Aufruf mit einzelner ID:

0 = Der Lagerartikel ist zu den angegebenen Zeiten nicht vollständig frei

1 = Der Lagerartikel ist über die gesamte Zeitdauer frei.

Aufruf mit einem Array:

0 = Keiner der Lagerartikel ist zu den angegebenen Zeiten vollständig frei

1 = Mindestens einer der Lagerartikel ist über die gesamte Zeitdauer frei.

1 = the stock item is free, 0 = it is not free. Free means that after subtracting the quantities already booked in the given time range at least one unit of the stock item is still available. For the list form the individual results are combined with a bitwise OR, so the result is 1 as soon as at least one of the listed stock items is free, and 0 only if none of them is free. It is not a bitmask and it does not tell which item was free.e

Beispiel

xxx

Siehe auch