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