Skip to content

KVSPSAZDE-Cancel-Function#

Procedures#

CancelPostZDECard(Record KVSPSAPost. ZDE-Header) :#

Summary: this procedure cancels a posted ZDE Card then recreates a new ZDE Card with the same data.

procedure CancelPostZDECard(var PostZDEHeader: Record "KVSPSAPost. ZDE-Header"): 

Parameters:

  • PostZDEHeader: The posted ZDE Header record to cancel.

Events#

KVSPSAOnAfterInitializedEmployeeAbsenceCancellation(Record Employee Absence, Record KVSPSAPost. ZDE-Header, Record KVSPSAPost. ZDE-Line) :#

Summary: Event triggered after initializing employee absence record during ZDE cancellation process. Allows subscribers to perform additional setup or modifications on the employee absence record after it has been initialized for cancellation.

[IntegrationEvent(false, false)]
local procedure KVSPSAOnAfterInitializedEmployeeAbsenceCancellation(var EmployeeAbsence: Record "Employee Absence"; PostZDEHeader: Record "KVSPSAPost. ZDE-Header"; PostZDELine: Record "KVSPSAPost. ZDE-Line"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAZDE-Cancel-Function", 'KVSPSAOnAfterInitializedEmployeeAbsenceCancellation', '', false, false)]
local procedure DoSomethingKVSPSAOnAfterInitializedEmployeeAbsenceCancellation(var EmployeeAbsence: Record "Employee Absence"; PostZDEHeader: Record "KVSPSAPost. ZDE-Header"; PostZDELine: Record "KVSPSAPost. ZDE-Line")
begin
end;

Parameters:

  • EmployeeAbsence: The employee absence record that has been initialized and can be further modified by subscribers.
  • PostZDEHeader: The posted ZDE header record providing context for the cancellation operation.
  • PostZDELine: The posted ZDE line record that relates to the employee absence being cancelled.

KVSPSAOnBeforeCancelPostZDECard(Record KVSPSAPost. ZDE-Header, Boolean) :#

Summary: Event triggered before starting the cancellation process of a posted ZDE card. Allows subscribers to perform validation or skip the confirmation dialog during the ZDE card cancellation process.

[IntegrationEvent(false, false)]
local procedure KVSPSAOnBeforeCancelPostZDECard(var PostZDEHeader: Record "KVSPSAPost. ZDE-Header"; var ConfirmationDone: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAZDE-Cancel-Function", 'KVSPSAOnBeforeCancelPostZDECard', '', false, false)]
local procedure DoSomethingKVSPSAOnBeforeCancelPostZDECard(var PostZDEHeader: Record "KVSPSAPost. ZDE-Header"; var ConfirmationDone: Boolean)
begin
end;

Parameters:

  • PostZDEHeader: The posted ZDE header record that will be cancelled.
  • ConfirmationDone: Boolean flag that subscribers can set to indicate confirmation has been handled and the standard confirmation dialog should be skipped.

KVSPSAOnBeforePostInPostJobTimeJournalCancelation(Record KVSPSAJobTimeJournalLine, Record KVSPSAJobTimeLedgerEntry) :#

Summary: Event triggered before posting a job time journal line during ZDE cancellation process. Allows subscribers to perform validation or modifications on the job time journal line before it is posted as part of the cancellation.

[IntegrationEvent(false, false)]
local procedure KVSPSAOnBeforePostInPostJobTimeJournalCancelation(var JobTimeJournalLine: Record "KVSPSAJobTimeJournalLine"; JobTimeLedgerEntry: Record "KVSPSAJobTimeLedgerEntry"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAZDE-Cancel-Function", 'KVSPSAOnBeforePostInPostJobTimeJournalCancelation', '', false, false)]
local procedure DoSomethingKVSPSAOnBeforePostInPostJobTimeJournalCancelation(var JobTimeJournalLine: Record "KVSPSAJobTimeJournalLine"; JobTimeLedgerEntry: Record "KVSPSAJobTimeLedgerEntry")
begin
end;

Parameters:

  • JobTimeJournalLine: The job time journal line that will be posted and can be modified by subscribers.
  • JobTimeLedgerEntry: The job time ledger entry providing context and source data for the journal line posting.

KVSPSAOnBeforeShowCanceledMsg(Record KVSPSAZDE-Header, Boolean) :#

Summary: Event triggered before displaying the cancellation confirmation message for a ZDE card. Allows subscribers to customize or suppress the cancellation message display during the ZDE card cancellation process.

[IntegrationEvent(false, false)]
local procedure KVSPSAOnBeforeShowCanceledMsg(var ZDEHeader: Record "KVSPSAZDE-Header"; var ShowCanceledMsg: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAZDE-Cancel-Function", 'KVSPSAOnBeforeShowCanceledMsg', '', false, false)]
local procedure DoSomethingKVSPSAOnBeforeShowCanceledMsg(var ZDEHeader: Record "KVSPSAZDE-Header"; var ShowCanceledMsg: Boolean)
begin
end;

Parameters:

  • ZDEHeader: The ZDE header record that has been cancelled and provides context for the message.
  • ShowCanceledMsg: Boolean flag that subscribers can modify to control whether the cancellation message should be displayed.