Table of Contents

Table "Return Shipment Line"

ID 6651
Namespace: Microsoft.Purchases.History

Properties

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

Fields

Name Type Description
"Buy-from Vendor No." Code[20]

Specifies the name of the vendor who delivered the items.

"Document No." Code[20]

Specifies the number of the related document.

"Line No." Integer
Type Enum Microsoft.Purchases.Document."Purchase Line Type"

Specifies the line type.

"No." Code[20]

Specifies the number of the involved entry or record, according to the specified number series.

"Location Code" Code[10]

Specifies the location from where inventory items to the customer on the sales document are to be shipped by default.

"Posting Group" Code[20]
Description Text[100]

Specifies either the name of or the description of the item, general ledger account or item charge.

"Description 2" Text[50]

Specifies information in addition to the description.

"Unit of Measure" Text[50]

Specifies the name of the item or resource's unit of measure, such as piece or hour.

Quantity Decimal

Specifies the number of units of the item, general ledger account, or item charge on the line.

"Direct Unit Cost" Decimal

Specifies the cost of one unit of the selected item or resource.

"Unit Cost (LCY)" Decimal
"VAT %" Decimal
"Line Discount %" Decimal
"Unit Price (LCY)" Decimal
"Allow Invoice Disc." Boolean
"Gross Weight" Decimal

Specifies the gross weight of one unit of the item. In the purchase statistics window, the gross weight on the line is included in the total gross weight of all the lines for the particular purchase document.

"Net Weight" Decimal

Specifies the net weight of one unit of the item. In the purchase statistics window, the net weight on the line is included in the total net weight of all the lines for the particular purchase document.

"Units per Parcel" Decimal

Specifies the number of units per parcel of the item. In the purchase statistics window, the number of units per parcel on the line helps to determine the total number of units for all the lines for the particular purchase document.

"Unit Volume" Decimal

Specifies the volume of one unit of the item. In the purchase statistics window, the volume of one unit of the item on the line is included in the total volume of all the lines for the particular purchase document.

"Appl.-to Item Entry" Integer

Specifies the number of the item ledger entry that the document or journal line is applied to.

"Item Shpt. Entry No." Integer
"Shortcut Dimension 1 Code" Code[20]

Specifies the code for Shortcut Dimension 1, which is one of two global dimension codes that you set up in the General Ledger Setup window.

"Shortcut Dimension 2 Code" Code[20]

Specifies the code for Shortcut Dimension 2, which is one of two global dimension codes that you set up in the General Ledger Setup window.

"Job No." Code[20]

Specifies the number of the related project.

"Indirect Cost %" Decimal
"Quantity Invoiced" Decimal

Specifies how many units of the item on the line have been posted as invoiced.

"Pay-to Vendor No." Code[20]

Specifies the number of the vendor that you received the invoice from.

"Vendor Item No." Text[50]
"Gen. Bus. Posting Group" Code[20]
"Gen. Prod. Posting Group" Code[20]
"VAT Calculation Type" Enum Microsoft.Foundation.Enums."Tax Calculation Type"
"Transaction Type" Code[10]
"Transport Method" Code[10]
"Attached to Line No." Integer
"Entry Point" Code[10]
"Area" Code[10]
"Transaction Specification" Code[10]
"Tax Area Code" Code[20]
"Tax Liable" Boolean
"Tax Group Code" Code[20]
"Use Tax" Boolean
"VAT Bus. Posting Group" Code[20]
"VAT Prod. Posting Group" Code[20]
"Currency Code" Code[10]

Specifies the currency that is used on the entry.

"Blanket Order No." Code[20]

Specifies the number of the blanket order that the record originates from.

"Blanket Order Line No." Integer

Specifies the number of the blanket order line that the record originates from.

"VAT Base Amount" Decimal
"Unit Cost" Decimal
"Posting Date" Date
"IC Item Reference No." Code[50]
"Dimension Set ID" Integer
"Job Task No." Code[20]
"Job Planning Line No." Integer
"Variant Code" Code[10]

Specifies the variant of the item on the line.

"Bin Code" Code[20]

Specifies the bin where the items are picked or put away.

"Qty. per Unit of Measure" Decimal
"Unit of Measure Code" Code[10]

Specifies how each unit of the item or resource is measured, such as in pieces or hours. By default, the value in the Base Unit of Measure field on the item or resource card is inserted.

"Quantity (Base)" Decimal
"Qty. Invoiced (Base)" Decimal
"FA Posting Date" Date
"FA Posting Type" Enum Microsoft.FixedAssets.Posting."Purchase FA Posting Type"
"Depreciation Book Code" Code[10]
"Salvage Value" Decimal
"Depr. until FA Posting Date" Boolean
"Depr. Acquisition Cost" Boolean
"Maintenance Code" Code[10]
"Insurance No." Code[20]
"Budgeted FA No." Code[20]
"Duplicate in Depreciation Book" Code[10]
"Use Duplication List" Boolean
"Responsibility Center" Code[10]
"Item Category Code" Code[20]
Nonstock Boolean

