Table of Contents

Table "Sales Shipment Line"

ID 111
Namespace: Microsoft.Sales.History

Stores line-level details for posted sales shipments including items, quantities, and tracking information.

Properties

Name Value
Caption Sales Shipment Line
DrillDownPageID Page Microsoft.Sales.History."Posted Sales Shipment Lines"
LookupPageID Page Microsoft.Sales.History."Posted Sales Shipment Lines"
Permissions TableData "Item Ledger Entry" = r, TableData "Value Entry" = r
DataClassification CustomerContent

Fields

Name Type Description
"Sell-to Customer No." Code[20]

Specifies the customer number who received the shipped items.

"Document No." Code[20]

Specifies the document number of the posted shipment this line belongs to.

"Line No." Integer

Specifies the line number within the document.

Type Enum Microsoft.Sales.Document."Sales Line Type"

Specifies the type of entity on the line such as Item, G/L Account, or Resource.

"No." Code[20]

Specifies the number of the item, G/L account, resource, or other entity on the line.

"Location Code" Code[10]

Specifies the warehouse location from which items were shipped.

"Posting Group" Code[20]

Specifies the posting group that determines G/L accounts for inventory or fixed assets.

"Shipment Date" Date

Specifies the date when the items were shipped.

Description Text[100]

Specifies a description of the item or service on the line.

"Description 2" Text[50]

Specifies additional description text for the line.

"Unit of Measure" Text[50]

Specifies the name of the unit of measure for the line.

Quantity Decimal

Specifies the quantity of items shipped on the line.

"Unit Price" Decimal

Specifies the price per unit of the item or resource.

"Unit Cost (LCY)" Decimal

Specifies the unit cost in local currency.

"VAT %" Decimal

Specifies the VAT percentage applied to the line.

"Line Discount %" Decimal

Specifies the line discount percentage applied.

"Allow Invoice Disc." Boolean

Indicates whether the line can be included in invoice discount calculation.

"Gross Weight" Decimal

Specifies the gross weight of the items on the line.

"Net Weight" Decimal

Specifies the net weight of the items on the line.

"Units per Parcel" Decimal

Specifies the number of units per parcel for shipping.

"Unit Volume" Decimal

Specifies the volume of a single unit of the item.

"Appl.-to Item Entry" Integer

Specifies the item ledger entry number to apply this line to.

"Item Shpt. Entry No." Integer

Specifies the item ledger entry number created by this shipment.

"Shortcut Dimension 1 Code" Code[20]

Specifies the first global dimension code for analysis.

"Shortcut Dimension 2 Code" Code[20]

Specifies the second global dimension code for analysis.

"Customer Price Group" Code[10]

Specifies the customer price group used for pricing.

"Job No." Code[20]

Specifies the project number associated with the line.

"Work Type Code" Code[10]

Specifies the work type code for resource pricing.

"Qty. Shipped Not Invoiced" Decimal

Contains the quantity shipped but not yet invoiced.

"Quantity Invoiced" Decimal

Specifies the quantity that has been invoiced.

"Order No." Code[20]

Specifies the sales order number from which this shipment was created.

"Order Line No." Integer

Specifies the line number from the original sales order.

"Bill-to Customer No." Code[20]

Specifies the customer number to whom the invoice will be sent.

"Purchase Order No." Code[20]

Specifies the purchase order number for drop shipments.

"Purch. Order Line No." Integer

Specifies the purchase order line number for drop shipments.

"Drop Shipment" Boolean

Indicates whether the items were shipped directly from the vendor to the customer.

"Gen. Bus. Posting Group" Code[20]

Specifies the general business posting group for determining G/L accounts.

"Gen. Prod. Posting Group" Code[20]

Specifies the general product posting group for determining G/L accounts.

"VAT Calculation Type" Enum Microsoft.Foundation.Enums."Tax Calculation Type"

Specifies the method used to calculate VAT for this line.

"Transaction Type" Code[10]

Specifies the transaction type for Intrastat reporting.

"Transport Method" Code[10]

Specifies the transport method for Intrastat reporting.

"Attached to Line No." Integer

Specifies the line number this line is attached to for extended text.

"Exit Point" Code[10]

Specifies the exit point for Intrastat reporting.

"Area" Code[10]

Specifies the area code for Intrastat reporting.

"Transaction Specification" Code[10]

Specifies additional transaction details for Intrastat reporting.

"Tax Area Code" Code[20]

