Table 10 Shipment Method
- App
- Base Application
- Namespace
- Microsoft.Foundation.Shipping
- Versions
- 17-28
Fields, 5Keys, 1Procedures, 1Obsolete, 2
Versions171819202122232425262728
Source29
Source in 29
src/Layers/W1/BaseApp/Foundation/Shipping/ShipmentMethod.Table.al100 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.Foundation.Shipping;
using Microsoft.Integration.Dataverse;
table 10 "Shipment Method"
{
Caption = 'Shipment Method';
DataCaptionFields = "Code", Description;
LookupPageID = "Shipment Methods";
DataClassification = CustomerContent;
fields
{
field(1; "Code"; Code[10])
{
Caption = 'Code';
ToolTip = 'Specifies a code for the shipment method.';
NotBlank = true;
}
field(2; Description; Text[100])
{
Caption = 'Description';
ToolTip = 'Specifies a description of the shipment method.';
}
field(8; "Last Modified Date Time"; DateTime)
{
Caption = 'Last Modified Date Time';
Editable = false;
}
#if not CLEANSCHEMA26
field(720; "Coupled to CRM"; Boolean)
{
Caption = 'Coupled to Dataverse';
Editable = false;
ObsoleteReason = 'Replaced by page control Coupled to Dataverse';
ObsoleteState = Removed;
ObsoleteTag = '26.0';
}
#endif
}
keys
{
key(Key1; "Code")
{
Clustered = true;
}
}
fieldgroups
{
fieldgroup(DropDown; "Code", Description)
{
}
}
trigger OnDelete()
var
ShipmentTermsTranslation: Record "Shipment Method Translation";
begin
ShipmentTermsTranslation.SetRange("Shipment Method", Code);
ShipmentTermsTranslation.DeleteAll();
end;
trigger OnInsert()
begin
SetLastModifiedDateTime();
end;
trigger OnModify()
begin
SetLastModifiedDateTime();
end;
trigger OnRename()
var
CRMSyncHelper: Codeunit "CRM Synch. Helper";
begin
SetLastModifiedDateTime();
CRMSyncHelper.UpdateCDSOptionMapping(xRec.RecordId(), RecordId());
end;
procedure TranslateDescription(var ShipmentMethod: Record "Shipment Method"; Language: Code[10])
var
ShipmentMethodTranslation: Record "Shipment Method Translation";
begin
if ShipmentMethodTranslation.Get(ShipmentMethod.Code, Language) then
ShipmentMethod.Description := ShipmentMethodTranslation.Description;
end;
local procedure SetLastModifiedDateTime()
begin
"Last Modified Date Time" := CurrentDateTime;
end;
}