Report 7316 Whse. - Receipt
src/Layers/W1/BaseApp/Warehouse/Document/WhseReceipt.Report.al162 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.Warehouse.Document;using Microsoft.Inventory.Location;using System.Utilities;report 7316 "Whse. - Receipt"{ ApplicationArea = Warehouse; Caption = 'Warehouse Receipt'; UsageCategory = Documents; WordMergeDataItem = "Warehouse Receipt Header"; DefaultRenderingLayout = RDLCLayout; dataset { dataitem("Warehouse Receipt Header"; "Warehouse Receipt Header") { DataItemTableView = sorting("No."); RequestFilterFields = "No."; column(No_WhseRcptHeader; "No.") { } dataitem("Integer"; "Integer") { DataItemTableView = sorting(Number) where(Number = const(1)); column(CompanyName; COMPANYPROPERTY.DisplayName()) { } column(TodayFormatted; Format(Today, 0, 4)) { } column(AssignedUserID_WhseRcptHeader; "Warehouse Receipt Header"."Assigned User ID") { IncludeCaption = true; } column(LocationCode_WhseRcptHeader; "Warehouse Receipt Header"."Location Code") { IncludeCaption = true; } column(No1_WhseRcptHeader; "Warehouse Receipt Header"."No.") { IncludeCaption = true; } column(Show1; not Location."Bin Mandatory") { } column(Show2; Location."Bin Mandatory") { } column(CurrReportPageNoCaption; CurrReportPageNoCaptionLbl) { } column(WarehouseReceiptCaption; WarehouseReceiptCaptionLbl) { } dataitem("Warehouse Receipt Line"; "Warehouse Receipt Line") { DataItemLink = "No." = field("No."); DataItemLinkReference = "Warehouse Receipt Header"; DataItemTableView = sorting("No.", "Line No."); column(ShelfNo_WhseRcptLine; "Shelf No.") { IncludeCaption = true; } column(ItemNo_WhseRcptLine; "Item No.") { IncludeCaption = true; } column(Description_WhseRcptLine; Description) { IncludeCaption = true; } column(UnitofMeasureCode_WhseRcptLine; "Unit of Measure Code") { IncludeCaption = true; } column(LocationCode_WhseRcptLine; "Location Code") { IncludeCaption = true; } column(Quantity_WhseRcptLine; Quantity) { IncludeCaption = true; } column(SourceNo_WhseRcptLine; "Source No.") { IncludeCaption = true; } column(SourceDocument_WhseRcptLine; "Source Document") { IncludeCaption = true; } column(ZoneCode_WhseRcptLine; "Zone Code") { IncludeCaption = true; } column(BinCode_WhseRcptLine; "Bin Code") { IncludeCaption = true; } trigger OnAfterGetRecord() begin this.GetLocation("Location Code"); end; } } trigger OnAfterGetRecord() begin this.GetLocation("Location Code"); end; } } requestpage { Caption = 'Warehouse Receipt'; layout { } actions { } } rendering { layout(RDLCLayout) { Type = RDLC; LayoutFile = './Warehouse/Document/WhseReceipt.rdlc'; Summary = 'Report layout made in the legacy RDLC format. Use an RDLC editor to modify the layout.'; } } labels { } var Location: Record Location; CurrReportPageNoCaptionLbl: Label 'Page'; WarehouseReceiptCaptionLbl: Label 'Warehouse - Receipt'; local procedure GetLocation(LocationCode: Code[10]) begin if LocationCode = '' then Location.Init() else if Location.Code <> LocationCode then Location.Get(LocationCode); end;}