codeunitFinanceofficial - Microsoftderived - from the source, no model text

Codeunit 799 "VAT Reporting Date Mgt"

Base Application · Microsoft.Finance.VAT.Calculation

Across versions

  1. BC23present
  2. BC241 procedures changed
  3. BC253 procedures removed, 2 events added
  4. BC261 events removed
  5. BC271 procedures changed
  6. BC284 procedures added
  7. BC29-30unchanged

Neighbourhood 41 connected objects and pages

Codeunit 6470 "Serv. VAT Reporting Mgt." (event subscribers, 2 links)Serv. VAT Reporting Mgt.Page 315 "VAT Entries" (calls, 2 links)VAT EntriesCodeunit 11 "Gen. Jnl.-Check Line" (calls)Gen. Jnl.-Check LineCodeunit 1431 "Forward Link Mgt." (calls)Forward Link Mgt.Codeunit 27 "Confirm Management" (calls)Confirm ManagementCodeunit 28 "Error Message Management" (calls)Codeunit 5700 "User Setup Management" (calls)User Setup ManagementCodeunit 8703 "Feature Telemetry" (calls)Feature TelemetryPage 119 "User Setup" (calls)User SetupPage 132 "Posted Sales Invoice" (calls)Posted Sales InvoicePage 134 "Posted Sales Credit Memo" (calls)Page 138 "Posted Purchase Invoice" (calls)Posted Purchase InvoicePage 140 "Posted Purchase Credit Memo" (calls)Page 187 "VAT Setup" (calls)VAT SetupPage 20 "General Ledger Entries" (calls)General Ledger EntriesPage 253 "Sales Journal" (calls)Sales JournalPage 254 "Purchase Journal" (calls)Page 283 "Recurring General Journal" (calls)Recurring General JournalPage 39 "General Journal" (calls)Page 42 "Sales Order" (calls)Page 43 "Sales Invoice" (calls)Page 434 "Reminder" (calls)Page 438 "Issued Reminder" (calls)Page 44 "Sales Credit Memo" (calls)Page 446 "Finance Charge Memo" (calls)Page 450 "Issued Finance Charge Memo" (calls)Page 50 "Purchase Order" (calls)Page 51 "Purchase Invoice" (calls)Page 5159 "Sales Order Archive" (calls)Page 5167 "Purchase Order Archive" (calls)Page 52 "Purchase Credit Memo" (calls)Page 5900 "Service Order" (calls)Page 5933 "Service Invoice" (calls)Page 5935 "Service Credit Memo" (calls)Page 5972 "Posted Service Credit Memo" (calls)Page 5978 "Posted Service Invoice" (calls)Page 6271 "Service Order Archive" (calls)Page 6630 "Sales Return Order" (calls)Page 6640 "Purchase Return Order" (calls)Page 6761 "Issue Reminders Setup" (calls)

Open in the neighbourhood explorer

One hop out, from the extracted relations and call graph. Up to 40 shown; the sections below list them all.

Base Application · Microsoft.Finance.VAT.Calculation · BC23-30 · source at ea08af5e · facts from BC29

Properties

Property Value
SingleInstance true
Permissions TableData “Issued Reminder Header” = rm, TableData “Issued Fin. Charge Memo Header” = rm, TableData “Purch. Inv. Header” = rm, TableData “Purch. Cr. Memo Hdr.” = rm, tabledata “Sales Invoice Header” = rm, tabledata “Sales Cr.Memo Header” = rm, TableData “G/L Entry” = rm, TableData “VAT Entry” = rm, …

