Codeunit 18008265 EOS VAT Plafond Handler
Codeunit 18008265 EOS VAT Plafond Handler
Provides verification and utility functions for handling VAT platfond for documents.
Methods
IsVATPlafond
procedure IsVATPlafond(VATBusPostingGroup: Code[20]; VATProdPostingGroup: Code[20]): Boolean
Parameters / Return Value
VATBusPostingGroup
Code[20]VATProdPostingGroup
Code[20]Returns
Boolean
IsVATPlafond
procedure IsVATPlafond(VATIdentifierCode: Code[20]): Boolean
Parameters / Return Value
VATIdentifierCode
Code[20]Returns
Boolean
CheckDocumentPlafond
procedure CheckDocumentPlafond(Document: Variant; Year: Integer; AllowGui: Boolean)
Checks plafond validity for a given document.
Parameters / Return Value
Document
VariantThe document to check for.
Year
IntegerThe competence year of the document.
AllowGui
BooleanSpecifies whether GUI interactions (such as confirms) are allowed.
GetDocumentPlafondAmount
procedure GetDocumentPlafondAmount(VATPlafondPeriod: Record "EOS VAT Plafond Period"; Document: Variant): Decimal
Calculates the amound that applies to the VAT plafond for a given document.
Parameters / Return Value
VATPlafondPeriod
Record "EOS VAT Plafond Period"The platfond period that the document is related to.
Document
VariantThe document.
Returns
DecimalThe amount.
GenerateOldPlafondRecordsYesNo
procedure GenerateOldPlafondRecordsYesNo(VATIdentifier: Record "VAT Identifier"; ChangedFieldNo: Integer)
Parameters / Return Value
VATIdentifier
Record "VAT Identifier"ChangedFieldNo
Integer
Events
OnAfterShouldShowWarning
local procedure OnAfterShouldShowWarning(Document: Variant;VATPlatfondPeriod: Record "EOS VAT Plafond Period";NewAmount: Decimal;var ShowWarning: Boolean)
Raised to decide if a warning for a given document and a given platfon period should be raised.
Parameters / Return Value
Document
VariantThe document.
VATPlatfondPeriod
Record "EOS VAT Plafond Period"The platfond period.
NewAmount
DecimalThe platfond amount for the document.
ShowWarning
BooleanSpecifies whether a warning should be issued.
OnAfterShouldShowError
local procedure OnAfterShouldShowError(Document: Variant;VATPlatfondPeriod: Record "EOS VAT Plafond Period";NewAmount: Decimal;var ShowWarning: Boolean)
Parameters / Return Value
Document
VariantVATPlatfondPeriod
Record "EOS VAT Plafond Period"NewAmount
DecimalShowWarning
Boolean
OnGetDocumentPlafondAmount
local procedure OnGetDocumentPlafondAmount(VATPlafondPeriod: Record "EOS VAT Plafond Period"; Document: Variant; var NewPlafondAmount: Decimal)
Parameters / Return Value
VATPlafondPeriod
Record "EOS VAT Plafond Period"Document
VariantNewPlafondAmount
Decimal
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.