Skip to content

Query 141 "EU VAT Entries" with columns for Posting Groups  #26857

Description

Describe the request

Please also add these columns/fields in query 141 "EU VAT Entries":

    column(EU_Service; "EU Service")
    {
    }
    // ->
    column(GenBusPostingGroup; "Gen. Bus. Posting Group")
    {
    }
    column(GenProdPostingGroup; "Gen. Prod. Posting Group")
    {
    }
    column(VATBusPostingGroup; "VAT Bus. Posting Group")
    {
    }
    column(VATProdPostingGroup; "VAT Prod. Posting Group")
    {
    }
    // <-
    column(Entry_No; "Entry No.")
    {
    }

Additional context

We need to be able to narrow down the VAT Entries included in a given VAT Report by filtering on the Posting Groups.

In Codeunit 140 "EC Sales List Suggest Lines" the event publisher:

OnPopulateVatEntryLinesOnAfterEUVATEntriesSetFilters(var VATReportHeader: Record "VAT Report Header"; var EUVATEntries: Query "EU VAT Entries")

is triggered right before the query is opened, allowing one to set additional filters on columns defined in the query.

Adding the Posting Groups to the query definition enables the use of filters on those columns also.

It will also improve the extendability when subscribing to the event publisher:

OnBeforeAddOrUpdateECLLine(EUVATEntries: Query "EU VAT Entries"; var ECSLVATReportLine: Record "ECSL VAT Report Line"; var IsHandled: Boolean)
Internal work item: AB#542094

Metadata

Metadata

Assignees

No one assigned

    Labels

    FinanceGitHub request for Finance areaevent-requestRequest for adding an eventextensibility-enhancementNew feature or request related to extensibility

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions