Codeunit 18008260 EOS VED Management

Codeunit 18008260 EOS VED Management

General purpose VAT Exemption Declaration routines

Methods

ChangeExemptionStatus

procedure ChangeExemptionStatus(var VATExemption: Record "EOS VAT Exemption"): Boolean

Opens a dialog for changing the status of a VAT exemption.

Parameters / Return Value

  • VATExemption Record "EOS VAT Exemption"

    The VAT exemption.

  • Returns Boolean

    true if the status was changed, false otherwise.


GetExemptionReferenceDate

procedure GetExemptionReferenceDate(DocVariant: Variant): Date

Find the reference date to be used for VAT exemptions for a given document.

Parameters / Return Value

  • DocVariant Variant

    The document in question for which the date should be returned.

  • Returns Date

    The reference date.


FindVATExemptions

procedure FindVATExemptions(DocVariant: Variant; var TmpVATExemption: Record "EOS VAT Exemption"; ValidOnly: Boolean): Boolean

Parameters / Return Value

  • DocVariant Variant

  • TmpVATExemption Record "EOS VAT Exemption"

  • ValidOnly Boolean

  • Returns Boolean


CollectDocumentExemptions

procedure CollectDocumentExemptions(DocVariant: Variant; var TmpVATExemption: Record "EOS VAT Exemption")

Parameters / Return Value

  • DocVariant Variant

  • TmpVATExemption Record "EOS VAT Exemption"


ShowDocumentExemptions

procedure ShowDocumentExemptions(DocVariant: Variant)

Parameters / Return Value

  • DocVariant Variant

LookupVATExemption

procedure LookupVATExemption(DocVariant: Variant; var TextValue: Text): Boolean

Parameters / Return Value

  • DocVariant Variant

  • TextValue Text

  • Returns Boolean


CalcUsedAmountAll

procedure CalcUsedAmountAll(SourceType: Integer; SourceNo: Code[20]; Year: Integer): Decimal

Parameters / Return Value

  • SourceType Integer

  • SourceNo Code[20]

  • Year Integer

  • Returns Decimal


OpenVerificationUrl

procedure OpenVerificationUrl(var VATExemption: Record "EOS VAT Exemption")

Parameters / Return Value

  • VATExemption Record "EOS VAT Exemption"

Events

OnAfterGetExemptionReferenceDate

local procedure OnAfterGetExemptionReferenceDate(DocVariant: Variant; var ReferenceDate: Date)

Is called after a reference date for a VAT exemption has been determined for a given record.

Parameters / Return Value

  • DocVariant Variant

    The record for which the reference date was read.

  • ReferenceDate Date

    The resulting reference date. This might already contain a value, if the document in question yielded a reference date already.


OnCollectDocumentExemptions

local procedure OnCollectDocumentExemptions(Document: Variant; var TmpVATExemption: Record "EOS VAT Exemption")

Parameters / Return Value

  • Document Variant

  • TmpVATExemption Record "EOS VAT Exemption"



EOS Labs -