Page extension 8051 Customer Card

Subscription Billing, Microsoft.SubscriptionBilling

src/Apps/W1/Subscription Billing/App/Customer Contracts/Page Extensions/CustomerCard.PageExt.al82 lines, Copyright (c) Microsoft Corporation. MIT

namespace Microsoft.SubscriptionBilling;using Microsoft.Sales.Customer;pageextension 8051 "Customer Card" extends "Customer Card"{    actions    {        addlast(creation)        {            action(NewContract)            {                AccessByPermission = tabledata "Customer Subscription Contract" = RIM;                ApplicationArea = Basic, Suite;                Caption = 'Contract';                Image = FileContract;                RunObject = page "Customer Contract";                RunPageLink = "Sell-to Customer No." = field("No.");                RunPageMode = Create;                ToolTip = 'Create a Subscription Contract for the customer.';            }        }        addlast(Category_Category4)        {            actionref(NewContract_Promoted; NewContract)            {            }        }        addlast("&Customer")        {            action(Contracts)            {                AccessByPermission = tabledata "Customer Subscription Contract" = R;                ApplicationArea = Basic, Suite;                Caption = 'Subscription Contracts';                Image = FileContract;                RunObject = page "Customer Contracts";                RunPageLink = "Sell-to Customer No." = field("No.");                ToolTip = 'View a list of ongoing Customer Subscription Contracts.';            }            action(ServiceObjects)            {                AccessByPermission = tabledata "Subscription Header" = R;                ApplicationArea = Basic, Suite;                Caption = 'Subscriptions';                Image = ServiceItem;                RunObject = page "Service Objects";                RunPageLink = "End-User Customer No." = field("No.");                ToolTip = 'View a list of Subscriptions for the customer.';            }        }        addlast(Category_Category9)        {            actionref(Contracts_Promoted; Contracts)            {            }            actionref(ServiceObjects_Promoted; ServiceObjects)            {            }        }        addlast(reporting)        {            action(OverviewOfContractComponents)            {                Caption = 'Overview of Subscription Contract components';                ToolTip = 'Show a detailed list of Subscription Lines for the selected contract.';                Image = QualificationOverview;                ApplicationArea = All;                trigger OnAction()                var                    CustomerContract: Record "Customer Subscription Contract";                    OverviewOfContractComponents: Report "Overview Of Contract Comp";                begin                    CustomerContract.SetRange("Sell-to Customer No.", Rec."No.");                    OverviewOfContractComponents.SetTableView(CustomerContract);                    OverviewOfContractComponents.Run();                end;            }        }    }}