Codeunit "Sales Line Invt. Profile"

ID 99000862
Namespace: Microsoft.Sales.Document

Methods

TransferInventoryProfileFromSalesLine

procedure TransferInventoryProfileFromSalesLine(var InventoryProfile: Record "Inventory Profile", var SalesLine: Record "Sales Line", var TrackingReservationEntry: Record "Reservation Entry")

Parameters

Name Type Description
InventoryProfile Table Microsoft.Inventory.Tracking."Inventory Profile"
SalesLine Table Microsoft.Sales.Document."Sales Line"
TrackingReservationEntry Table Microsoft.Inventory.Tracking."Reservation Entry"

Events

OnAfterTransferInventoryProfileFromSalesLine

[IntegrationEvent(False,False)]
local procedure OnAfterTransferInventoryProfileFromSalesLine(var InventoryProfile: Record "Inventory Profile", var SalesLine: Record "Sales Line")

Parameters

Name Type Description
InventoryProfile Table Microsoft.Inventory.Tracking."Inventory Profile"
SalesLine Table Microsoft.Sales.Document."Sales Line"

OnBeforeTransSalesLineToProfile

[IntegrationEvent(False,False)]
local procedure OnBeforeTransSalesLineToProfile(var InventoryProfile: Record "Inventory Profile", var Item: Record Item, var SalesLine: Record "Sales Line")

Parameters

Name Type Description
InventoryProfile Table Microsoft.Inventory.Tracking."Inventory Profile"
Item Table Microsoft.Inventory.Item.Item
SalesLine Table Microsoft.Sales.Document."Sales Line"

OnTransSalesLineToProfileOnBeforeProcessLine

[IntegrationEvent(False,False)]
local procedure OnTransSalesLineToProfileOnBeforeProcessLine(SalesLine: Record "Sales Line", var ShouldProcess: Boolean, var Item: Record Item)

Parameters

Name Type Description
SalesLine Table Microsoft.Sales.Document."Sales Line"
ShouldProcess Boolean
Item Table Microsoft.Inventory.Item.Item

OnAfterFindLinesWithItemToPlan

[IntegrationEvent(False,False)]
local procedure OnAfterFindLinesWithItemToPlan(var SalesLine: Record "Sales Line", var IsHandled: Boolean, var InventoryProfile: Record "Inventory Profile", var Item: Record Item, var LineNo: Integer)

Parameters

Name Type Description
SalesLine Table Microsoft.Sales.Document."Sales Line"
IsHandled Boolean
InventoryProfile Table Microsoft.Inventory.Tracking."Inventory Profile"
Item Table Microsoft.Inventory.Item.Item
LineNo Integer

OnTransSalesLineToProfileOnBeforeTransferFromSalesLineOrder

[IntegrationEvent(False,False)]
local procedure OnTransSalesLineToProfileOnBeforeTransferFromSalesLineOrder(var Item: Record Item, var SalesLine: Record "Sales Line")

Parameters

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

OnTransSalesLineToProfileOnAfterTransferFromSalesLineOrder

[IntegrationEvent(False,False)]
local procedure OnTransSalesLineToProfileOnAfterTransferFromSalesLineOrder(var Item: Record Item, var SalesLine: Record "Sales Line", var InventoryProfile: Record "Inventory Profile")

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item
SalesLine Table Microsoft.Sales.Document."Sales Line"
InventoryProfile Table Microsoft.Inventory.Tracking."Inventory Profile"

OnTransSalesLineToProfileOnAfterInsertInventoryProfileFromOrder

[IntegrationEvent(False,False)]
local procedure OnTransSalesLineToProfileOnAfterInsertInventoryProfileFromOrder(var Item: Record Item, var SalesLine: Record "Sales Line", var InventoryProfile: Record "Inventory Profile")

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item
SalesLine Table Microsoft.Sales.Document."Sales Line"
InventoryProfile Table Microsoft.Inventory.Tracking."Inventory Profile"

OnTransSalesLineToProfileOnAfterInsertInventoryProfileFromReturnOrder

[IntegrationEvent(False,False)]
local procedure OnTransSalesLineToProfileOnAfterInsertInventoryProfileFromReturnOrder(var Item: Record Item, var SalesLine: Record "Sales Line", var InventoryProfile: Record "Inventory Profile")

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item
SalesLine Table Microsoft.Sales.Document."Sales Line"
InventoryProfile Table Microsoft.Inventory.Tracking."Inventory Profile"

OnTransSalesLineToProfileOnBeforeTransferFromSalesLineReturnOrder

[IntegrationEvent(False,False)]
local procedure OnTransSalesLineToProfileOnBeforeTransferFromSalesLineReturnOrder(var Item: Record Item, var SalesLine: Record "Sales Line")

Parameters

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

OnTransSalesLineToProfileOnAfterTransferFromSalesLineReturnOrder

[IntegrationEvent(False,False)]
local procedure OnTransSalesLineToProfileOnAfterTransferFromSalesLineReturnOrder(var Item: Record Item, var SalesLine: Record "Sales Line", var InventoryProfile: Record "Inventory Profile")

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item
SalesLine Table Microsoft.Sales.Document."Sales Line"
InventoryProfile Table Microsoft.Inventory.Tracking."Inventory Profile"

OnTransSalesLineToProfileOnBeforeInvProfileInsert

[IntegrationEvent(False,False)]
local procedure OnTransSalesLineToProfileOnBeforeInvProfileInsert(var InventoryProfile: Record "Inventory Profile", var Item: Record Item, var LineNo: Integer)

Parameters

Name Type Description
InventoryProfile Table Microsoft.Inventory.Tracking."Inventory Profile"
Item Table Microsoft.Inventory.Item.Item
LineNo Integer

See also