Codeunit 20504 Subc. Transfer Management

Subcontracting, Microsoft.Manufacturing.Subcontracting

Source AL, 476 lines

src/Apps/W1/Subcontracting/App/src/Transfer/SubcTransferManagement.Codeunit.allines 16 to 31 of 476, Copyright (c) Microsoft Corporation. MIT

codeunit 20504 "Subc. Transfer Management"{    var        ManufacturingSetup: Record "Manufacturing Setup";        TempGlobalReservationEntry: Record "Reservation Entry" temporary;#if not CLEAN29#pragma warning disable AL0432        SubcFeatureFlagHandler: Codeunit "Subc. Feature Flag Handler";#pragma warning restore AL0432#endif        CannotModifySubcPurchLineErr: Label 'You cannot change %1 on the subcontracting purchase line because transfer orders exist for the linked production order %2.', Comment = '%1=Field Caption, %2=Production Order No.';        CannotModifyStockAtSubcErr: Label 'You cannot change %1 on the subcontracting purchase line because there are remaining components or WIP items transferred to the subcontractor for production order %2.', Comment = '%1=Field Caption, %2=Production Order No.';        CannotModifySubcTransferLineErr: Label 'You cannot change %1 on the subcontracting transfer line because it is linked to production order %2.', Comment = '%1=Field Caption, %2=Production Order No.';        CannotModifySubcTransferHeaderErr: Label 'You cannot change %1 on the subcontracting transfer order because it contains lines linked to a production order.', Comment = '%1=Field Caption';        CannotDeletePurchLineTransferExistsErr: Label 'You cannot delete the subcontracting purchase line because transfer orders exist for the linked production order %1.', Comment = '%1=Production Order No.';        CannotDeletePurchLineStockAtSubcErr: Label 'You cannot delete the subcontracting purchase line because there are remaining components or WIP items transferred to the subcontractor for production order %1.', Comment = '%1=Production Order No.';

All 476 lines

Public procedures 8 in 29

CalcReceiptDateFromProdCompDueDateWithCompTransferLeadTime(ProdOrderComponent: Record "Prod. Order Component"): Datenew in 28
CheckDirectTransferIsAllowedForTransferHeader(TransferHeader: Record "Transfer Header")new in 28
TransferReservationEntryFromProdOrderCompToTransferOrder(TransferLine: Record "Transfer Line"; ProdOrderComponent: Record "Prod. Order Component")new in 28
ComponentHasExcessReservations(ProdOrderComponent: Record "Prod. Order Component"; MaxQtyBase: Decimal): Booleannew in 28
GetComponentReservedQtyBase(ProdOrderComponent: Record "Prod. Order Component"): Decimalnew in 28
CreateReservEntryForTransferReceiptToProdOrderComp(TransferLine: Record "Transfer Line"; ProdOrderComponent: Record "Prod. Order Component")new in 28

All 16 procedures in 28-29