Specifies that this item is a catalog item.

"Purchasing Code" Code[10]
"Item Reference No." Code[50]

Specifies the referenced item number.

"Item Reference Unit of Measure" Code[10]
"Item Reference Type" Enum Microsoft.Inventory.Item.Catalog."Item Reference Type"
"Item Reference Type No." Code[30]
"Return Qty. Shipped Not Invd." Decimal

Specifies the quantity of the item that has been posted as shipped but has not yet been posted as invoiced.

"Item Charge Base Amount" Decimal
Correction Boolean

Specifies the entry as a corrective entry. You can use the field if you need to post a corrective entry to an account.

"Return Order No." Code[20]

Specifies the return order number this line is associated with.

"Return Order Line No." Integer
"Return Reason Code" Code[10]

Specifies the code explaining why the item was returned.

"Price Calculation Method" Enum Microsoft.Pricing.Calculation."Price Calculation Method"
"Buy-from Vendor Name" Text[100]

Specifies the name of the vendor who delivered the items.

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

procedure GetCurrencyCode(): Code[10]

Returns

Type Description
Code[10]

ShowDimensions

procedure ShowDimensions()

ShowItemTrackingLines

procedure ShowItemTrackingLines()

InsertInvLineFromRetShptLine

procedure InsertInvLineFromRetShptLine(var PurchaseLine: Record "Purchase Line")

Parameters

Name Type Description
PurchaseLine Table Microsoft.Purchases.Document."Purchase Line"

GetPurchCrMemoLines

procedure GetPurchCrMemoLines(var TempPurchCrMemoLine: Record "Purch. Cr. Memo Line" temporary)

Parameters

Name Type Description
TempPurchCrMemoLine Table Microsoft.Purchases.History."Purch. Cr. Memo Line"

FilterPstdDocLnItemLedgEntries

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

Parameters

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

ShowItemPurchCrMemoLines

procedure ShowItemPurchCrMemoLines()

ShowLineComments

procedure ShowLineComments()

InitFromPurchLine

procedure InitFromPurchLine(ReturnShipmentHeader: Record "Return Shipment Header"; PurchLine: Record "Purchase Line")

Parameters

Name Type Description
ReturnShipmentHeader Table Microsoft.Purchases.History."Return Shipment Header"
PurchLine Table Microsoft.Purchases.Document."Purchase Line"

HasTypeToFillMandatoryFields

procedure HasTypeToFillMandatoryFields(): Boolean

Returns

Type Description
Boolean

SetSecurityFilterOnRespCenter

procedure SetSecurityFilterOnRespCenter()

IsProdOrder

procedure IsProdOrder(): Boolean

Returns

Type Description
Boolean

TestProdOrder

procedure TestProdOrder(): Boolean

Returns

Type Description
Boolean

Events

OnBeforeCopyPurchLineCostAndDiscountFromPurchOrderLine

[IntegrationEvent(False,False)]
local procedure OnBeforeCopyPurchLineCostAndDiscountFromPurchOrderLine(var PurchaseLine: Record "Purchase Line"; PurchOrderLine: Record "Purchase Line"; var IsHandled: Boolean)

Parameters

Name Type Description
PurchaseLine Table Microsoft.Purchases.Document."Purchase Line"
PurchOrderLine Table Microsoft.Purchases.Document."Purchase Line"
IsHandled Boolean

OnAfterCopyFieldsFromReturnShipmentLine

[IntegrationEvent(False,False)]
local procedure OnAfterCopyFieldsFromReturnShipmentLine(var ReturnShipmentLine: Record "Return Shipment Line"; var PurchaseLine: Record "Purchase Line")

Parameters

Name Type Description
ReturnShipmentLine Table Microsoft.Purchases.History."Return Shipment Line"
PurchaseLine Table Microsoft.Purchases.Document."Purchase Line"

OnAfterInitFromPurchLine

[IntegrationEvent(False,False)]
local procedure OnAfterInitFromPurchLine(ReturnShptHeader: Record "Return Shipment Header"; PurchLine: Record "Purchase Line"; var ReturnShptLine: Record "Return Shipment Line")

Parameters

Name Type Description
ReturnShptHeader Table Microsoft.Purchases.History."Return Shipment Header"
PurchLine Table Microsoft.Purchases.Document."Purchase Line"
ReturnShptLine Table Microsoft.Purchases.History."Return Shipment Line"

OnAfterInsertInvLineFromRetShptLine

[IntegrationEvent(False,False)]
local procedure OnAfterInsertInvLineFromRetShptLine(var PurchLine: Record "Purchase Line"; var PurchOrderLine: Record "Purchase Line"; var ReturnShipmentLine: Record "Return Shipment Line")

Parameters

Name Type Description
PurchLine Table Microsoft.Purchases.Document."Purchase Line"
PurchOrderLine Table Microsoft.Purchases.Document."Purchase Line"
ReturnShipmentLine Table Microsoft.Purchases.History."Return Shipment Line"

OnBeforeInsertInvLineFromRetShptLine

