Codeunit 20560 "Subc. Purch. Factbox Mgmt."
Subcontracting · Microsoft.Manufacturing.Subcontracting
Across versions
- BC23-28not present
- BC29-30present
Subcontracting · Microsoft.Manufacturing.Subcontracting · BC29-30 · source at ea08af5e · facts from BC29
Procedures
ShowPurchaseOrder(RecRelatedVariant: Variant): Opens the Purchase Order page for the subcontracting purchase order linked to the given variant record.CalcNoOfTransferOrders(RecRelatedVariant: Variant): Integer: Returns the number of subcontracting transfer order lines linked to the given variant record.GetTransferOrderNo(RecRelatedVariant: Variant): Code[20]: Returns the transfer order document number linked to the given variant record, or ‘Multiple’ if more than one exists.GetReturnTransferOrderNo(RecRelatedVariant: Variant): Code[20]: Returns the return transfer order document number linked to the given variant record.GetNoOfTransferOrders(RecRelatedVariant: Variant): Integer: Returns the number of distinct transfer orders (by document number) linked to the subcontracting purchase order for the given variant record.GetTransferOrderNoByVariant(RecRelatedVariant: Variant; var TransferOrderNo: Code[20]): Boolean: Finds the transfer order number linked to the purchase or receipt document in the given variant record.ShowTransferOrdersAndReturnOrder(RecRelatedVariant: Variant; LookUpPage: Boolean; IsReturn: Boolean): Integer: Shows the transfer order(s) or return transfer order linked to the given variant record.ShowTransferOrdersFromProductionOrder(ProductionOrder: Record "Production Order"): Opens the subcontracting transfer order(s) linked to the given production order.ShowTransferOrdersFromPurchaseOrder(PurchaseHeader: Record "Purchase Header"; IsReturn: Boolean): Opens the subcontracting transfer order(s) linked to the given purchase order.CalcNoOfPurchasePrices(var PurchaseLine: Record "Purchase Line"): Integer: Returns the number of subcontractor prices matching the given purchase line.ShowSubcontractorPrices(PurchaseLine: Record "Purchase Line"): Opens the Subcontractor Prices page filtered to the subcontractor prices matching the given purchase line.
Plus 9 local procedures.
Recent changes
- 2026-08-18 #9892 [main] Bug 644283: Renumber Subcontracting app object ids as it clashes with partner range (main, BC30, refactor)
- 2026-07-30 #9573 [Subcontracting] Fixed purchase order not opening the list of transfer orders when > 1 were created (main, BC30, fix)
Ask your agent
Procedure bodies are not stored here (D10). For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: bcatlas_resolve_node(object_type: "codeunit", object_name: "Subc. Purch. Factbox Mgmt."), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.