Table extension 36950 Accounting Period

PowerBI Reports, Microsoft.PowerBIReports

Source AL, 30 lines

src/Apps/W1/PowerBIReports/App/Core/TableExtensions/AccountingPeriod.TableExt.allines 9 to 24 of 30, Copyright (c) Microsoft Corporation. MIT

tableextension 36950 "Accounting Period" extends "Accounting Period"{    fields    {        modify("Starting Date")        {            trigger OnAfterValidate()            var                PBISetup: Record "PowerBI Reports Setup";            begin                if PBISetup.Get() then begin                    if "Starting Date" < PBISetup."Date Table Starting Date" then                        PBISetup."Date Table Starting Date" := "Starting Date";                    if "Starting Date" > PBISetup."Date Table Ending Date" then                        PBISetup."Date Table Ending Date" := "Starting Date";                    if PBISetup.WritePermission() then

All 30 lines

Extends 1

table 50 "Accounting Period"Base Application17-29