AddPersonArticleToLesson (Opus Funktion)

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

Name

Typ

Beschreibung

LessonID

Integer

ID of the lesson to attach the resource booking to

StockItemID

Integer

ID of the stock item (resource) to book

StockItemQuantity

Float

quantity of the resource to book

AddressRoleID

Integer

ID of the address role associated with the booking

CompanyID

Integer

ID of the company associated with the booking

SeminarCenterID

Integer

ID of the seminar center associated with the booking

Unique

Integer

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

---