Codeunit 20575 Subc. Invt. Put-away Ext
Source AL, 258 lines
src/Apps/W1/Subcontracting/App/src/Warehouse/SubcInvtPutAwayExt.Codeunit.allines 19 to 34 of 258, Copyright (c) Microsoft Corporation. MIT
codeunit 20575 "Subc. Invt. Put-away Ext"{ // Last-operation lines need the item's quantity per unit of measure for base-quantity calculation. [EventSubscriber(ObjectType::Codeunit, Codeunit::"Create Inventory Put-away", OnBeforeNewWhseActivLineInsertFromPurchase, '', false, false)] local procedure SetSubcLineTypeAndQtyPerUoM_OnBeforeNewWhseActivLineInsertFromPurchase(var WarehouseActivityLine: Record "Warehouse Activity Line"; PurchaseLine: Record "Purchase Line") var Item: Record Item; UnitOfMeasureManagement: Codeunit "Unit of Measure Management"; begin if PurchaseLine."Subc. Purchase Line Type" = "Subc. Purchase Line Type"::None then exit; WarehouseActivityLine."Subc. Purchase Line Type" := PurchaseLine."Subc. Purchase Line Type"; if PurchaseLine."Subc. Purchase Line Type" = "Subc. Purchase Line Type"::LastOperation then begin Item.SetLoadFields("No.", "Base Unit of Measure");