Specifies the tax area code for sales tax calculation.

"Tax Liable" Boolean

Indicates whether the sale is liable for tax.

"Tax Group Code" Code[20]

Specifies the tax group code for sales tax calculation.

"VAT Bus. Posting Group" Code[20]

Specifies the VAT business posting group for VAT calculation.

"VAT Prod. Posting Group" Code[20]

Specifies the VAT product posting group for VAT calculation.

"Currency Code" Code[10]

Specifies the currency code for amounts on the shipment.

"Blanket Order No." Code[20]

Specifies the blanket order number this line originated from.

"Blanket Order Line No." Integer

Specifies the line number from the blanket order.

"VAT Base Amount" Decimal

Specifies the amount used as the base for VAT calculation.

"Unit Cost" Decimal

Specifies the unit cost in document currency.

"IC Partner Ref. Type" Enum Microsoft.Intercompany.Partner."IC Partner Reference Type"

Specifies the type of intercompany partner reference.

"IC Partner Reference" Code[20]

Specifies the intercompany partner reference code.

"Posting Date" Date

Specifies the date when the line was posted.

"IC Item Reference No." Code[50]

Specifies the item reference number for intercompany transactions.

"Dimension Set ID" Integer

Specifies the unique identifier for the dimension set applied to this line.

"Authorized for Credit Card" Boolean

Indicates whether the shipment was authorized for credit card payment.

"Job Task No." Code[20]

Specifies the project task number for project-related shipments.

"Job Contract Entry No." Integer

Specifies the project contract entry number for billing.

"Variant Code" Code[10]

Specifies the item variant code for items with variants.

"Bin Code" Code[20]

Specifies the warehouse bin code where items were stored.

"Qty. per Unit of Measure" Decimal

Specifies the quantity per unit of measure for conversion.

"Unit of Measure Code" Code[10]

Specifies the unit of measure code for the line.

"Quantity (Base)" Decimal

Specifies the quantity in the base unit of measure.

"Qty. Invoiced (Base)" Decimal

Specifies the invoiced quantity in the base unit of measure.

"FA Posting Date" Date

Specifies the posting date for fixed asset transactions.

"Depreciation Book Code" Code[10]

Specifies the depreciation book for fixed asset posting.

"Depr. until FA Posting Date" Boolean

Indicates whether to calculate depreciation until the FA posting date.

"Duplicate in Depreciation Book" Code[10]

Specifies a depreciation book to duplicate the entry to.

"Use Duplication List" Boolean

Indicates whether to use the duplication list for fixed asset posting.

"Responsibility Center" Code[10]

Specifies the responsibility center for the line.

"Item Category Code" Code[20]

Specifies the item category code for categorization.

Nonstock Boolean

Indicates whether the item is a catalog item.

"Purchasing Code" Code[10]

Specifies the purchasing code for special order handling.

"Item Reference No." Code[50]

Specifies the item reference number used by the customer.

"Item Reference Unit of Measure" Code[10]

Specifies the unit of measure associated with the item reference.

"Item Reference Type" Enum Microsoft.Inventory.Item.Catalog."Item Reference Type"

Specifies the type of item reference such as customer or vendor.

"Item Reference Type No." Code[30]

Specifies the number associated with the item reference type.

"Requested Delivery Date" Date

Specifies the date the customer requested delivery.

"Promised Delivery Date" Date

Specifies the date that was promised for delivery.

"Shipping Time" DateFormula

Specifies the time required for shipping from the shipping agent.

"Outbound Whse. Handling Time" DateFormula

Specifies the time required for outbound warehouse handling.

"Planned Delivery Date" Date

Specifies the planned delivery date calculated by the system.

"Planned Shipment Date" Date

Specifies the planned shipment date calculated by the system.

"External Document No." Code[35]

Specifies the external document number from the customer's system for reference.

"Your Reference" Text[35]

Specifies the reference number provided by the customer for this shipment line.

"Appl.-from Item Entry" Integer

Specifies the item ledger entry to apply from for cost tracking.

"Item Charge Base Amount" Decimal

Specifies the base amount for item charge allocation.

Correction Boolean

Indicates whether this line is a correction entry.

"Return Reason Code" Code[10]

Specifies the reason code if items were returned.

"Price Calculation Method" Enum Microsoft.Pricing.Calculation."Price Calculation Method"

Specifies the method used for price calculation.

"Allow Line Disc." Boolean

