ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Event Request] Codeunit 5750 - OnBeforeCheckIfTransLine2ShipmentLine, OnBeforeCheckIfTransLine2ReceiptLine

Open hhout opened this issue 7 years ago • 0 comments

Hi,

We would like to request two events in Codeunit 5750 - Whse.-Create Source Document.

1. Event:

[External] CheckIfFromTransLine2ShptLine(TransLine : Record "Transfer Line") : Boolean
// START EVENT ++
OnBeforeCheckIfTransLine2ShipmentLine(TransLine, IsHandled);
IF IsHandled THEN
  EXIT(FALSE);
// END EVENT --
TransLine.CALCFIELDS("Whse Outbnd. Otsdg. Qty (Base)");
IF Location.GetLocationSetup(TransLine."Transfer-from Code",Location) THEN
  IF Location."Use As In-Transit" THEN
    EXIT(FALSE);
EXIT(TransLine."Outstanding Qty. (Base)" > TransLine."Whse Outbnd. Otsdg. Qty (Base)");

1. Publisher function:

LOCAL [IntegrationEvent] OnBeforeCheckIfTransLine2ShipmentLine(TransferLine : Record "Transfer Line";VAR IsHandled : Boolean)`

2. Event:

[External] CheckIfTransLine2ReceiptLine(TransLine : Record "Transfer Line") : Boolean
// START EVENT ++
OnBeforeCheckIfTransLine2ReceiptLine(TransLine, IsHandled);
IF IsHandled THEN
  EXIT(FALSE);
// END EVENT --
TransLine.CALCFIELDS("Whse. Inbnd. Otsdg. Qty (Base)");
IF Location.GetLocationSetup(TransLine."Transfer-to Code",Location) THEN
  IF Location."Use As In-Transit" THEN
    EXIT(FALSE);
EXIT(TransLine."Qty. in Transit (Base)" > TransLine."Whse. Inbnd. Otsdg. Qty (Base)");

2. Publisher function:

LOCAL [IntegrationEvent] OnBeforeCheckIfTransLine2ReceiptLine(TransferLine : Record "Transfer Line";VAR IsHandled : Boolean)

hhout avatar Mar 22 '19 14:03 hhout