Codeunit 6225 "Sust. Purchase Subscriber"
Sustainability · Microsoft.Sustainability.Purchase
Across versions
- BC23-28not present
- BC29-30present
Neighbourhood 7 connected objects and pages
Sustainability · Microsoft.Sustainability.Purchase · BC29-30 · source at 4e6a307c · facts from BC29
Events published
OnPostSustainabilityLineOnBeforeInsertLedgerEntry(var SustainabilityJnlLine: Record "Sustainability Jnl. Line"; PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line")(integration)
Event subscriptions
- OnValidateQuantityOnBeforeResetAmounts subscribes to Table “Purchase Line” OnValidateQuantityOnBeforeResetAmounts
- OnAfterPostPurchLine subscribes to Codeunit “Purch.-Post” OnAfterPostPurchLine
- OnPostUpdateOrderLineOnBeforeUpdateBlanketOrderLine subscribes to Codeunit “Purch.-Post” OnPostUpdateOrderLineOnBeforeUpdateBlanketOrderLine
- OnInsertReceiptLineOnAfterInitPurchRcptLine subscribes to Codeunit “Purch.-Post” OnInsertReceiptLineOnAfterInitPurchRcptLine
- OnInsertReturnShipmentLineOnAfterReturnShptLineInit subscribes to Codeunit “Purch.-Post” OnInsertReturnShipmentLineOnAfterReturnShptLineInit
- OnBeforePurchInvLineInsert subscribes to Codeunit “Purch.-Post” OnBeforePurchInvLineInsert
- OnBeforePurchCrMemoLineInsert subscribes to Codeunit “Purch.-Post” OnBeforePurchCrMemoLineInsert
- OnAfterBindSubscription subscribes to Codeunit “Gen. Jnl.-Post Preview” OnAfterBindSubscription
- OnAfterUnbindSubscription subscribes to Codeunit “Gen. Jnl.-Post Preview” OnAfterUnbindSubscription
- OnBeforeItemJnlPostLine subscribes to Codeunit “Purch.-Post” OnBeforeItemJnlPostLine
- OnAfterCopyItemJnlLineFromPurchRcptForUndoPurchaseReceipt subscribes to Codeunit “Undo Purchase Receipt Line” OnAfterCopyItemJnlLineFromPurchRcpt
- OnPostItemJnlLineAppliedToListOnAfterSetInvoicedQty subscribes to Codeunit “Undo Posting Management” OnPostItemJnlLineAppliedToListOnAfterSetInvoicedQty
- OnPostItemChargePerOrderOnAfterCopyToItemJnlLine subscribes to Codeunit “Purch.-Post” OnPostItemChargePerOrderOnAfterCopyToItemJnlLine
- OnPostItemTrackingItemChargePerOrderOnAfterCalcFactor subscribes to Codeunit “Purch.-Post” OnPostItemTrackingItemChargePerOrderOnAfterCalcFactor
- OnPostItemJnlLineJobConsumption subscribes to Codeunit “Purch.-Post” OnPostItemJnlLineJobConsumptionOnBeforeRunItemJnlPostLineWithReservation
- OnAfterPrepareInvoicePostingBuffer subscribes to Codeunit “Purch. Post Invoice Events” OnAfterPrepareInvoicePostingBuffer
- OnAfterPrepareGenJnlLine subscribes to Codeunit “Purch. Post Invoice Events” OnAfterPrepareGenJnlLine
- OnAfterAssignGLAccountValues subscribes to Table “Purchase Line” OnNotHandledCopyFromGLAccount
- OnAfterAssignItemValues subscribes to Table “Purchase Line” OnAfterAssignItemValues
- OnAfterAssignResourceValues subscribes to Table “Purchase Line” OnAfterAssignResourceValues
- OnAfterAssignItemChargeValues subscribes to Table “Purchase Line” OnAfterAssignItemChargeValues
- OnAfterAssignFixedAssetValues subscribes to Table “Purchase Line” OnAfterAssignFixedAssetValues
- OnBeforeInsertItemChargeAssgntWithAssignValues subscribes to Codeunit “Item Charge Assgnt. (Purch.)” OnBeforeInsertItemChargeAssgntWithAssignValues
- OnAssignItemChargesFromLineOnAfterItemChargeAssignmentModifyAll subscribes to Codeunit “Item Charge Assgnt. (Purch.)” OnAssignItemChargesFromLineOnAfterItemChargeAssignmentModifyAll
- OnSuggestAssgntFromLineOnBeforeItemChargeAssignmentPurchModify subscribes to Codeunit “Item Charge Assgnt. (Purch.)” OnSuggestAssgntFromLineOnBeforeItemChargeAssignmentPurchModify
- OnAssignEquallyOnBeforeItemChargeAssignmentPurchModify subscribes to Codeunit “Item Charge Assgnt. (Purch.)” OnAssignEquallyOnBeforeItemChargeAssignmentPurchModify
- OnAssignByAmountOnBeforeItemChargeAssignmentPurchModify subscribes to Codeunit “Item Charge Assgnt. (Purch.)” OnAssignByAmountOnBeforeItemChargeAssignmentPurchModify
- OnAssignPurchItemChargeOnBeforeItemChargeAssignmentPurchModify subscribes to Codeunit “Item Charge Assgnt. (Purch.)” OnAssignPurchItemChargeOnBeforeItemChargeAssignmentPurchModify
- OnUpdateItemChargeAssgntOnBeforeItemChargeAssignmentPurchModifyPurchPost subscribes to Codeunit “Purch.-Post” OnUpdateItemChargeAssgntOnBeforeItemChargeAssignmentPurchModify
- OnUpdateItemChargeAssgntOnBeforeItemChargeAssignmentPurchModify subscribes to Table “Purchase Line” OnUpdateItemChargeAssgntOnBeforeItemChargeAssignmentPurchModify
Procedures
GetCO2eEmissionFromPurchLine(var PurchaseLine: Record "Purchase Line"; var CO2eEmission: Decimal)(internal)
Plus 15 local procedures.
Calls
From the extracted call graph of BC29 (graphify-al on the snapshot checkout): calls whose target is known from a declared type or an Object::"Name" argument. Interface dispatch and calls through events are not counted, so the list is not complete.
- Codeunit 6212 “Sustainability Post Mgt” (5 calls:
CheckAndUpdateSustainabilityInvoicePostingBuffer → UpdateCarbonFeeEmissionValues,CheckAndUpdateSustainabilityItemChargeAssignmentPurch → UpdateCarbonFeeEmissionValues,CheckAndUpdateSustainabilityItemJournalLine → UpdateCarbonFeeEmissionValues, …) - Codeunit 6228 “Sust. Preview Posting Handler” (2 calls:
TryBindPostingPreviewHandler → TryBindPostingPreviewHandler,TryUnbindPostingPreviewHandler → TryUnbindPostingPreviewHandler) - Codeunit 5836 “Cost Calculation Management” (1 call:
GetDistributeItemCharge → SplitItemLedgerEntriesExist) - Codeunit 6218 “Sustainability Calc. Mgt.” (1 call:
OnValidateQuantityOnBeforeResetAmounts → CalculationEmissions) - Codeunit 6233 “Sust. Preview Post Instance” (1 call:
TryBindPostingPreviewHandler → Initialize)
Called by
- Page extension 6280 “Sust. Item Charge Assign Purch” (1 call:
OnOpenPage → GetCO2eEmissionFromPurchLine) - Table extension 6211 “Sustainability Purch. Line” (1 call:
FindCarbonPricingFromPurchaseLine → GetCO2eEmissionFromPurchLine)
Recent changes
- 2026-10-19 #12186 Set several fields in one ModifyAll call (main, BC30, performance)
- 2026-09-15 #11217 [Master] - Slice 641591: EUDR Certificate Capture for Items (main, BC30, feature)
- 2026-07-29 #9613 [Master] - Sustainability: Specific Carbon Tracking, Item Charge emissions & setup fixes (Bugs 641051, 641486, 641487, 641049, 641222, 641055, 641289, 641224, 641309) (main, BC30, fix)
Possibly related
No source states these links: they share an object, a model read them, or a person found the same subject.
- Sust. Standard Sales Invoice report — possibly related: Sustainability data in purchase documents: adds CO2e figures and disclaimer text to purchase invoices. (model-linked)
- Sust. Standard Sales Quote report — possibly related: Sustainability data in purchase documents: adds sustainability metrics like CO2e to purchase quotes. (model-linked)
Source: AL metadata extracted from the code (names, ids, signatures, properties); no code bodies (D10).
Ask your agent
Procedure bodies are not stored here (D10). The call sections above are our own, per object, from the BC29 call graph. 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: "Sust. Purchase Subscriber"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.