Skip to content

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.

KVSPSAOnBeforeInsertInvSugJnlBatchOnCreateInvoiceSuggestionName(Record KVSPSAHR Cockpit, Record KVSPSAInv. Sug. Jnl. Template, Record KVSPSAInv. Sug. Jnl. Batch) :#

Summary: Event published before "KVSPSAInv. Sug. Jnl. Batch" is inserted. Allows subscribers to change field values of the table "KVSPSAInv. Sug. Jnl. Batch"

[IntegrationEvent(false, false)]
local procedure KVSPSAOnBeforeInsertInvSugJnlBatchOnCreateInvoiceSuggestionName(HRCockpit: Record "KVSPSAHR Cockpit"; InvSugJnlTemplate: Record "KVSPSAInv. Sug. Jnl. Template"; var InvSugJnlBatch: Record "KVSPSAInv. Sug. Jnl. Batch"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAHR Cockpit Mgt.", 'KVSPSAOnBeforeInsertInvSugJnlBatchOnCreateInvoiceSuggestionName', '', false, false)]
local procedure DoSomethingKVSPSAOnBeforeInsertInvSugJnlBatchOnCreateInvoiceSuggestionName(HRCockpit: Record "KVSPSAHR Cockpit"; InvSugJnlTemplate: Record "KVSPSAInv. Sug. Jnl. Template"; var InvSugJnlBatch: Record "KVSPSAInv. Sug. Jnl. Batch")
begin
end;

Parameters:

  • HRCockpit: The HR Cockpit for which a new Inv. Sug. Jnl. Batch is created
  • InvSugJnlTemplate: The Inv. Sug. Jnl. Template for which a new Inv. Sug. Batch is created
  • InvSugJnlBatch: The new Inv. Sug. Jnl. Batch before it is inserted