ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Event Request] Codeunit 7320 Whse. Undo Quantity – UpdateWhseRequestShpt

Open ttaeufer opened this issue 7 years ago • 1 comments

ttaeufer avatar Apr 08 '19 14:04 ttaeufer

Could we please have a Supplement in publisher OnAfterUpdateWhseRequestShpt in function UpdateWhseRequestShpt Codeunit 7320 Whse. Undo Quantity?

LOCAL UpdateWhseRequestShpt(VAR PostedWhseShptLine : Record "Posted Whse. Shipment Line")
WITH PostedWhseShptLine DO BEGIN
  CASE "Source Type" OF
    DATABASE::"Sales Line":
      BEGIN
        SalesLine.GET("Source Subtype","Source No.","Source Line No.");
        IF NOT (SalesLine."Quantity Shipped" < SalesLine.Quantity) THEN
          EXIT;
      END;
    DATABASE::"Purchase Line":
      BEGIN
        PurchLine.GET("Source Subtype","Source No.","Source Line No.");
        IF NOT (PurchLine."Return Qty. Shipped" < PurchLine.Quantity) THEN
          EXIT;
      END;
  END;
// >>>>>>>>
OnAfterUpdateWhseRequestShpt(VAR PostedWhseShptLine);
// <<<<<<<<  

ttaeufer avatar Apr 08 '19 14:04 ttaeufer