Indicates whether line discounts are allowed for this line.

"Customer Disc. Group" Code[20]

Specifies the customer discount group for line discount calculation.

"Document Id" Guid

Stores the unique identifier for the parent document.

SystemId Guid
SystemCreatedAt DateTime
SystemCreatedBy Guid
SystemModifiedAt DateTime
SystemModifiedBy Guid
SystemCreatedByUserName Text[50]
SystemCreatedByFullName Text[80]
SystemModifiedByUserName Text[50]
SystemModifiedByFullName Text[80]
SystemRowVersion BigInteger

Methods

GetCurrencyCode

Retrieves the currency code from the sales shipment header.

procedure GetCurrencyCode(): Code[10]

Returns

Type Description
Code[10]

The currency code for this shipment line.

ShowDimensions

Opens the dimension set entries page for this shipment line.

procedure ShowDimensions()

ShowItemTrackingLines

Opens the Item Tracking Lines page showing the tracking for this shipment line.

procedure ShowItemTrackingLines()

InsertInvLineFromShptLine

Inserts a sales invoice line from this shipment line when creating an invoice from a shipment.

procedure InsertInvLineFromShptLine(var SalesLine: Record "Sales Line")

Parameters

Name Type Description
SalesLine Table Microsoft.Sales.Document."Sales Line"

Returns the created sales invoice line.

GetSalesInvLines

Retrieves invoice lines associated with this shipment line.

procedure GetSalesInvLines(var TempSalesInvoiceLine: Record "Sales Invoice Line" temporary)

Parameters

Name Type Description
TempSalesInvoiceLine Table Microsoft.Sales.History."Sales Invoice Line"

Returns the temporary sales invoice lines.

CalcShippedSaleNotReturned

Calculates the shipped sales quantity that has not been returned.

procedure CalcShippedSaleNotReturned(var ShippedQtyNotReturned: Decimal; var RevUnitCostLCY: Decimal; ExactCostReverse: Boolean)

Parameters

Name Type Description
ShippedQtyNotReturned Decimal

Returns the quantity shipped but not returned.

RevUnitCostLCY Decimal

Returns the reverse unit cost in local currency.

ExactCostReverse Boolean

Specifies whether to use exact cost reversing.

FilterPstdDocLnItemLedgEntries

Applies filters to item ledger entries to retrieve entries for this posted document line.

procedure FilterPstdDocLnItemLedgEntries(var ItemLedgEntry: Record "Item Ledger Entry")

Parameters

Name Type Description
ItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"

The item ledger entry record to apply filters to.

ShowItemSalesInvLines

Opens a page displaying the invoice lines for this shipment line.

procedure ShowItemSalesInvLines()

ShowLineComments

Opens a page displaying the comments for this shipment line.

procedure ShowLineComments()

ShowAsmToOrder

Shows the posted assembly order linked to this shipment line.

procedure ShowAsmToOrder()

ShowShortcutDimCode

Retrieves the shortcut dimension codes for this shipment line.

procedure ShowShortcutDimCode(var ShortcutDimCode: array[8] of Code[20])

Parameters

Name Type Description
ShortcutDimCode array[8] of Code[20]

Returns the array of shortcut dimension codes.

AsmToShipmentExists

Checks if a posted assembly order exists for this shipment line.

procedure AsmToShipmentExists(var PostedAsmHeader: Record "Posted Assembly Header"): Boolean

Parameters

Name Type Description
PostedAsmHeader Table Microsoft.Assembly.History."Posted Assembly Header"

Returns the posted assembly header if found.

Returns

Type Description
Boolean

Returns true if a linked assembly order exists.

InitFromSalesLine

Initializes the sales shipment line from a sales line when posting a shipment.

procedure InitFromSalesLine(SalesShptHeader: Record "Sales Shipment Header"; SalesLine: Record "Sales Line")

Parameters

Name Type Description
SalesShptHeader Table Microsoft.Sales.History."Sales Shipment Header"

The sales shipment header to link to.

SalesLine Table Microsoft.Sales.Document."Sales Line"

The sales line to copy data from.

ClearSalesLineValues

Clears quantity, amount, and related fields on a sales line when copying from shipment.

procedure ClearSalesLineValues(var SalesLine: Record "Sales Line")

Parameters

Name Type Description
SalesLine Table Microsoft.Sales.Document."Sales Line"

The sales line to clear values from.

FormatType

