Skip to content

KVSMEDProcessCreationLib#

Procedures#

SalesLineIsOutbound(Record Sales Line) : Boolean#

Summary: Checks Document Type of specific Sales Line

procedure SalesLineIsOutbound(SalesLine: Record "Sales Line"): Boolean

Parameters:

  • SalesLine:

Returns:

PurchaseLineIsOutbound(Record Purchase Line) : Boolean#

Summary: Checks Document Type of specific Purchase Line

procedure PurchaseLineIsOutbound(PurchaseLine: Record "Purchase Line"): Boolean

Parameters:

  • PurchaseLine:

Returns:

CreateSalesLineTracking(Record Sales Line, Decimal, Decimal, Code[50], Code[50]) :#

Summary: Creates Item Tracking for Sales Line

procedure CreateSalesLineTracking(SalesLine: Record "Sales Line"; CallPosQty: Decimal; CallPosQtyBase: Decimal; CallPosSerialNo: Code[50]; CallPosLotNo: Code[50]): 

Parameters:

  • SalesLine:
  • CallPosQty:
  • CallPosQtyBase:
  • CallPosSerialNo:
  • CallPosLotNo:

CreatePurchaseLineTracking(Record Purchase Line, Decimal, Decimal, Code[50], Code[50]) :#

Summary: Creates Item Tracking for Purchase Line

procedure CreatePurchaseLineTracking(PurchaseLine: Record "Purchase Line"; CallPosQty: Decimal; CallPosQtyBase: Decimal; CallPosSerialNo: Code[50]; CallPosLotNo: Code[50]): 

Parameters:

  • PurchaseLine:
  • CallPosQty:
  • CallPosQtyBase:
  • CallPosSerialNo:
  • CallPosLotNo:

CreateTransferLineTracking(Record Transfer Line, Decimal, Decimal, Code[50], Code[50], Option) :#

Summary: Creates Item Tracking for Transfer Line

procedure CreateTransferLineTracking(TransferLine: Record "Transfer Line"; CallPosQty: Decimal; CallPosQtyBase: Decimal; CallPosSerialNo: Code[50]; CallPosLotNo: Code[50]; Direction: Option): 

Parameters:

  • TransferLine:
  • CallPosQty:
  • CallPosQtyBase:
  • CallPosSerialNo:
  • CallPosLotNo:
  • Direction:

CreateItemJnlLineTracking(Record Item Journal Line, Decimal, Decimal, Code[50], Code[50]) :#

Summary: Creates Item Tracking for Item Journal Line

procedure CreateItemJnlLineTracking(ItemJournalLine: Record "Item Journal Line"; CallPosQty: Decimal; CallPosQtyBase: Decimal; CallPosSerialNo: Code[50]; CallPosLotNo: Code[50]): 

Parameters:

  • ItemJournalLine:
  • CallPosQty:
  • CallPosQtyBase:
  • CallPosSerialNo:
  • CallPosLotNo:

Events#

OnCaseElseProcessStepSourceTypeOnCreateDocument(Record KVSMEDProcessStep, Boolean, Boolean) :#

[IntegrationEvent(false, false)]
local procedure OnCaseElseProcessStepSourceTypeOnCreateDocument(ProcessStepVar: Record "KVSMEDProcessStep"; ShowErrorPar: Boolean; var Handled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSMEDProcessCreationLib", 'OnCaseElseProcessStepSourceTypeOnCreateDocument', '', false, false)]
local procedure DoSomethingOnCaseElseProcessStepSourceTypeOnCreateDocument(ProcessStepVar: Record "KVSMEDProcessStep"; ShowErrorPar: Boolean; var Handled: Boolean)
begin
end;

OnAfterOpenShortcollection(Record KVSMEDProcessStep, Record KVSMEDContactShortcollection, Boolean) :#

[IntegrationEvent(false, false)]
local procedure OnAfterOpenShortcollection(ProcessStep: Record "KVSMEDProcessStep"; ContactShortCollection: Record "KVSMEDContactShortcollection"; var NewContactAssigned: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSMEDProcessCreationLib", 'OnAfterOpenShortcollection', '', false, false)]
local procedure DoSomethingOnAfterOpenShortcollection(ProcessStep: Record "KVSMEDProcessStep"; ContactShortCollection: Record "KVSMEDContactShortcollection"; var NewContactAssigned: Boolean)
begin
end;