Page extension 6168 PostedSalesCrdMemoWithQR
src/Apps/W1/EDocument/App/src/ClearanceModel/PostedSalesCrdMemoWithQR.PageExt.al41 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.eServices.EDocument;using Microsoft.Sales.History;pageextension 6168 PostedSalesCrdMemoWithQR extends "Posted Sales Credit Memo"{ actions { addafter("F&unctions") { action(ViewQRCode) { ApplicationArea = All; Caption = 'View QR Code'; Image = Picture; ToolTip = 'View the QR code assigned by the authority'; Visible = ShowQRCodeAction; trigger OnAction() var EDocQRCodeMgr: Codeunit "EDocument QR Code Management"; begin EDocQRCodeMgr.InitializeAndRunQRCodeViewer(Rec); end; } } } var ShowQRCodeAction: Boolean; trigger OnAfterGetRecord() begin ShowQRCodeAction := Rec."QR Code Image".Count > 0; end;}