Page 30169 Shpfy Refund Shipping Lines

Shopify Connector, Microsoft.Integration.Shopify

src/Apps/W1/Shopify/App/src/Order Refunds/Pages/ShpfyRefundShippingLines.Page.al99 lines, Copyright (c) Microsoft Corporation. MIT

// ------------------------------------------------------------------------------------------------// Copyright (c) Microsoft Corporation. All rights reserved.// Licensed under the MIT License. See License.txt in the project root for license information.// ------------------------------------------------------------------------------------------------namespace Microsoft.Integration.Shopify;page 30169 "Shpfy Refund Shipping Lines"{    Caption = 'Refund Shipping Lines';    PageType = List;    SourceTable = "Shpfy Refund Shipping Line";    Editable = false;    layout    {        area(content)        {            repeater(General)            {                field(Title; Rec.Title)                {                    ApplicationArea = All;                    ToolTip = 'Specifies the title of the refund shipping line.';                }                field("Subtotal Amount"; Rec."Subtotal Amount")                {                    ApplicationArea = All;                    ToolTip = 'Specifies the subtotal price of a refund shipping line.';                }                field("Presentment Subtotal Amount"; Rec."Presentment Subtotal Amount")                {                    ApplicationArea = All;                    Visible = PresentmentCurrencyVisible;                }                field("Tax Amount"; Rec."Tax Amount")                {                    ApplicationArea = All;                    ToolTip = 'Specifies the total tax amount of a refund shipping line.';                }                field("Presentment Tax Amount"; Rec."Presentment Tax Amount")                {                    ApplicationArea = All;                    Visible = PresentmentCurrencyVisible;                }            }        }    }    actions    {        area(Processing)        {            action(RetrievedShopifyData)            {                ApplicationArea = All;                Caption = 'Retrieved Shopify Data';                Image = Entry;                ToolTip = 'View the data retrieved from Shopify.';                trigger OnAction();                var                    DataCapture: Record "Shpfy Data Capture";                begin                    DataCapture.SetCurrentKey("Linked To Table", "Linked To Id");                    DataCapture.SetRange("Linked To Table", Database::"Shpfy Refund Shipping Line");                    DataCapture.SetRange("Linked To Id", Rec.SystemId);                    Page.Run(Page::"Shpfy Data Capture List", DataCapture);                end;            }        }        area(Promoted)        {            actionref(PromotedRetrievedShopifyData; RetrievedShopifyData) { }        }    }    var        PresentmentCurrencyVisible: Boolean;    trigger OnAfterGetRecord()    begin        SetPresentmentCurrencyVisibility();    end;    local procedure SetPresentmentCurrencyVisibility()    var        OrderHeader: Record "Shpfy Order Header";        RefundHeader: Record "Shpfy Refund Header";    begin        if not RefundHeader.Get(Rec."Refund Id") then            exit;        if not OrderHeader.Get(RefundHeader."Order Id") then            exit;        PresentmentCurrencyVisible := OrderHeader.IsPresentmentCurrencyOrder();    end;}