KVSMTCWarehouseLib#
Procedures#
RunInventoryOverview(Code[10], Code[20], Code[10], Code[50], Code[50], Code[10], Decimal, Date, Boolean, Boolean) :#
procedure RunInventoryOverview(LocationCode: Code[10]; ItemNo: Code[20]; VariantCode: Code[10]; SerialNo: Code[50]; LotNo: Code[50]; PostingCode: Code[10]; SingleLotQtyBase: Decimal; ExpAllowedFromDate: Date; OnlyAvailableLine: Boolean; UseVariantFilter: Boolean):
CalculateWhseContentDetails(Code[10], Code[20], Code[10], Code[50], Code[50], Code[10], Decimal, Date, Boolean, Boolean, Boolean, Record KVSMTCWarehouseContentDetail) :#
Summary: Calculates warehouse content detail entries for a location and item/variant combination. This procedure filters and calculates warehouse content details based on various parameters including location, item tracking, posting codes, and availability criteria. Results are returned in a temporary table.
procedure CalculateWhseContentDetails(LocationCode: Code[10]; ItemNo: Code[20]; VariantCode: Code[10]; SerialNo: Code[50]; LotNo: Code[50]; PostingCode: Code[10]; SingleLotQtyBase: Decimal; ExpAllowedFromDate: Date; UseVariantFilter: Boolean; SkipNotAvailableLines: Boolean; CalculateAllQtyFields: Boolean; var TempKVSMTCWarehouseContentDetail: Record "KVSMTCWarehouseContentDetail" temporary):
Parameters:
LocationCode: The location code to filter warehouse content details. Use empty string for all locations.ItemNo: The item number to filter warehouse content details.VariantCode: The variant code to filter warehouse content details. Use empty string if not applicable.SerialNo: The serial number to filter warehouse content details. Use empty string if not applicable.LotNo: The lot number to filter warehouse content details. Use empty string if not applicable.PostingCode: The posting code to filter warehouse content details. Use empty string if not applicable.SingleLotQtyBase: Minimum available quantity base required. Returns only positions with available quantity equal or greater than this value.ExpAllowedFromDate: Minimum expiration date allowed. Filters entries with expiration date equal or greater than this date.UseVariantFilter: Indicates whether to apply the variant code filter even when the variant code parameter is blank.SkipNotAvailableLines: Indicates whether to skip entries with available quantity less than or equal to zero.CalculateAllQtyFields: Indicates whether to calculate all quantity fields for user view or only necessary fields for internal calculations.TempKVSMTCWarehouseContentDetail: Temporary table that receives the calculated warehouse content detail entries.
CreateGroupTotalsOnCalcDetails(Boolean) :#
Summary: Enables or disables the creation of group total entries during warehouse content detail calculations. When enabled, the CalculateWhseContentDetails procedure will also generate aggregated group total entries that can be retrieved using GetWhseContentGroupTotalEntries.
procedure CreateGroupTotalsOnCalcDetails(CreateGroupTotalWhseEntry: Boolean):
Parameters:
CreateGroupTotalWhseEntry: Indicates whether to create group total warehouse entries during calculation.
GetWhseContentGroupTotalEntries(Record KVSMTCWarehouseContentDetail) :#
Summary: Retrieves the aggregated group total warehouse content detail entries. This procedure returns group total entries that were created during the last execution of CalculateWhseContentDetails with CreateGroupTotalsOnCalcDetails enabled.
procedure GetWhseContentGroupTotalEntries(var KVSMTCWarehouseContentDetailGroupTotal: Record "KVSMTCWarehouseContentDetail" temporary):
Parameters:
KVSMTCWarehouseContentDetailGroupTotal: Temporary table that receives the group total warehouse content detail entries.
Events#
OnAfterSalesLine2WhseShipmentLine(Record Sales Line, Record Warehouse Shipment Line) :#
[IntegrationEvent(false, false)]
local procedure OnAfterSalesLine2WhseShipmentLine(salesLinePar: Record "Sales Line"; var whseShipmentLineVar: Record "Warehouse Shipment Line"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSMTCWarehouseLib", 'OnAfterSalesLine2WhseShipmentLine', '', false, false)]
local procedure DoSomethingOnAfterSalesLine2WhseShipmentLine(salesLinePar: Record "Sales Line"; var whseShipmentLineVar: Record "Warehouse Shipment Line")
begin
end;
OnCreateNewProdPickDocumentOnAfterCreatePickDocLines(Record Production Order, Record Prod. Order Component, Code[20], Code[10]) :#
Summary: This event is fired after the pick document lines for a production order have been created. It allows for additional custom code to be inserted that will run after the creation of the pick document lines.
[IntegrationEvent(false, false)]
local procedure OnCreateNewProdPickDocumentOnAfterCreatePickDocLines(ProductionOrder: Record "Production Order"; var ProdOrderComponent: Record "Prod. Order Component"; PickDocumentNo: Code[20]; PickFromLocationCode: Code[10]):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSMTCWarehouseLib", 'OnCreateNewProdPickDocumentOnAfterCreatePickDocLines', '', false, false)]
local procedure DoSomethingOnCreateNewProdPickDocumentOnAfterCreatePickDocLines(ProductionOrder: Record "Production Order"; var ProdOrderComponent: Record "Prod. Order Component"; PickDocumentNo: Code[20]; PickFromLocationCode: Code[10])
begin
end;
Parameters:
ProductionOrder: The production order for which the pick document lines were created.ProdOrderComponent: The component of the production order for which the pick document lines were created.PickDocumentNo: The number of the created pick document.PickLocationCode: The Location code from where the pick is happening.
OnCreateNewJobPickDocumentOnAfterCreatePickDocLines(Record Job, Record Job Planning Line, Code[20], Code[10]) :#
Summary: This event is fired after the pick document lines for a job have been created. It allows for additional custom code to be inserted that will run after the creation of the pick document lines.
[IntegrationEvent(false, false)]
local procedure OnCreateNewJobPickDocumentOnAfterCreatePickDocLines(Job: Record "Job"; var JobPlanningLine: Record "Job Planning Line"; PickDocumentNo: Code[20]; PickFromLocationCode: Code[10]):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSMTCWarehouseLib", 'OnCreateNewJobPickDocumentOnAfterCreatePickDocLines', '', false, false)]
local procedure DoSomethingOnCreateNewJobPickDocumentOnAfterCreatePickDocLines(Job: Record "Job"; var JobPlanningLine: Record "Job Planning Line"; PickDocumentNo: Code[20]; PickFromLocationCode: Code[10])
begin
end;
Parameters:
Job: The job for which the pick document lines were created.JobPlanningLine: The job planning line of the job for which the pick document lines were created.PickDocumentNo: The number of the created pick document.PickLocationCode: The Location code from where the pick is happening.
OnWriteProdPickDocLineOnBeforeInsertWhseActivityLineWithActivityTake(Record Warehouse Activity Line, Record Prod. Order Component) :#
Summary: This event is triggered before the 'Take' action warehouse activity line is inserted during the writing of pick document lines for a production order component.
[IntegrationEvent(false, false)]
local procedure OnWriteProdPickDocLineOnBeforeInsertWhseActivityLineWithActivityTake(var WarehouseActivityLine: Record "Warehouse Activity Line"; var ProdOrderComponent: Record "Prod. Order Component"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSMTCWarehouseLib", 'OnWriteProdPickDocLineOnBeforeInsertWhseActivityLineWithActivityTake', '', false, false)]
local procedure DoSomethingOnWriteProdPickDocLineOnBeforeInsertWhseActivityLineWithActivityTake(var WarehouseActivityLine: Record "Warehouse Activity Line"; var ProdOrderComponent: Record "Prod. Order Component")
begin
end;
Parameters:
WarehouseActivityLine: The warehouse activity line record that is being manipulated.ProdOrderComponent: The production order component record that the pick document line is based on.
OnWriteJobPickDocLineOnBeforeInsertWhseActivityLineWithActivityTake(Record Warehouse Activity Line, Record Job Planning Line) :#
Summary: This event is triggered before the 'Take' action warehouse activity line is inserted during the writing of pick document lines for a job planning line.
[IntegrationEvent(false, false)]
local procedure OnWriteJobPickDocLineOnBeforeInsertWhseActivityLineWithActivityTake(var WarehouseActivityLine: Record "Warehouse Activity Line"; var JobPlanningLine: Record "Job Planning Line"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSMTCWarehouseLib", 'OnWriteJobPickDocLineOnBeforeInsertWhseActivityLineWithActivityTake', '', false, false)]
local procedure DoSomethingOnWriteJobPickDocLineOnBeforeInsertWhseActivityLineWithActivityTake(var WarehouseActivityLine: Record "Warehouse Activity Line"; var JobPlanningLine: Record "Job Planning Line")
begin
end;
Parameters:
WarehouseActivityLine: The warehouse activity line record that is being manipulated.JobPlanningLine: The production order component record that the pick document line is based on.
OnWriteProdPickDocLineOnBeforeInsertWhseActivityLineWithActivityPlace(Record Warehouse Activity Line, Record Prod. Order Component) :#
Summary: This event is triggered before the 'Place' action warehouse activity line is inserted during the writing of pick document lines for a production order component.
[IntegrationEvent(false, false)]
local procedure OnWriteProdPickDocLineOnBeforeInsertWhseActivityLineWithActivityPlace(var WarehouseActivityLine: Record "Warehouse Activity Line"; var ProdOrderComponent: Record "Prod. Order Component"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSMTCWarehouseLib", 'OnWriteProdPickDocLineOnBeforeInsertWhseActivityLineWithActivityPlace', '', false, false)]
local procedure DoSomethingOnWriteProdPickDocLineOnBeforeInsertWhseActivityLineWithActivityPlace(var WarehouseActivityLine: Record "Warehouse Activity Line"; var ProdOrderComponent: Record "Prod. Order Component")
begin
end;
Parameters:
WarehouseActivityLine: The warehouse activity line record that is being manipulated.ProdOrderComponent: The production order component record that the pick document line is based on.
OnWriteJobPickDocLineOnBeforeInsertWhseActivityLineWithActivityPlace(Record Warehouse Activity Line, Record Job Planning Line) :#
Summary: This event is triggered before the 'Place' action warehouse activity line is inserted during the writing of pick document lines for a job planning line.
[IntegrationEvent(false, false)]
local procedure OnWriteJobPickDocLineOnBeforeInsertWhseActivityLineWithActivityPlace(var WarehouseActivityLine: Record "Warehouse Activity Line"; var JobPlanningLine: Record "Job Planning Line"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSMTCWarehouseLib", 'OnWriteJobPickDocLineOnBeforeInsertWhseActivityLineWithActivityPlace', '', false, false)]
local procedure DoSomethingOnWriteJobPickDocLineOnBeforeInsertWhseActivityLineWithActivityPlace(var WarehouseActivityLine: Record "Warehouse Activity Line"; var JobPlanningLine: Record "Job Planning Line")
begin
end;
Parameters:
WarehouseActivityLine: The warehouse activity line record that is being manipulated.JobPlanningLine: The production order component record that the pick document line is based on.
OnWriteWhsePickDocLineOnBeforeInsertWhseActivityLineWithActivityTake(Record Warehouse Activity Line, Record Warehouse Shipment Line, Record Warehouse Shipment Header) :#
Summary: Raises before inserting a warehouse activity line with 'Take' activity during the writing of a warehouse pick document line. Allows subscribers to run custom logic before the warehouse activity line is inserted.
[IntegrationEvent(false, false)]
local procedure OnWriteWhsePickDocLineOnBeforeInsertWhseActivityLineWithActivityTake(var WarehouseActivityLine: Record "Warehouse Activity Line"; WarehouseShipmentLine: Record "Warehouse Shipment Line"; WarehouseShipmentHeader: Record "Warehouse Shipment Header"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSMTCWarehouseLib", 'OnWriteWhsePickDocLineOnBeforeInsertWhseActivityLineWithActivityTake', '', false, false)]
local procedure DoSomethingOnWriteWhsePickDocLineOnBeforeInsertWhseActivityLineWithActivityTake(var WarehouseActivityLine: Record "Warehouse Activity Line"; WarehouseShipmentLine: Record "Warehouse Shipment Line"; WarehouseShipmentHeader: Record "Warehouse Shipment Header")
begin
end;
Parameters:
WarehouseActivityLine: The warehouse activity line record that is going to be inserted.WarehouseShipmentLine: The warehouse shipment line related to the activity.WarehouseShipmentHeader: The warehouse shipment header related to the activity.
OnWriteWhsePickDocLineOnBeforeInsertWhseActivityLineWithActivityPlace(Record Warehouse Activity Line, Record Warehouse Shipment Line, Record Warehouse Shipment Header) :#
Summary: Raises before inserting a warehouse activity line with 'Place' activity during the writing of a warehouse pick document line. Allows subscribers to run custom logic before the warehouse activity line is inserted.
[IntegrationEvent(false, false)]
local procedure OnWriteWhsePickDocLineOnBeforeInsertWhseActivityLineWithActivityPlace(var WarehouseActivityLine: Record "Warehouse Activity Line"; WarehouseShipmentLine: Record "Warehouse Shipment Line"; WarehouseShipmentHeader: Record "Warehouse Shipment Header"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSMTCWarehouseLib", 'OnWriteWhsePickDocLineOnBeforeInsertWhseActivityLineWithActivityPlace', '', false, false)]
local procedure DoSomethingOnWriteWhsePickDocLineOnBeforeInsertWhseActivityLineWithActivityPlace(var WarehouseActivityLine: Record "Warehouse Activity Line"; WarehouseShipmentLine: Record "Warehouse Shipment Line"; WarehouseShipmentHeader: Record "Warehouse Shipment Header")
begin
end;
Parameters:
WarehouseActivityLine: The warehouse activity line record that is going to be inserted.WarehouseShipmentLine: The warehouse shipment line related to the activity.WarehouseShipmentHeader: The warehouse shipment header related to the activity.