KVSPSAHR Cockpit Mgt.#
Procedures#
CalcNewNoByNoSeriesOrPrefix(Code[20], Code[20], Code[20], Code[20], Code[20]) :#
Summary: Calculates a new number based on the provided number series or prefix and employee number. If the number series is provided, it uses that to generate the new number.
procedure CalcNewNoByNoSeriesOrPrefix(NoSeries: Code[20]; Prefix: Code[20]; EmployeeNo: Code[20]; var NewNoSeries: Code[20]; var NewNo: Code[20]): 
Parameters:
- NoSeries: The number series to use for generating the new number.
- Prefix: The prefix to use if no number series is provided.
- EmployeeNo: The employee number to use for generating the new number.
- NewNoSeries: The output variable that will hold the new number series.
- NewNo: The output variable that will hold the new number.
Events#
KVSPSAOnUnhandledCaseInNameFormatGetEmployeeNameWithHRSetup(Record KVSPSAHR Cockpit Setup, Record Employee, Text[100], Boolean) :#
[IntegrationEvent(false, false)]
local procedure KVSPSAOnUnhandledCaseInNameFormatGetEmployeeNameWithHRSetup(HRCockpitSetup: Record "KVSPSAHR Cockpit Setup"; Employee: Record "Employee"; var NewFullName: Text[100]; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAHR Cockpit Mgt.", 'KVSPSAOnUnhandledCaseInNameFormatGetEmployeeNameWithHRSetup', '', false, false)]
local procedure DoSomethingKVSPSAOnUnhandledCaseInNameFormatGetEmployeeNameWithHRSetup(HRCockpitSetup: Record "KVSPSAHR Cockpit Setup"; Employee: Record "Employee"; var NewFullName: Text[100]; var IsHandled: Boolean)
begin
end;
KVSPSAOnBeforeCalcNewNoByNoSeriesOrPrefix(Code[20], Code[20], Code[20], Code[20], Code[20], Boolean) :#
Summary: Event published before calculating new number by number series or prefix. Allows subscribers to override the default calculation logic.
[IntegrationEvent(false, false)]
local procedure KVSPSAOnBeforeCalcNewNoByNoSeriesOrPrefix(NoSeries: Code[20]; Prefix: Code[20]; EmployeeNo: Code[20]; var NewNoSeries: Code[20]; var NewNo: Code[20]; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAHR Cockpit Mgt.", 'KVSPSAOnBeforeCalcNewNoByNoSeriesOrPrefix', '', false, false)]
local procedure DoSomethingKVSPSAOnBeforeCalcNewNoByNoSeriesOrPrefix(NoSeries: Code[20]; Prefix: Code[20]; EmployeeNo: Code[20]; var NewNoSeries: Code[20]; var NewNo: Code[20]; var IsHandled: Boolean)
begin
end;
Parameters:
- NoSeries: The number series from HR Cockpit Setup.
- Prefix: The prefix from HR Cockpit Setup.
- EmployeeNo: The employee number.
- NewNoSeries: The output variable that will hold the new number series.
- NewNo: The output variable that will hold the new number.
- IsHandled: Set to true if the event subscriber handles the calculation and default logic should be skipped.