Events published

  • OnBeforeIsVATDateModifiable(var IsModifiable: Boolean; var IsHandled: Boolean) (integration): Integration event raised before determining if VAT reporting dates are modifiable. Enables custom logic to control VAT date modification permissions.
  • OnBeforeIsVATDateEnabledForUse(var IsEnabled: Boolean; var IsHandled: Boolean) (integration): Integration event raised before determining if VAT reporting date feature is enabled. Enables custom logic to control VAT date feature availability.
  • OnBeforeUpdateLinkedEntries(VATEntry: Record "VAT Entry"; var IsHandled: Boolean) (integration): Integration event raised before updating linked entries for VAT date changes. Enables custom processing or replacement of standard linked entry updates.
  • OnAfterUpdateLinkedEntries(VATEntry: Record "VAT Entry") (integration): Integration event raised after updating linked entries for VAT date changes. Enables custom post-processing after standard linked entry updates are completed.
  • OnUpdatePostedDocumentsOnAfterUpdateSalesInvoice(VATEntry: Record "VAT Entry"; var Updated: Boolean) + BC25 (integration): Integration event raised after updating sales invoice header during linked entry processing. Enables custom actions after VAT date updates in posted sales invoices.
  • OnUpdatePostedDocumentsOnAfterUpdateSalesCreditMemo(VATEntry: Record "VAT Entry"; var Updated: Boolean) + BC25 (integration): Integration event raised after updating sales credit memo header during linked entry processing. Enables custom actions after VAT date updates in posted sales credit memos.

Event subscriptions

  • ResetVATReturnPeriodWarningOnBeforeGenJnlPostLineCode subscribes to Codeunit “Gen. Jnl.-Post Line” OnBeforeCode
  • ResetVATReturnPeriodWarningOnAfterFinishPosting subscribes to Codeunit “Gen. Jnl.-Post Line” OnAfterFinishPosting
  • OnAfterModifyEventCheckVATReportingDate subscribes to Table “General Ledger Setup” OnAfterModifyEvent

Procedures

  • UpdateLinkedEntries(VATEntry: Record "VAT Entry"): Updates linked entries when VAT entry VAT reporting date is modified. Synchronizes VAT date changes across related general ledger and document entries.
  • IsVATDateModifiable(): Boolean: Determines whether VAT reporting dates can be modified based on system configuration and permissions.
  • IsVATDateUsageSetToPostingDate(): Boolean: Checks whether VAT reporting date usage is configured to use posting date as default.
  • IsVATDateUsageSetToDocumentDate(): Boolean: Checks whether VAT reporting date usage is configured to use document date as default.
  • IsVATDateEnabled(): Boolean: Determines whether VAT reporting date functionality is enabled in the system.
  • IsValidDate(Variant: Variant; VATDateFieldNo: Integer): Boolean Δ BC27 (internal)
  • IsValidDate(Variant: Variant; VATDateFieldNo: Integer; ThrowError: Boolean): Boolean Δ BC27: Validates VAT reporting date against configured VAT periods and date restrictions.
  • IsValidVATDate(VATEntry: Record "VAT Entry"): Boolean: Validates VAT reporting date in the specified VAT entry against period restrictions.
  • IsValidDate(VATDate: Date): Boolean Δ BC27: Validates specified VAT date against configured VAT period restrictions and date ranges.
  • CheckDateAllowed(VATDate: Date; ContextFieldNo: Integer) Δ BC24: Validates and enforces VAT date restrictions, throwing errors for invalid dates.
  • CheckDateAllowed(VATDate: Date; ContextFieldNo: Integer; ExistingEntry: Boolean) Δ BC24 (internal)
  • CheckDateAllowed(VATDate: Date; ContextFieldNo: Integer; ExistingEntry: Boolean; CheckInAllowPeriod: Boolean) Δ BC24 (internal)
  • CheckVATDateValidInVATReturnPeriod(VATDate: Date; ContextFieldNo: Integer; ExistingEntry: Boolean) (internal)
  • ResetVATReturnPeriodWarning() + BC28

Plus 11 local procedures.

Triggers

OnRun

Calls

From the extracted call graph of BC29 (graphify-al on the snapshot checkout): calls whose target is known from a declared type or an Object::"Name" argument. Interface dispatch and calls through events are not counted, so the list is not complete.

Called by

Recent changes

Ask your agent

Procedure bodies are not stored here (D10). The call sections above are our own, per object, from the BC29 call graph. For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: bcatlas_resolve_node(object_type: "codeunit", object_name: "VAT Reporting Date Mgt"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.

Evidence 1 sources