Skip to content

KVSPSANonDedVATDimDeferralMgt#

Events#

KVSPSAOnBeforeCopyDeferralGenlJnlLineNonDeductVATFieldsFromNonDeductVATGenJnlLine(Record Gen. Journal Line, Decimal, Boolean) :#

Summary: Event triggered before copying non-deductible VAT fields from source general journal line to deferral general journal line. Allows subscribers to implement custom field copying logic or skip the standard non-deductible VAT field copying process.

[IntegrationEvent(false, false)]
local procedure KVSPSAOnBeforeCopyDeferralGenlJnlLineNonDeductVATFieldsFromNonDeductVATGenJnlLine(var TempGenJournalLine: Record "Gen. Journal Line"; AmountToDef: Decimal; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSANonDedVATDimDeferralMgt", 'KVSPSAOnBeforeCopyDeferralGenlJnlLineNonDeductVATFieldsFromNonDeductVATGenJnlLine', '', false, false)]
local procedure DoSomethingKVSPSAOnBeforeCopyDeferralGenlJnlLineNonDeductVATFieldsFromNonDeductVATGenJnlLine(var TempGenJournalLine: Record "Gen. Journal Line"; AmountToDef: Decimal; var IsHandled: Boolean)
begin
end;

Parameters:

  • TempGenJournalLine: The temporary general journal line for deferral that will receive the copied fields and can be modified by subscribers.
  • AmountToDef: The amount to defer that provides context for the field copying operation.
  • IsHandled: Boolean flag that subscribers can set to indicate they have handled the field copying and standard processing should be skipped.

KVSPSAOnBeforeCopyJobJnlLineNonDeductVATFieldsFromDeferralGenJnlLine(Record Job Journal Line, Record Gen. Journal Line, Boolean) :#

Summary: Event triggered before copying non-deductible VAT fields from deferral general journal line to job journal line. Allows subscribers to implement custom field copying logic or skip the standard non-deductible VAT field transfer to job journal line.

[IntegrationEvent(false, false)]
local procedure KVSPSAOnBeforeCopyJobJnlLineNonDeductVATFieldsFromDeferralGenJnlLine(var JobJournalLine: Record "Job Journal Line"; GenJournalLine: Record "Gen. Journal Line"; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSANonDedVATDimDeferralMgt", 'KVSPSAOnBeforeCopyJobJnlLineNonDeductVATFieldsFromDeferralGenJnlLine', '', false, false)]
local procedure DoSomethingKVSPSAOnBeforeCopyJobJnlLineNonDeductVATFieldsFromDeferralGenJnlLine(var JobJournalLine: Record "Job Journal Line"; GenJournalLine: Record "Gen. Journal Line"; var IsHandled: Boolean)
begin
end;

Parameters:

  • JobJournalLine: The job journal line that will receive the copied non-deductible VAT fields and can be modified by subscribers.
  • GenJournalLine: The general journal line providing source values for the field copying operation.
  • IsHandled: Boolean flag that subscribers can set to indicate they have handled the field copying and standard processing should be skipped.

KVSPSAOnBeforeGetNonDeductibleVATPctForDeferralGenJnlLine(Decimal, Code[20], Code[20], Enum Deferral Document Type, Boolean, Boolean) :#

[IntegrationEvent(false, false)]
local procedure KVSPSAOnBeforeGetNonDeductibleVATPctForDeferralGenJnlLine(var NonDeductibleVATPct: Decimal; VATBusPostGroupCode: Code[20]; VATProdPostGroupCode: Code[20]; DeferralDocType: Enum "Deferral Document Type"; var IsHandled: Boolean; var IsHandledFuncion: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSANonDedVATDimDeferralMgt", 'KVSPSAOnBeforeGetNonDeductibleVATPctForDeferralGenJnlLine', '', false, false)]
local procedure DoSomethingKVSPSAOnBeforeGetNonDeductibleVATPctForDeferralGenJnlLine(var NonDeductibleVATPct: Decimal; VATBusPostGroupCode: Code[20]; VATProdPostGroupCode: Code[20]; DeferralDocType: Enum "Deferral Document Type"; var IsHandled: Boolean; var IsHandledFuncion: Boolean)
begin
end;

KVSPSAOnBeforeSetNonDeductVATDimDeferralGenJournalLine(Record Gen. Journal Line, Boolean, Boolean) :#

Summary: Event triggered before setting non-deductible VAT dimension fields on deferral general journal line. Allows subscribers to implement custom logic for setting non-deductible VAT dimensions or skip the standard dimension setting process.

[IntegrationEvent(false, false)]
local procedure KVSPSAOnBeforeSetNonDeductVATDimDeferralGenJournalLine(GenJournalLine: Record "Gen. Journal Line"; var IsHandled: Boolean; var IsHandledGenJnlPostLine: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSANonDedVATDimDeferralMgt", 'KVSPSAOnBeforeSetNonDeductVATDimDeferralGenJournalLine', '', false, false)]
local procedure DoSomethingKVSPSAOnBeforeSetNonDeductVATDimDeferralGenJournalLine(GenJournalLine: Record "Gen. Journal Line"; var IsHandled: Boolean; var IsHandledGenJnlPostLine: Boolean)
begin
end;

Parameters:

  • GenJournalLine: The general journal line providing context and source data for the dimension setting operation.
  • IsHandled: Boolean flag that subscribers can set to indicate they have handled the dimension setting process.
  • IsHandledGenJnlPostLine: Boolean flag that subscribers can set to indicate they have handled the general journal posting line processing.