AddPersonArticleToLesson (Opus Funktion)
Beschreibung
Mit dieser Funktion, kann man einen Personenartikel einer Lektion hinzufügen.
Adds a resource booking (PersonArticle) for a stock item to an existing lesson and returns the ID of the booking. The function does not check availability; combine it with IsStockItemResourceFree if the resource must not be overbooked.
Argumente
Name | Typ | Beschreibung |
|---|---|---|
LessonID | ID of the lesson to attach the resource booking to | |
StockItemID | ID of the stock item (resource) to book | |
StockItemQuantity | quantity of the resource to book | |
AddressRoleID | ID of the address role associated with the booking | |
CompanyID | ID of the company associated with the booking | |
SeminarCenterID | ID of the seminar center associated with the booking | |
Unique | 1 = only create if no identical booking already exists for this lesson |
Rückgabewert integer
ID of the PersonArticle record: the newly created one, or with Unique the ID of the existing booking that was updated. Returns 0 without raising an error when nothing could be done, that is when LessonID, StockItemID, CompanyID or SeminarCenterID is not greater than 0, or when the record could not be created.
Beispiel
xxx
Siehe auch
---