Formats the line type for display, handling blank types specially.

procedure FormatType(): Text

Returns

Type Description
Text

Returns the formatted type text.

CalcBaseQuantities

Calculates base quantity fields on a sales line using the specified quantity factor.

procedure CalcBaseQuantities(var SalesLine: Record "Sales Line"; QtyFactor: Decimal)

Parameters

Name Type Description
SalesLine Table Microsoft.Sales.Document."Sales Line"

The sales line to update base quantities on.

QtyFactor Decimal

The factor to multiply quantities by (typically qty per unit of measure).

GetCaptionClass

Retrieves the caption class for a specified field.

procedure GetCaptionClass(FieldNumber: Integer): Text[80]

Parameters

Name Type Description
FieldNumber Integer

The field number to get the caption class for.

Returns

Type Description
Text[80]

The caption class string for the field.

HasTypeToFillMandatoryFields

Determines whether the line has a type that requires mandatory fields to be filled.

procedure HasTypeToFillMandatoryFields(): Boolean

Returns

Type Description
Boolean

Returns true if the line type is not blank.

UpdateReferencedIds

Updates the referenced IDs such as Document Id for API integrations.

procedure UpdateReferencedIds()

SetSecurityFilterOnRespCenter

Applies a security filter based on the user's responsibility center setup.

procedure SetSecurityFilterOnRespCenter()

Events

OnAfterClearSalesLineValues

Raised after clearing sales line values from the sales shipment line.

[IntegrationEvent(False,False)]
local procedure OnAfterClearSalesLineValues(var SalesShipmentLine: Record "Sales Shipment Line"; var SalesLine: Record "Sales Line")

Parameters

Name Type Description
SalesShipmentLine Table Microsoft.Sales.History."Sales Shipment Line"

The sales shipment line record.

SalesLine Table Microsoft.Sales.Document."Sales Line"

The sales line with cleared values.

OnAfterDescriptionSalesLineInsert

Raised after inserting a description sales line from the shipment line.

[IntegrationEvent(False,False)]
local procedure OnAfterDescriptionSalesLineInsert(var SalesLine: Record "Sales Line"; SalesShipmentLine: Record "Sales Shipment Line"; var NextLineNo: Integer)

Parameters

Name Type Description
SalesLine Table Microsoft.Sales.Document."Sales Line"

The inserted description sales line.

SalesShipmentLine Table Microsoft.Sales.History."Sales Shipment Line"

The source sales shipment line.

NextLineNo Integer

The next line number after insertion.

OnAfterInitFromSalesLine

Raised after initializing the sales shipment line from a sales line.

[IntegrationEvent(False,False)]
local procedure OnAfterInitFromSalesLine(SalesShptHeader: Record "Sales Shipment Header"; SalesLine: Record "Sales Line"; var SalesShptLine: Record "Sales Shipment Line")

Parameters

Name Type Description
SalesShptHeader Table Microsoft.Sales.History."Sales Shipment Header"

The sales shipment header record.

SalesLine Table Microsoft.Sales.Document."Sales Line"

The source sales line.

SalesShptLine Table Microsoft.Sales.History."Sales Shipment Line"

The sales shipment line being initialized.

OnAfterInsertInvLineFromShptLine

Raised after inserting an invoice line from a shipment line.

[IntegrationEvent(False,False)]
local procedure OnAfterInsertInvLineFromShptLine(var SalesLine: Record "Sales Line"; SalesOrderLine: Record "Sales Line"; var NextLineNo: Integer; var SalesShipmentLine: Record "Sales Shipment Line"; var TempSalesLine: Record "Sales Line" temporary; var SalesHeader: Record "Sales Header")

Parameters

Name Type Description
SalesLine Table Microsoft.Sales.Document."Sales Line"

The inserted sales invoice line.

SalesOrderLine Table Microsoft.Sales.Document."Sales Line"

The related sales order line.

NextLineNo Integer

The next line number after insertion.

SalesShipmentLine Table Microsoft.Sales.History."Sales Shipment Line"

The source sales shipment line.

TempSalesLine Table Microsoft.Sales.Document."Sales Line"

The temporary sales line used during insertion.

SalesHeader Table Microsoft.Sales.Document."Sales Header"

The target sales invoice header.

OnBeforeCalcShippedSaleNotReturned

Raised before calculating the shipped sales quantity not returned.