[IntegrationEvent(False,False)]
local procedure OnBeforeInsertInvLineFromRetShptLine(var PurchLine: Record "Purchase Line"; var PurchOrderLine: Record "Purchase Line"; var ReturnShipmentLine: Record "Return Shipment Line"; var IsHandled: Boolean; var NextLineNo: Integer)

Parameters

Name Type Description
PurchLine Table Microsoft.Purchases.Document."Purchase Line"
PurchOrderLine Table Microsoft.Purchases.Document."Purchase Line"
ReturnShipmentLine Table Microsoft.Purchases.History."Return Shipment Line"
IsHandled Boolean
NextLineNo Integer

OnInsertInvLineFromRetShptLineOnBeforeValidatePurchaseLine

[IntegrationEvent(False,False)]
local procedure OnInsertInvLineFromRetShptLineOnBeforeValidatePurchaseLine(var ReturnShipmentLine: Record "Return Shipment Line"; var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; var PurchHeader: Record "Purchase Header")

Parameters

Name Type Description
ReturnShipmentLine Table Microsoft.Purchases.History."Return Shipment Line"
PurchaseLine Table Microsoft.Purchases.Document."Purchase Line"
IsHandled Boolean
PurchHeader Table Microsoft.Purchases.Document."Purchase Header"

OnInsertInvLineFromRetShptLineOnBeforePurchLineInsert

[IntegrationEvent(False,False)]
local procedure OnInsertInvLineFromRetShptLineOnBeforePurchLineInsert(var ReturnShipmentLine: Record "Return Shipment Line"; var PurchaseLine: Record "Purchase Line"; var NextLineNo: Integer; var IsHandled: Boolean)

Parameters

Name Type Description
ReturnShipmentLine Table Microsoft.Purchases.History."Return Shipment Line"
PurchaseLine Table Microsoft.Purchases.Document."Purchase Line"
NextLineNo Integer
IsHandled Boolean

OnInsertInvLineFromRetShptLineOnBeforeClearLineNumbers

[IntegrationEvent(False,False)]
local procedure OnInsertInvLineFromRetShptLineOnBeforeClearLineNumbers(var ReturnShipmentLine: Record "Return Shipment Line"; var PurchLine: Record "Purchase Line"; var NextLineNo: Integer; var TempPurchLine: Record "Purchase Line" temporary)

Parameters

Name Type Description
ReturnShipmentLine Table Microsoft.Purchases.History."Return Shipment Line"
PurchLine Table Microsoft.Purchases.Document."Purchase Line"
NextLineNo Integer
TempPurchLine Table Microsoft.Purchases.Document."Purchase Line"

OnBeforeSetSecurityFilterOnRespCenter

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

Parameters

Name Type Description
ReturnShipmentLine Table Microsoft.Purchases.History."Return Shipment Line"
IsHandled Boolean

OnBeforeShowItemTrackingLines

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

Parameters

Name Type Description
ReturnShipmentLine Table Microsoft.Purchases.History."Return Shipment Line"
IsHandled Boolean

OnInsertInvLineFromRetShptLineOnBeforeCalculateDirectCost

[IntegrationEvent(False,False)]
local procedure OnInsertInvLineFromRetShptLineOnBeforeCalculateDirectCost(var ReturnShipmentLine: Record "Return Shipment Line"; var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var PurchasesPayablesSetup: Record "Purchases & Payables Setup"; var IsHandled: Boolean)

Parameters

Name Type Description
ReturnShipmentLine Table Microsoft.Purchases.History."Return Shipment Line"
PurchaseHeader Table Microsoft.Purchases.Document."Purchase Header"
PurchaseLine Table Microsoft.Purchases.Document."Purchase Line"
PurchasesPayablesSetup Table Microsoft.Purchases.Setup."Purchases & Payables Setup"
IsHandled Boolean

OnInsertInvLineFromRetShptLineOnAfterPurchLineInsert

[IntegrationEvent(False,False)]
local procedure OnInsertInvLineFromRetShptLineOnAfterPurchLineInsert(var ReturnShipmentLine: Record "Return Shipment Line"; var PurchaseLine: Record "Purchase Line"; var NextLineNo: Integer)

Parameters

Name Type Description
ReturnShipmentLine Table Microsoft.Purchases.History."Return Shipment Line"
PurchaseLine Table Microsoft.Purchases.Document."Purchase Line"
NextLineNo Integer

OnIsProdOrder

[IntegrationEvent(False,False)]
local procedure OnIsProdOrder(var ReturnShipmentLine: Record "Return Shipment Line"; var Result: Boolean)

Parameters

Name Type Description
ReturnShipmentLine Table Microsoft.Purchases.History."Return Shipment Line"
Result Boolean

OnTestProdOrder

[IntegrationEvent(False,False)]
local procedure OnTestProdOrder(var ReturnShipmentLine: Record "Return Shipment Line"; var Result: Boolean)

Parameters

Name Type Description
ReturnShipmentLine Table Microsoft.Purchases.History."Return Shipment Line"
Result Boolean

See also