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
Booleantrueif the status was changed,falseotherwise.
GetExemptionReferenceDate
procedure GetExemptionReferenceDate(DocVariant: Variant): Date
Find the reference date to be used for VAT exemptions for a given document.
Parameters / Return Value
DocVariant
VariantThe document in question for which the date should be returned.
Returns
DateThe reference date.
FindVATExemptions
procedure FindVATExemptions(DocVariant: Variant; var TmpVATExemption: Record "EOS VAT Exemption"; ValidOnly: Boolean): Boolean
Parameters / Return Value
DocVariant
VariantTmpVATExemption
Record "EOS VAT Exemption"ValidOnly
BooleanReturns
Boolean
FindVATExemptions
procedure FindVATExemptions(DocVariant: Variant; var TmpVATExemption: Record "EOS VAT Exemption"; ValidOnly: Boolean; UseSpecificReferenceDate: Date): Boolean
Parameters / Return Value
DocVariant
VariantTmpVATExemption
Record "EOS VAT Exemption"ValidOnly
BooleanUseSpecificReferenceDate
DateReturns
Boolean
CollectDocumentExemptions
procedure CollectDocumentExemptions(DocVariant: Variant; var TmpVATExemption: Record "EOS VAT Exemption")
Parameters / Return Value
DocVariant
VariantTmpVATExemption
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
VariantTextValue
Text[]Returns
Boolean
CalcUsedAmountAll
procedure CalcUsedAmountAll(SourceType: Integer; SourceNo: Code[20]; Year: Integer): Decimal
Parameters / Return Value
SourceType
IntegerSourceNo
Code[20]Year
IntegerReturns
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
VariantThe record for which the reference date was read.
ReferenceDate
DateThe 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
VariantTmpVATExemption
Record "EOS VAT Exemption"
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.