[IntegrationEvent(False,False)]
local procedure OnBeforeCalcShippedSaleNotReturned(var SalesShipmentLine: Record "Sales Shipment Line"; var ShippedQtyNotReturned: Decimal; var RevUnitCostLCY: Decimal; ExactCostReverse: Boolean; var IsHandled: Boolean)

Parameters

Name Type Description
SalesShipmentLine Table Microsoft.Sales.History."Sales Shipment Line"

The sales shipment line record.

ShippedQtyNotReturned Decimal

The shipped quantity not returned.

RevUnitCostLCY Decimal

The reverse unit cost in local currency.

ExactCostReverse Boolean

Specifies whether exact cost reversing is enabled.

IsHandled Boolean

Set to true to skip default calculation.

OnBeforeInsertInvLineFromShptLine

Raised before inserting an invoice line from a shipment line.

[IntegrationEvent(False,False)]
local procedure OnBeforeInsertInvLineFromShptLine(var SalesShptLine: Record "Sales Shipment Line"; var SalesLine: Record "Sales Line"; SalesOrderLine: Record "Sales Line"; var IsHandled: Boolean; var TransferOldExtTextLines: Codeunit "Transfer Old Ext. Text Lines")

Parameters

Name Type Description
SalesShptLine Table Microsoft.Sales.History."Sales Shipment Line"

The source sales shipment line.

SalesLine Table Microsoft.Sales.Document."Sales Line"

The sales invoice line to be inserted.

SalesOrderLine Table Microsoft.Sales.Document."Sales Line"

The related sales order line.

IsHandled Boolean

Set to true to skip default insertion.

TransferOldExtTextLines Codeunit Microsoft.Foundation.ExtendedText."Transfer Old Ext. Text Lines"

The codeunit for transferring extended text lines.

OnBeforeInsertInvLineFromShptLineBeforeInsertTextLine

Raised before inserting a text line when inserting an invoice line from a shipment line.

[IntegrationEvent(False,False)]
local procedure OnBeforeInsertInvLineFromShptLineBeforeInsertTextLine(var SalesShptLine: Record "Sales Shipment Line"; var SalesLine: Record "Sales Line"; var NextLineNo: Integer; var Handled: Boolean; TempSalesLine: Record "Sales Line" temporary; SalesInvHeader: Record "Sales Header")

Parameters

Name Type Description
SalesShptLine Table Microsoft.Sales.History."Sales Shipment Line"

The source sales shipment line.

SalesLine Table Microsoft.Sales.Document."Sales Line"

The sales line record.

NextLineNo Integer

The next line number to use.

Handled Boolean

Set to true to skip default text line insertion.

TempSalesLine Table Microsoft.Sales.Document."Sales Line"

Temporary sales line buffer.

SalesInvHeader Table Microsoft.Sales.Document."Sales Header"

The sales invoice header.

OnBeforeCodeInsertInvLineFromShptLine

Raised before the code section of InsertInvLineFromShptLine executes.

[IntegrationEvent(False,False)]
local procedure OnBeforeCodeInsertInvLineFromShptLine(var SalesShipmentLine: Record "Sales Shipment Line"; var SalesLine: Record "Sales Line"; var IsHandled: Boolean)

Parameters

Name Type Description
SalesShipmentLine Table Microsoft.Sales.History."Sales Shipment Line"

The source sales shipment line.

SalesLine Table Microsoft.Sales.Document."Sales Line"

The sales invoice line to be created.

IsHandled Boolean

Set to true to skip default processing.

OnInsertInvLineFromShptLineOnAfterSalesOrderHeaderGet

Raised after getting the sales order header during InsertInvLineFromShptLine.

[IntegrationEvent(False,False)]
local procedure OnInsertInvLineFromShptLineOnAfterSalesOrderHeaderGet(var SalesOrderHeader: Record "Sales Header"; var SalesInvHeader: Record "Sales Header"; var SalesOrderLine: Record "Sales Line")

Parameters

Name Type Description
SalesOrderHeader Table Microsoft.Sales.Document."Sales Header"

The sales order header record.

SalesInvHeader Table Microsoft.Sales.Document."Sales Header"

The sales invoice header record.

SalesOrderLine Table Microsoft.Sales.Document."Sales Line"

The sales order line record.

OnInsertInvLineFromShptLineOnAfterAssignDescription

Raised after assigning the description during InsertInvLineFromShptLine.

