KVSMEDWarehouseLib#
Procedures#
GetPickParametersForDocumentLine(Code[10], Code[20], Code[10], Code[10], Code[10], Enum Item Reference Type, Code[20], Code[50], Enum KVSMEDPickMethod, Boolean, DateFormula, DateFormula) :#
procedure GetPickParametersForDocumentLine(LocationCode: Code[10]; ItemNo: Code[20]; VariantCode: Code[10]; PostingCode: Code[10]; UoMCode: Code[10]; ReferenceType: Enum "Item Reference Type"; ReferenceTypeNo: Code[20]; ReferenceNo: Code[50]; var PickMethod: Enum "KVSMEDPickMethod"; var SingleLotPicking: Boolean; var OutboundExpireFormula: DateFormula; var InboundExpireFormula: DateFormula):
CalculateWarehouseContentDetails(Code[10], Code[20], Code[10], Code[50], Code[50], Code[10], Decimal, Date, Boolean, Boolean, Boolean, Record KVSMEDWarehouseContentDetail) :#
Summary: This function calculates whse content detail entries for a location and an item/variant-combination based on delivered parameters and deliver these entries in a temporary table.
procedure CalculateWarehouseContentDetails(LocationCode: Code[10]; ItemNo: Code[20]; VariantCode: Code[10]; SerialNo: Code[50]; LotNo: Code[50]; PostingCode: Code[10]; SingleLotQtyBase: Decimal; ExpirationAllowedFrom: Date; UseVariantFilter: Boolean; SkipNotAvailableLines: Boolean; CalculateAllQtyFields: Boolean; var TempWarehouseContentDetail: Record "KVSMEDWarehouseContentDetail" temporary):
Parameters:
LocationCode: This parameter is used for filtering the whse. content detail table to a location codeItemNo: This parameter is used for filtering the whse. content detail table to a item numberVariantCode: If this parameter is not blank then it's used for filtering the whse. content detail table to a variant codeSerialNo: This parameter is used for filtering the whse. content detail table to a serial numberLotNo: This parameter is used for filtering the whse. content detail table to a lot numberPostingCode: This parameter ist used for filtering the whse. content detail table to a posting codeSingleLotQtyBase: Used to return only position with equal or bigger available qty. as the qty. in this parameterExpirationAllowedFrom: Used for filtering the whse. content detail table with expiration date which is equal or bigger than this parameterUseVariantFilter: Set the filter on variant code field in whse. content detail table also if parameter VariantCode is blankSkipNotAvailableLines: Used to return only positions with available qty. bigger than zeroCalculateAllQtyFields: Steers if all qty. fields should be calculated for user view or only the necessary fields for calculation in processes and functionsTempWarehouseContentDetail: Temporary whse. content detail table which contains the results after calculation
CalculateBinContentDetails(Code[10], Code[20], Code[20], Code[10], Code[50], Code[50], Code[10], Decimal, Date, Boolean, Boolean, Boolean, Record KVSMEDBinContentDetail) :#
Summary: This function calculates bin content details based on calculation parameters
procedure CalculateBinContentDetails(LocationCode: Code[10]; BinCode: Code[20]; ItemNo: Code[20]; VariantCode: Code[10]; SerialNo: Code[50]; LotNo: Code[50]; PostingCode: Code[10]; SingleLotQtyBase: Decimal; ExpirationAllowedFrom: Date; OnlyAvailableLines: Boolean; UseVariantFilter: Boolean; OnlyInventoryBins: Boolean; var TempKVSMEDBinContentDetail: Record "KVSMEDBinContentDetail" temporary):
Parameters:
LocationCode:BinCode:ItemNo:VariantCode:SerialNo:LotNo:PostingCode:SingleLotQtyBase:ExpirationAllowedFrom:OnlyAvailableLines:UseVariantFilter:OnlyInventoryBins:TempKVSMEDBinContentDetail: Calculated result
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; ExpAlowedFromDate: Date; OnlyAvailableLine: Boolean; UseVariantFilter: Boolean):
RunBinInventoryOverview(Code[10], Code[20], Code[20], Code[10], Code[50], Code[50], Code[10], Decimal, Date, Boolean, Boolean, Enum KVSMEDBinInvntOverviewViewMode, Record KVSMEDBinContentDetail) :#
Summary: Opens the KVSMEDBinInventoryOverview page with the specified parameter. Returns the selected KVSMEDBinContentDetail records in view mode "Item Tracking" and "LookUp".
procedure RunBinInventoryOverview(LocationCode: Code[10]; BinCode: Code[20]; ItemNo: Code[20]; VariantCode: Code[10]; SerialNo: Code[50]; LotNo: Code[50]; PostingCode: Code[10]; SingleLotQtyBase: Decimal; ExpAllowedFromDate: Date; OnlyInventoryBins: Boolean; OnlyAvailableLines: Boolean; KVSMEDBinInvntOverviewViewMode: Enum "KVSMEDBinInvntOverviewViewMode"; var TempKVSMEDBinContentDetailResult: Record "KVSMEDBinContentDetail" temporary):
Parameters:
LocationCode:BinCode:ItemNo:VariantCode:SerialNo:LotNo:PostingCode:SingleLotQtyBase:ExpAllowedFromDate:OnlyInventoryBins:OnlyAvailableLines:KVSMEDBinInvntOverviewViewMode:TempKVSMEDBinContentDetailResult: Selected KVSMEDBinContentDetail result record
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::"KVSMEDWarehouseLib", 'OnAfterSalesLine2WhseShipmentLine', '', false, false)]
local procedure DoSomethingOnAfterSalesLine2WhseShipmentLine(SalesLinePar: Record "Sales Line"; var WhseShipmentLineVar: Record "Warehouse Shipment Line")
begin
end;
OnAfterPurchLine2WhseShipmentLine(Record Purchase Line, Record Warehouse Shipment Line) :#
[IntegrationEvent(false, false)]
local procedure OnAfterPurchLine2WhseShipmentLine(PurchLinePar: Record "Purchase Line"; var WhseShipmentLineVar: Record "Warehouse Shipment Line"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSMEDWarehouseLib", 'OnAfterPurchLine2WhseShipmentLine', '', false, false)]
local procedure DoSomethingOnAfterPurchLine2WhseShipmentLine(PurchLinePar: Record "Purchase Line"; var WhseShipmentLineVar: Record "Warehouse Shipment Line")
begin
end;
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::"KVSMEDWarehouseLib", '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.
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::"KVSMEDWarehouseLib", '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.
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::"KVSMEDWarehouseLib", '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.