Table 439 Handled IC Inbox Sales Line, source in 29
Source29
src/Layers/W1/BaseApp/Finance/Intercompany/Inbox/HandledICInboxSalesLine.Table.al324 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.Intercompany.Inbox;
using Microsoft.Finance.Currency;
using Microsoft.Finance.Dimension;
using Microsoft.Intercompany.Dimension;
using Microsoft.Intercompany.GLAccount;
using Microsoft.Intercompany.Partner;
using Microsoft.Inventory.Item;
using Microsoft.Inventory.Item.Catalog;
using Microsoft.Projects.Project.Job;
using Microsoft.Sales.Document;
using Microsoft.Utilities;
/// <summary>
/// Archives sales document line details for processed intercompany inbox transactions.
/// Stores detailed line information including items, quantities, prices, and dimensions for historical tracking and audit purposes.
/// </summary>
table 439 "Handled IC Inbox Sales Line"
{
Caption = 'Handled IC Inbox Sales Line';
DataClassification = CustomerContent;
fields
{
/// <summary>
/// Type of sales document for this handled line (Order, Invoice, Credit Memo, Return Order).
/// </summary>
field(1; "Document Type"; Enum "IC Inbox Sales Document Type")
{
Caption = 'Document Type';
Editable = false;
}
/// <summary>
/// Document number of the handled sales document.
/// </summary>
field(3; "Document No."; Code[20])
{
Caption = 'Document No.';
Editable = false;
}
/// <summary>
/// Line number for sequencing lines within the handled sales document.
/// </summary>
field(4; "Line No."; Integer)
{
Caption = 'Line No.';
Editable = false;
}
/// <summary>
/// Description of the item or service sold in this handled sales line.
/// </summary>
field(11; Description; Text[100])
{
Caption = 'Description';
Editable = false;
}
/// <summary>
/// Additional description text for this handled sales line.
/// </summary>
field(12; "Description 2"; Text[50])
{
Caption = 'Description 2';
DataClassification = CustomerContent;
}
/// <summary>
/// Quantity of items or services for this handled sales line.
/// </summary>
field(15; Quantity; Decimal)
{
AutoFormatType = 0;
Caption = 'Quantity';
DecimalPlaces = 0 : 5;
Editable = false;
}
/// <summary>
/// Unit price for each item or service in this handled sales line.
/// </summary>
field(22; "Unit Price"; Decimal)
{
AutoFormatExpression = Rec."Currency Code";
AutoFormatType = 2;
Caption = 'Unit Price';
Editable = false;
}
/// <summary>
/// Line discount percentage applied to this handled sales line.
/// </summary>
field(27; "Line Discount %"; Decimal)
{
AutoFormatType = 0;
Caption = 'Line Discount %';
DecimalPlaces = 0 : 5;
MaxValue = 100;
MinValue = 0;
}
/// <summary>
/// Line discount amount calculated from percentage and unit price for this handled sales line.
/// </summary>
field(28; "Line Discount Amount"; Decimal)
{
AutoFormatExpression = Rec."Currency Code";
AutoFormatType = 1;
Caption = 'Line Discount Amount';
Editable = false;
}
/// <summary>
/// Total amount for this handled sales line excluding VAT.
/// </summary>
field(29; Amount; Decimal)
{
AutoFormatExpression = Rec."Currency Code";
AutoFormatType = 1;
Caption = 'Amount';
Editable = false;
}
/// <summary>
/// Total amount for this handled sales line including VAT.
/// </summary>
field(30; "Amount Including VAT"; Decimal)
{
AutoFormatExpression = Rec."Currency Code";
AutoFormatType = 1;
Caption = 'Amount Including VAT';
Editable = false;
}
/// <summary>
/// Project number for archived job-related sales line tracking.
/// </summary>
field(45; "Job No."; Code[20])
{
AccessByPermission = TableData Job = R;
Caption = 'Project No.';
Editable = false;
}
/// <summary>
/// Invoice discount amount for archived sales line calculation.
/// </summary>
field(69; "Inv. Discount Amount"; Decimal)
{
AutoFormatExpression = Rec."Currency Code";
AutoFormatType = 1;
Caption = 'Inv. Discount Amount';
Editable = false;
}
/// <summary>
/// Indicates archived drop shipment delivery method for direct vendor fulfillment.
/// </summary>
field(73; "Drop Shipment"; Boolean)
{
AccessByPermission = TableData "Drop Shpt. Post. Buffer" = R;
Caption = 'Drop Shipment';
Editable = false;
}
/// <summary>
/// Currency code for archived sales line monetary denomination.
/// </summary>
field(91; "Currency Code"; Code[10])
{
Caption = 'Currency Code';
Editable = false;
TableRelation = Currency;
}
/// <summary>
/// VAT base amount for archived sales line tax calculation reference.
/// </summary>
field(99; "VAT Base Amount"; Decimal)
{
AutoFormatExpression = Rec."Currency Code";
AutoFormatType = 1;
Caption = 'VAT Base Amount';
Editable = false;
}
/// <summary>
/// Line amount for archived sales line total value calculation.
/// </summary>
field(103; "Line Amount"; Decimal)
{
AutoFormatExpression = Rec."Currency Code";
AutoFormatType = 1;
Caption = 'Line Amount';
Editable = false;
}
/// <summary>
/// VAT difference for archived sales line tax calculation adjustment.
/// </summary>
field(104; "VAT Difference"; Decimal)
{
AutoFormatExpression = Rec."Currency Code";
AutoFormatType = 1;
Caption = 'VAT Difference';
Editable = false;
}
/// <summary>
/// IC partner reference type for archived cross-company item identification.
/// </summary>
field(107; "IC Partner Ref. Type"; Enum "IC Partner Reference Type")
{
Caption = 'IC Partner Ref. Type';
Editable = false;
}
/// <summary>
/// IC partner reference for archived intercompany item cross-reference.
/// </summary>
field(108; "IC Partner Reference"; Code[20])
{
Caption = 'IC Partner Reference';
Editable = false;
TableRelation = if ("IC Partner Ref. Type" = const(" ")) "Standard Text"
else
if ("IC Partner Ref. Type" = const("G/L Account")) "IC G/L Account"
else
if ("IC Partner Ref. Type" = const(Item)) Item
else
if ("IC Partner Ref. Type" = const("Charge (Item)")) "Item Charge";
}
/// <summary>
/// Intercompany partner code that sent this handled sales line transaction.
/// </summary>
field(125; "IC Partner Code"; Code[20])
{
Caption = 'IC Partner Code';
Editable = false;
TableRelation = "IC Partner";
}
/// <summary>
/// Unique transaction number identifying the handled intercompany transaction.
/// </summary>
field(126; "IC Transaction No."; Integer)
{
Caption = 'IC Transaction No.';
Editable = false;
}
/// <summary>
/// Source of this handled transaction indicating whether it was returned by partner or created by partner.
/// </summary>
field(127; "Transaction Source"; Option)
{
Caption = 'Transaction Source';
Editable = false;
OptionCaption = 'Returned by Partner,Created by Partner';
OptionMembers = "Returned by Partner","Created by Partner";
}
/// <summary>
/// Item reference type for archived sales line item identification method.
/// </summary>
field(128; "Item Ref."; Option)
{
Caption = 'Item Ref.';
Editable = false;
OptionCaption = 'Local Item No.,Cross Reference,Vendor Item No.';
OptionMembers = "Local Item No.","Cross Reference","Vendor Item No.";
}
/// <summary>
/// IC item reference number for archived intercompany item cross-reference.
/// </summary>
field(138; "IC Item Reference No."; Code[50])
{
AccessByPermission = TableData "Item Reference" = R;
Caption = 'IC Item Reference No.';
}
/// <summary>
/// Unit of measure code for archived sales line quantity specification.
/// </summary>
field(5407; "Unit of Measure Code"; Code[10])
{
Caption = 'Unit of Measure Code';
Editable = false;
}
/// <summary>
/// Requested delivery date for archived sales line delivery requirement.
/// </summary>
field(5790; "Requested Delivery Date"; Date)
{
Caption = 'Requested Delivery Date';
Editable = false;
}
/// <summary>
/// Promised delivery date for archived sales line delivery commitment.
/// </summary>
field(5791; "Promised Delivery Date"; Date)
{
Caption = 'Promised Delivery Date';
Editable = false;
}
}
keys
{
key(Key1; "IC Transaction No.", "IC Partner Code", "Transaction Source", "Line No.")
{
Clustered = true;
}
}
fieldgroups
{
}
trigger OnDelete()
var
DimMgt: Codeunit DimensionManagement;
begin
DimMgt.DeleteICDocDim(
DATABASE::"Handled IC Inbox Sales Line", "IC Transaction No.", "IC Partner Code", "Transaction Source", "Line No.");
end;
/// <summary>
/// Opens the dimensions page to display IC document dimensions for this handled sales line.
/// </summary>
procedure ShowDimensions()
var
ICDocDim: Record "IC Document Dimension";
begin
TestField("IC Transaction No.");
TestField("Line No.");
ICDocDim.ShowDimensions(
DATABASE::"Handled IC Inbox Sales Line", "IC Transaction No.", "IC Partner Code", "Transaction Source", "Line No.");
end;
}