[IntegrationEvent(False,False)]
local procedure OnInsertInvLineFromShptLineOnAfterAssignDescription(var SalesShipmentLine: Record "Sales Shipment Line"; var SalesOrderLine: Record "Sales Line")

Parameters

Name Type Description
SalesShipmentLine Table Microsoft.Sales.History."Sales Shipment Line"

The source sales shipment line.

SalesOrderLine Table Microsoft.Sales.Document."Sales Line"

The sales order line with the assigned description.

OnInsertInvLineFromShptLineOnAfterCalcQuantities

Raised after calculating quantities during InsertInvLineFromShptLine.

[IntegrationEvent(False,False)]
local procedure OnInsertInvLineFromShptLineOnAfterCalcQuantities(var SalesLine: Record "Sales Line"; var SalesOrderLine: Record "Sales Line")

Parameters

Name Type Description
SalesLine Table Microsoft.Sales.Document."Sales Line"

The sales invoice line with calculated quantities.

SalesOrderLine Table Microsoft.Sales.Document."Sales Line"

The source sales order line.

OnInsertInvLineFromShptLineOnAfterUpdatePrepaymentsAmounts

Raised after updating prepayment amounts during InsertInvLineFromShptLine.

[IntegrationEvent(False,False)]
local procedure OnInsertInvLineFromShptLineOnAfterUpdatePrepaymentsAmounts(var SalesLine: Record "Sales Line"; var SalesOrderLine: Record "Sales Line"; var SalesShipmentLine: Record "Sales Shipment Line")

Parameters

Name Type Description
SalesLine Table Microsoft.Sales.Document."Sales Line"

The sales invoice line with updated prepayment amounts.

SalesOrderLine Table Microsoft.Sales.Document."Sales Line"

The source sales order line.

SalesShipmentLine Table Microsoft.Sales.History."Sales Shipment Line"

The sales shipment line.

OnInsertInvLineFromShptLineOnBeforeValidateQuantity

Raised before validating quantity during InsertInvLineFromShptLine.

[IntegrationEvent(False,False)]
local procedure OnInsertInvLineFromShptLineOnBeforeValidateQuantity(var SalesShipmentLine: Record "Sales Shipment Line"; var SalesLine: Record "Sales Line"; var IsHandled: Boolean; var SalesInvHeader: Record "Sales Header")

Parameters

Name Type Description
SalesShipmentLine Table Microsoft.Sales.History."Sales Shipment Line"

The source sales shipment line.

SalesLine Table Microsoft.Sales.Document."Sales Line"

The sales invoice line to validate.

IsHandled Boolean

Set to true to skip default quantity validation.

SalesInvHeader Table Microsoft.Sales.Document."Sales Header"

The sales invoice header.

OnInsertInvLineFromShptLineOnBeforeInsertDescriptionLine

Raised before inserting a description line during InsertInvLineFromShptLine.

[IntegrationEvent(False,False)]
local procedure OnInsertInvLineFromShptLineOnBeforeInsertDescriptionLine(SalesShipmentLine: Record "Sales Shipment Line"; var SalesLine: Record "Sales Line"; TempSalesLine: Record "Sales Line" temporary; var SalesInvHeader: Record "Sales Header"; var NextLineNo: Integer)

Parameters

Name Type Description
SalesShipmentLine Table Microsoft.Sales.History."Sales Shipment Line"

The source sales shipment line.

SalesLine Table Microsoft.Sales.Document."Sales Line"

The sales invoice line.

TempSalesLine Table Microsoft.Sales.Document."Sales Line"

Temporary sales line buffer.

SalesInvHeader Table Microsoft.Sales.Document."Sales Header"

The sales invoice header.

NextLineNo Integer

The next line number to use.

OnInsertInvLineFromShptLineOnAfterValidateInvDiscountAmount

Raised after validating invoice discount amount during InsertInvLineFromShptLine.

[IntegrationEvent(False,False)]
local procedure OnInsertInvLineFromShptLineOnAfterValidateInvDiscountAmount(var SalesLine: Record "Sales Line"; SalesOrderLine: Record "Sales Line"; SalesShipmentLine: Record "Sales Shipment Line"; SalesInvHeader: Record "Sales Header")

Parameters

Name Type Description
SalesLine Table Microsoft.Sales.Document."Sales Line"

The sales invoice line with validated discount.

SalesOrderLine Table Microsoft.Sales.Document."Sales Line"

The source sales order line.

SalesShipmentLine Table Microsoft.Sales.History."Sales Shipment Line"

