Skip to content

KVSPSAJobTimeJnlManagement#

Procedures#

CheckJournalUser(Record KVSPSAJobTimeJournalLine, Code[10]) :#

Summary: This function will check the journal user and set the journal batch name for the Job Time Journal Line.

procedure CheckJournalUser(var JobTimeJournalLine: Record "KVSPSAJobTimeJournalLine"; var CurrentJnlBatchName: Code[10]): 

Parameters:

  • JobTimeJournalLine:
  • CurrentJnlBatchName:

CheckName(Code[10], Record KVSPSAJobTimeJournalLine) :#

Summary: Check if the user has the right to use the journal template for the assigned resource.

procedure CheckName(CurrentJnlBatchName: Code[10]; var JobTimeJournalLine: Record "KVSPSAJobTimeJournalLine"): 

Parameters:

  • CurrentJnlBatchName:
  • JobTimeJournalLine:

OpenJnl(Code[10], Record KVSPSAJobTimeJournalLine) :#

Summary: This function will set the batch name filter for the Job Time Journal Line.

procedure OpenJnl(var CurrentJnlBatchName: Code[10]; var JobTimeJournalLine: Record "KVSPSAJobTimeJournalLine"): 

Parameters:

  • CurrentJnlBatchName:
  • JobTimeJournalLine:

SetName(Code[10], Record KVSPSAJobTimeJournalLine) :#

Summary: This function will set the journal batch name for the Job Time Journal Line.

procedure SetName(CurrentJnlBatchName: Code[10]; var JobTimeJournalLine: Record "KVSPSAJobTimeJournalLine"): 

Parameters:

  • CurrentJnlBatchName:
  • JobTimeJournalLine:

TemplateSelection(Integer, Boolean, Record KVSPSAJobTimeJournalLine, Boolean) :#

Summary: This function will open the template selection page and set the journal line.

procedure TemplateSelection(PageID: Integer; RecurringJnl: Boolean; var JobTimeJournalLine: Record "KVSPSAJobTimeJournalLine"; var JnlSelected: Boolean): 

Parameters:

  • PageID:
  • RecurringJnl:
  • JobTimeJournalLine:
  • JnlSelected:

Events#

KVSPSAOnBeforeFindJournalByUserSetup(Code[10], Record User Setup, Code[10], Boolean) :#

[IntegrationEvent(false, false)]
local procedure KVSPSAOnBeforeFindJournalByUserSetup(TemplateName: Code[10]; UserSetup: Record "User Setup"; var JournalBatchName: Code[10]; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAJobTimeJnlManagement", 'KVSPSAOnBeforeFindJournalByUserSetup', '', false, false)]
local procedure DoSomethingKVSPSAOnBeforeFindJournalByUserSetup(TemplateName: Code[10]; UserSetup: Record "User Setup"; var JournalBatchName: Code[10]; var IsHandled: Boolean)
begin
end;