Page 6652 Posted Return Shipments
- App
- Base Application
- Namespace
- Microsoft.Purchases.History
- Versions
- 17-28
- Source table
- 6650
Versions171819202122232425262728
Source29
Source in 29
src/Layers/W1/BaseApp/Purchases/History/PostedReturnShipments.Page.al348 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.Purchases.History;
using Microsoft.Finance.Dimension;
using Microsoft.Purchases.Comment;
using Microsoft.Utilities;
page 6652 "Posted Return Shipments"
{
ApplicationArea = PurchReturnOrder;
Caption = 'Posted Purchase Return Shipments';
CardPageID = "Posted Return Shipment";
Editable = false;
PageType = List;
SourceTable = "Return Shipment Header";
SourceTableView = sorting("Posting Date")
order(descending);
UsageCategory = History;
layout
{
area(content)
{
repeater(Control1)
{
ShowCaption = false;
field("No."; Rec."No.")
{
ApplicationArea = PurchReturnOrder;
}
field("Buy-from Vendor No."; Rec."Buy-from Vendor No.")
{
ApplicationArea = PurchReturnOrder;
}
field("Order Address Code"; Rec."Order Address Code")
{
ApplicationArea = PurchReturnOrder;
Visible = false;
}
field("Buy-from Vendor Name"; Rec."Buy-from Vendor Name")
{
ApplicationArea = PurchReturnOrder;
}
field("Currency Code"; Rec."Currency Code")
{
ApplicationArea = PurchReturnOrder;
Visible = false;
}
field("Buy-from Post Code"; Rec."Buy-from Post Code")
{
ApplicationArea = PurchReturnOrder;
Visible = false;
}
field("Buy-from Country/Region Code"; Rec."Buy-from Country/Region Code")
{
ApplicationArea = PurchReturnOrder;
Visible = false;
}
field("Buy-from Contact"; Rec."Buy-from Contact")
{
ApplicationArea = PurchReturnOrder;
Visible = false;
}
field("Pay-to Vendor No."; Rec."Pay-to Vendor No.")
{
ApplicationArea = PurchReturnOrder;
Visible = false;
}
field("Pay-to Name"; Rec."Pay-to Name")
{
ApplicationArea = PurchReturnOrder;
Visible = false;
}
field("Pay-to Post Code"; Rec."Pay-to Post Code")
{
ApplicationArea = PurchReturnOrder;
Visible = false;
}
field("Pay-to Country/Region Code"; Rec."Pay-to Country/Region Code")
{
ApplicationArea = PurchReturnOrder;
Visible = false;
}
field("Pay-to Contact"; Rec."Pay-to Contact")
{
ApplicationArea = PurchReturnOrder;
Visible = false;
}
field("Ship-to Code"; Rec."Ship-to Code")
{
ApplicationArea = PurchReturnOrder;
Visible = false;
}
field("Ship-to Name"; Rec."Ship-to Name")
{
ApplicationArea = PurchReturnOrder;
Visible = false;
}
field("Ship-to Name 2"; Rec."Ship-to Name 2")
{
ApplicationArea = PurchReturnOrder;
Caption = 'Name 2';
Editable = false;
Importance = Additional;
ToolTip = 'Specifies an additional part of the name of the company at the address to which the items in the purchase return order were shipped.';
Visible = false;
}
field("Ship-to Post Code"; Rec."Ship-to Post Code")
{
ApplicationArea = PurchReturnOrder;
Visible = false;
}
field("Ship-to Country/Region Code"; Rec."Ship-to Country/Region Code")
{
ApplicationArea = PurchReturnOrder;
ToolTip = 'Specifies the country/region code of the address that the items are shipped to.';
Visible = false;
}
field("Ship-to Contact"; Rec."Ship-to Contact")
{
ApplicationArea = PurchReturnOrder;
Visible = false;
}
field("Posting Date"; Rec."Posting Date")
{
ApplicationArea = PurchReturnOrder;
Visible = false;
}
field("Purchaser Code"; Rec."Purchaser Code")
{
ApplicationArea = PurchReturnOrder;
Visible = false;
}
field("Shortcut Dimension 1 Code"; Rec."Shortcut Dimension 1 Code")
{
ApplicationArea = Dimensions;
Visible = false;
}
field("Shortcut Dimension 2 Code"; Rec."Shortcut Dimension 2 Code")
{
ApplicationArea = Dimensions;
Visible = false;
}
field("Location Code"; Rec."Location Code")
{
ApplicationArea = PurchReturnOrder;
Visible = true;
}
field("No. Printed"; Rec."No. Printed")
{
ApplicationArea = PurchReturnOrder;
}
field("Document Date"; Rec."Document Date")
{
ApplicationArea = PurchReturnOrder;
Visible = false;
}
field("Applies-to Doc. Type"; Rec."Applies-to Doc. Type")
{
ApplicationArea = PurchReturnOrder;
Visible = false;
}
}
}
area(factboxes)
{
systempart(Control1900383207; Links)
{
ApplicationArea = RecordLinks;
Visible = false;
}
systempart(Control1905767507; Notes)
{
ApplicationArea = Notes;
Visible = true;
}
}
}
actions
{
area(navigation)
{
group("&Return Shpt.")
{
Caption = '&Return Shpt.';
Image = Shipment;
action(Statistics)
{
ApplicationArea = PurchReturnOrder;
Caption = 'Statistics';
Image = Statistics;
RunObject = Page "Return Shipment Statistics";
RunPageLink = "No." = field("No.");
ShortCutKey = 'F7';
ToolTip = 'View statistical information, such as the value of posted entries, for the record.';
}
action("Co&mments")
{
ApplicationArea = PurchReturnOrder;
Caption = 'Co&mments';
Image = ViewComments;
RunObject = Page "Purch. Comment Sheet";
RunPageLink = "Document Type" = const("Posted Return Shipment"),
"No." = field("No.");
ToolTip = 'View or add comments for the record.';
}
action(Dimensions)
{
AccessByPermission = TableData Dimension = R;
ApplicationArea = Dimensions;
Caption = 'Dimensions';
Image = Dimensions;
ShortCutKey = 'Alt+D';
ToolTip = 'View or edit dimensions, such as area, project, or department, that you can assign to sales and purchase documents to distribute costs and analyze transaction history.';
trigger OnAction()
begin
Rec.ShowDimensions();
end;
}
action(CertificateOfSupplyDetails)
{
ApplicationArea = PurchReturnOrder;
Caption = 'Certificate of Supply Details';
Image = Certificate;
RunObject = Page "Certificates of Supply";
RunPageLink = "Document Type" = filter("Return Shipment"),
"Document No." = field("No.");
ToolTip = 'View the certificate of supply that you must send to your customer for signature as confirmation of receipt. You must print a certificate of supply if the shipment uses a combination of VAT business posting group and VAT product posting group that have been marked to require a certificate of supply in the VAT Posting Setup window.';
}
action(PrintCertificateofSupply)
{
ApplicationArea = PurchReturnOrder;
Caption = 'Print Certificate of Supply';
Image = PrintReport;
ToolTip = 'Print the certificate of supply that you must send to your customer for signature as confirmation of receipt.';
trigger OnAction()
var
CertificateOfSupply: Record "Certificate of Supply";
begin
CertificateOfSupply.SetRange("Document Type", CertificateOfSupply."Document Type"::"Return Shipment");
CertificateOfSupply.SetRange("Document No.", Rec."No.");
CertificateOfSupply.Print();
end;
}
}
}
area(processing)
{
action("&Print")
{
ApplicationArea = PurchReturnOrder;
Caption = '&Print';
Ellipsis = true;
Image = Print;
ToolTip = 'Prepare to print the document. A report request window for the document opens where you can specify what to include on the print-out.';
trigger OnAction()
begin
ReturnShptHeader := Rec;
OnBeforePrintRecords(Rec, ReturnShptHeader);
CurrPage.SetSelectionFilter(ReturnShptHeader);
ReturnShptHeader.PrintRecords(true);
end;
}
action("&Navigate")
{
ApplicationArea = PurchReturnOrder;
Caption = 'Find entries...';
Image = Navigate;
ShortCutKey = 'Ctrl+Alt+Q';
ToolTip = 'Find entries and documents that exist for the document number and posting date on the selected document. (Formerly this action was named Navigate.)';
trigger OnAction()
begin
Rec.Navigate();
end;
}
action("Update Document")
{
ApplicationArea = PurchReturnOrder;
Caption = 'Update Document';
Image = Edit;
ToolTip = 'Add new information that is relevant to the document, such as the country or region. You can only edit a few fields because the document has already been posted.';
trigger OnAction()
var
PostedReturnShptUpdate: Page "Posted Return Shpt. - Update";
begin
PostedReturnShptUpdate.LookupMode := true;
PostedReturnShptUpdate.SetRec(Rec);
PostedReturnShptUpdate.RunModal();
end;
}
}
area(Promoted)
{
group(Category_Process)
{
Caption = 'Process';
actionref("&Print_Promoted"; "&Print")
{
}
actionref("&Navigate_Promoted"; "&Navigate")
{
}
actionref("Update Document_Promoted"; "Update Document")
{
}
group(Category_Shipment)
{
Caption = 'Shipment';
actionref(Dimensions_Promoted; Dimensions)
{
}
actionref(Statistics_Promoted; Statistics)
{
}
actionref("Co&mments_Promoted"; "Co&mments")
{
}
}
}
}
}
trigger OnOpenPage()
begin
Rec.SetSecurityFilterOnRespCenter();
end;
var
ReturnShptHeader: Record "Return Shipment Header";
[IntegrationEvent(false, false)]
local procedure OnBeforePrintRecords(ReturnShipmentHeaderRec: Record "Return Shipment Header"; var ReturnShipmentHeaderToPrint: Record "Return Shipment Header")
begin
end;
}