The sales shipment line.

SalesInvHeader Table Microsoft.Sales.Document."Sales Header"

The sales invoice header.

OnInsertInvLineFromShptLineOnAfterInsertAllLines

Raised after inserting all lines during InsertInvLineFromShptLine.

[IntegrationEvent(False,False)]
local procedure OnInsertInvLineFromShptLineOnAfterInsertAllLines(var SalesShipmentLine: Record "Sales Shipment Line"; var SalesLine: Record "Sales Line"; var IsHandled: Boolean)

Parameters

Name Type Description
SalesShipmentLine Table Microsoft.Sales.History."Sales Shipment Line"

The source sales shipment line.

SalesLine Table Microsoft.Sales.Document."Sales Line"

The last inserted sales invoice line.

IsHandled Boolean

Set to true to skip additional processing.

OnBeforeSetSecurityFilterOnRespCenter

Raised before setting security filter on responsibility center for the sales shipment line.

[IntegrationEvent(False,False)]
local procedure OnBeforeSetSecurityFilterOnRespCenter(var SalesShipmentLine: Record "Sales Shipment Line"; var IsHandled: Boolean)

Parameters

Name Type Description
SalesShipmentLine Table Microsoft.Sales.History."Sales Shipment Line"

The sales shipment line record.

IsHandled Boolean

Set to true to skip default security filter application.

OnInsertInvLineFromShptLineOnBeforeAssigneSalesLine

Raised before assigning the sales line during InsertInvLineFromShptLine.

[IntegrationEvent(False,False)]
local procedure OnInsertInvLineFromShptLineOnBeforeAssigneSalesLine(var SalesShipmentLine: Record "Sales Shipment Line"; SalesHeaderInv: Record "Sales Header"; SalesHeaderOrder: Record "Sales Header"; var SalesLine: Record "Sales Line"; var SalesOrderLine: Record "Sales Line"; Currency: Record Currency)

Parameters

Name Type Description
SalesShipmentLine Table Microsoft.Sales.History."Sales Shipment Line"

The source sales shipment line.

SalesHeaderInv Table Microsoft.Sales.Document."Sales Header"

The sales invoice header.

SalesHeaderOrder Table Microsoft.Sales.Document."Sales Header"

The sales order header.

SalesLine Table Microsoft.Sales.Document."Sales Line"

The sales invoice line to be assigned.

SalesOrderLine Table Microsoft.Sales.Document."Sales Line"

The source sales order line.

Currency Table Microsoft.Finance.Currency.Currency

The currency record.

OnInsertInvLineFromShptLineOnBeforeSalesHeaderGet

Raised before getting the sales header during InsertInvLineFromShptLine.

[IntegrationEvent(False,False)]
local procedure OnInsertInvLineFromShptLineOnBeforeSalesHeaderGet(var SalesHeader: Record "Sales Header"; SalesShipmentLine: Record "Sales Shipment Line"; var TempSalesLine: Record "Sales Line" temporary; var IsHandled: Boolean)

Parameters

Name Type Description
SalesHeader Table Microsoft.Sales.Document."Sales Header"

The sales header record.

SalesShipmentLine Table Microsoft.Sales.History."Sales Shipment Line"

The source sales shipment line.

TempSalesLine Table Microsoft.Sales.Document."Sales Line"

Temporary sales line buffer.

IsHandled Boolean

Set to true to skip default header retrieval.

OnGetSalesInvLinesOnBeforeGetSalesInvoiceLine

Raised before getting the sales invoice line during GetSalesInvLines.

[IntegrationEvent(False,False)]
local procedure OnGetSalesInvLinesOnBeforeGetSalesInvoiceLine(var SalesInvoiceLine: Record "Sales Invoice Line")

Parameters

Name Type Description
SalesInvoiceLine Table Microsoft.Sales.History."Sales Invoice Line"

The sales invoice line record with filters applied.

OnBeforeShowItemTrackingLines

Raised before showing item tracking lines for the sales shipment line.

[IntegrationEvent(False,False)]
local procedure OnBeforeShowItemTrackingLines(var SalesShipmentLine: Record "Sales Shipment Line"; var IsHandled: Boolean)

Parameters

Name Type Description
SalesShipmentLine Table Microsoft.Sales.History."Sales Shipment Line"

The sales shipment line record.

IsHandled Boolean

Set to true to skip default item tracking display.

See also