Skip to content

KVSFCYWarehouseSubscriber#

Events#

OnAfterWhseShptLineInsertAddTypes(Record Warehouse Shipment Line) :#

Summary: Triggers after inserting warehouse shipment line with additional types.

[IntegrationEvent(false, false)]
local procedure OnAfterWhseShptLineInsertAddTypes(var WarehouseShipmentLine: Record "Warehouse Shipment Line"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSFCYWarehouseSubscriber", 'OnAfterWhseShptLineInsertAddTypes', '', false, false)]
local procedure DoSomethingOnAfterWhseShptLineInsertAddTypes(var WarehouseShipmentLine: Record "Warehouse Shipment Line")
begin
end;

Parameters:

  • WarehouseShipmentLine: Warehouse shipment line being processed.

OnBeforeWhseShptLineInsertAddTypes(Record Warehouse Shipment Line) :#

Summary: Triggers before inserting warehouse shipment line with additional types.

[IntegrationEvent(false, false)]
local procedure OnBeforeWhseShptLineInsertAddTypes(var WarehouseShipmentLine: Record "Warehouse Shipment Line"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSFCYWarehouseSubscriber", 'OnBeforeWhseShptLineInsertAddTypes', '', false, false)]
local procedure DoSomethingOnBeforeWhseShptLineInsertAddTypes(var WarehouseShipmentLine: Record "Warehouse Shipment Line")
begin
end;

Parameters:

  • WarehouseShipmentLine: Warehouse shipment line being processed.

OnAfterAutofillQtyToHandleLine(Record Warehouse Activity Line) :#

Summary: Triggers after autofilling quantity to handle for warehouse activity line.

[IntegrationEvent(false, false)]
local procedure OnAfterAutofillQtyToHandleLine(var WarehouseActivityLine: Record "Warehouse Activity Line"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSFCYWarehouseSubscriber", 'OnAfterAutofillQtyToHandleLine', '', false, false)]
local procedure DoSomethingOnAfterAutofillQtyToHandleLine(var WarehouseActivityLine: Record "Warehouse Activity Line")
begin
end;

Parameters:

  • WarehouseActivityLine: Warehouse activity line being processed.

OnBeforeCheckSourceDocLineQty(Record Warehouse Shipment Line, Boolean) :#

Summary: Triggers before checking source document line quantity.

[IntegrationEvent(false, false)]
local procedure OnBeforeCheckSourceDocLineQty(var WarehouseShipmentLine: Record "Warehouse Shipment Line"; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSFCYWarehouseSubscriber", 'OnBeforeCheckSourceDocLineQty', '', false, false)]
local procedure DoSomethingOnBeforeCheckSourceDocLineQty(var WarehouseShipmentLine: Record "Warehouse Shipment Line"; var IsHandled: Boolean)
begin
end;

Parameters:

  • WarehouseShipmentLine: Warehouse shipment line being checked.
  • IsHandled: Skip quantity check when true.

OnCheckSourceDocLineQtyOnBeforeFieldError(Record Warehouse Shipment Line, Decimal, Decimal, Decimal, Boolean) :#

Summary: Triggers before field error during source document line quantity check.

[IntegrationEvent(false, false)]
local procedure OnCheckSourceDocLineQtyOnBeforeFieldError(var WarehouseShipmentLine: Record "Warehouse Shipment Line"; WhseQtyOutstandingBase: Decimal; var QtyOutstandingBase: Decimal; QuantityBase: Decimal; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSFCYWarehouseSubscriber", 'OnCheckSourceDocLineQtyOnBeforeFieldError', '', false, false)]
local procedure DoSomethingOnCheckSourceDocLineQtyOnBeforeFieldError(var WarehouseShipmentLine: Record "Warehouse Shipment Line"; WhseQtyOutstandingBase: Decimal; var QtyOutstandingBase: Decimal; QuantityBase: Decimal; var IsHandled: Boolean)
begin
end;

Parameters:

  • WarehouseShipmentLine: Warehouse shipment line being checked.
  • WhseQtyOutstandingBase: Warehouse quantity outstanding base.
  • QtyOutstandingBase: Source document quantity outstanding base.
  • QuantityBase: Quantity base being validated.
  • IsHandled: Skip field error when true.

OnAfterOpenItemTrackingLines(Record Warehouse Receipt Line, Decimal, Boolean) :#

Summary: Triggers after opening item tracking lines for warehouse receipt.

[IntegrationEvent(false, false)]
local procedure OnAfterOpenItemTrackingLines(var WarehouseReceiptLine: Record "Warehouse Receipt Line"; SecondSourceQtyArray: Decimal; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSFCYWarehouseSubscriber", 'OnAfterOpenItemTrackingLines', '', false, false)]
local procedure DoSomethingOnAfterOpenItemTrackingLines(var WarehouseReceiptLine: Record "Warehouse Receipt Line"; SecondSourceQtyArray: Decimal; var IsHandled: Boolean)
begin
end;

Parameters:

  • WarehouseReceiptLine: Warehouse receipt line being processed.
  • SecondSourceQtyArray: Array of secondary source quantities.
  • IsHandled: Indicates if item tracking was handled.