Codeunit 20574 Subc. Item Tracking Ext
Source AL, 41 lines
src/Apps/W1/Subcontracting/App/src/Warehouse/SubcItemTrackingExt.Codeunit.allines 11 to 26 of 41, Copyright (c) Microsoft Corporation. MIT
codeunit 20574 "Subc. Item Tracking Ext"{ [EventSubscriber(ObjectType::Page, Page::"Item Tracking Lines", OnBeforeFillSourceQuantityArray, '', false, false)] local procedure SetSourceQuantityForSubcLastOperation_OnBeforeFillSourceQuantityArray(var SourceQuantityArray: array[5] of Decimal; TrackingSpecification: Record "Tracking Specification"; var IsHandled: Boolean) var ProdOrderLine: Record "Prod. Order Line"; PurchaseLine: Record "Purchase Line"; begin if TrackingSpecification."Source Type" <> Database::"Prod. Order Line" then exit; ProdOrderLine.SetLoadFields("Prod. Order No.", "Line No.", "Quantity (Base)"); if not ProdOrderLine.Get( Enum::"Production Order Status".FromInteger(TrackingSpecification."Source Subtype"), TrackingSpecification."Source ID", TrackingSpecification."Source Prod. Order Line") then exit;