GetTeacherSalaryItemDetails (Opus Funktion)
Beschreibung¶
Returns the detailed salary items behind a salary run for a list of teachers or lessons: every single calculated item, plus the compacted view in the Group arrays. Items are compacted into one group when teacher, salary type, cost unit, cost unit offset, rate, comment, fix/var flag and override state are identical; Number and LessonNumber are summed over the group. The arguments are identical to GetTeacherSalaryItems, which returns the same run condensed to payroll lines. Nothing is written back: the export code of the lessons is not changed and no records are marked as exported. Gibt ein Objekt welches für den angegebenen Monat und die angegebenen Lehrer Lohndetails enthält:
Argumente¶
Name | Typ | Beschreibung |
|---|---|---|
IDList | [integer[]](../../standard-datentypen/integer.md) | TeacherID Liste (default) oder LessonID Liste. Siehe Argument DataType weiter unten |
MonthIDs | [integer[]](../../standard-datentypen/integer.md) | list of Months record IDs (SSL month table) that limits the variable part to lessons taking place inside those months. Required for variable salary: with an empty list no variable lesson item is produced (unless AllSingleLessons is 1 or 2). Has no effect on the fixed part, which is limited by PlanningPeriodIDs instead. Inside the additions tables an entry of 0 or -1 means "do not filter by month". |
VariableSalary | Variable Lohnanteile mitrechnen | |
FixSalary | Fixe Lohnanteile mitrechnen (gemäss den angegebenen Planungsperioden) | |
VarAdditions | 0 = Variable Lohnzusätze nicht mitrechnen 1 = Variable Lohnzusätze mitrechnen (nur freigegebene) 2 = Variable Lohnzusätze mitrechnen, inkl. nicht freigegebenen Einträgen variable additions (Zusatzzahlungen, table TeacherPayment): 0 = none, 1 = only released ones (Freigabe set), 2 = released and not yet released ones. Only evaluated when ListType is 0 (teacher IDs). | |
FixAdditions | 0 = Fixe Lohnzusätze nicht mitrechnen 1 = Fixe Lohnzusätze mitrechnen (nur freigegebene) 2 = Fixe Lohnzusätze mitrechnen, inkl. nicht freigegebenen Einträgen Jeweils gemäss den angegebenen Planungsperioden fixed additions (table TeacherFixedPayment): 0 = none, 1 = only released ones (Freigabe set), 2 = released and not yet released ones. Only evaluated when ListType is 0 (teacher IDs). | |
AllSingleLessons | Freizugebende Lektionen (z.B. Einzellektionen oder wenn normale Lektionen als freizugeben konfiguriert sind): 0 = Nur Lektionen in den angegebenen Monaten ausgeben 1 = Alle freigegebenen ausgeben 2 = Auch alle nicht freigegebenen Lektionen aller Monate ausgeben 3 = Auch alle nicht freigegebenen Lektionen nur der angegebenen Monate ausgeben Nicht freizugebende Lektionen und allfällige Fixlohn-Lektionen werden immer ausgegeben selects which lessons the variable part covers: 0 = only released lessons that fall into MonthIDs, 1 = all released lessons of all months, 2 = all lessons of all months including the ones that are not released, 3 = all lessons of the months in MonthIDs including the ones that are not released | |
PlanningPeriodIDs | [integer[]](../../standard-datentypen/integer.md) | PlanningPeriod IDs für Fixlohnanteile |
SalaryIndex | 0 = Bereits ausbezahlte Lektionen (variable Lohnanteile) werden nicht ausgegeben. -1 = Auch alle bereits ausbezahlten Lohnanteile werden ausgegeben >0 = Ausbezahlte Lohnanteile von dieser Exportnummer werden ausgegeben filters the variable part by the export code stored in the lesson (field Salary, written when salaries are exported): 0 = only lessons that were not exported yet (export code 0), -1 = all lessons regardless of the export code, n > 0 = only lessons that were exported with code n. Has no effect on the fixed part. | |
AllStatus | (optional) Default = 0. Es werden nur stattfindende Klassen berechnet = 1 bedeutet, dass auch provisorische Klassen im Lohn einberechnet werden = 2 bedeutet, dass nur provisorische Klassen berechnet werden status filter for the class groups a lesson is charged to: 0 = only class groups whose status is salary relevant (default), 1 = all active class groups, 2 = only active class groups that are not salary relevant. Values 1 and 2 behave identically for the primary class group of a lesson. | |
ListType | (optional) Default = 0 = 0 bedeutet, dass die ID Liste eine TeacherID Liste ist =1 bedeutet, dass die ID Liste eine LessonID Liste ist 0 = IDList contains teacher IDs (default), 1 = IDList contains lesson IDs. Any other value is treated as 0. With ListType 1 the additions (VarAdditions, FixAdditions) are not evaluated. | |
IncluldeInvoiceTeachers | (optional) Default = 0 = 0 bedeutet, dass Rechnungssteller nicht berücksichtigt werden = 1 bedeutet, dass auch Lektionen von Rechnungsstellern berücksichtigt werden |
Rückgabewert Object¶
object of type SalaryItemDetailsObject holding two parallel sets of values. The detail arrays carry one entry per calculated salary item
Gibt ein Objekt welches für den angegebenen Monat und die angegebenen Lehrer folgende Felder zurück gibt:
Name | Typ | Beschreibung |
|---|---|---|
Number | [float[]](../../standard-datentypen/float.md) | Anzahl Einheiten |
Rate | [float[]](../../standard-datentypen/float.md) | Betrag pro Einheit (Ansatz) |
LessonNumber | [float[]](../../standard-datentypen/float.md) | number of lessons the item is based on |
OverridePercent | [float[]](../../standard-datentypen/float.md) |
|
CostUnitOffset | [integer[]](../../standard-datentypen/integer.md) | Kostenträger Offset |
CostUnit | [integer[]](../../standard-datentypen/integer.md) | Nummer des Kostenträgers |
LessonID | [integer[]](../../standard-datentypen/integer.md) |
|
SalaryTypeID | [integer[]](../../standard-datentypen/integer.md) | ID der Lohnart |
TeacherID | [integer[]](../../standard-datentypen/integer.md) | ID der Lehrperson |
OverrideLessonTypeID | [integer[]](../../standard-datentypen/integer.md) | lesson type ID of the lesson that overrode this one, 0 = not overridden |
OverrideOwnLesson | [integer[]](../../standard-datentypen/integer.md) | 1 if the teacher also teaches the overriding lesson |
FixSalaryItem | integer[] | <> 0: Es handelt sich um einen Zusatz im Fixum. Der Wert entspricht der Anzahl der Monate, die gerchnet werden |
VarSalaryItem | integer[] | 1 = Es handelt sich um einen variablen Zusatz |
MaxPerDay | integer[] |
|
MaxPerMonth | integer[] |
|
Date | [datetime[]](../../standard-datentypen/datetime.md) | Datum der Lektion oder Start der Planungsperiode bei fixen Lohnzusätzen oder Datum des Monats bei variablen Lohnzusätzen |
Comment | string[] |
|
TrackInformation | string[] | JSON trace of the calculation |
|
| The Group arrays carry one entry per compacted group and have a different length |
GroupNumber |
|
|
GroupRate |
|
|
GroupLessonNumber | [float[]](../../standard-datentypen/float.md) |
|
GroupCostUnitOffset | integer[] |
|
GroupCostUnitID | integer[] |
|
GroupSalaryTypeID |
|
|
??GroupLessonTypeID | integer[] | ?? |
GroupTeacherID | integer[] |
|
GroupOverrideOwnLesson |
|
|
GroupOverrideLessonTypeID | integer[] |
|
GroupFixSalaryItem | integer[] |
|
GroupVarSalaryItem | integer[] |
|
GroupComment | string[] |
|
GroupTrackInformation | string[] |
|
Warnings | Warnungstexte der Lohnverarbeitung, siehe auch Lohn Exportwarnungen | |
AdditionsTable | Für spätere Erweiterung vorgesehen |
Beispiel¶
Lo_Salary1 = GetTeacherSalaryItemDetails([ID+0],Lo_Months,1,1,1,1,1,Lo_PP); |
|---|