Codeunit 6784 "Wthldg Tax Purch. Subscribers"
WithholdingTax · Microsoft.WithholdingTax
Across versions
- BC23-28not present
- BC29-30present
Neighbourhood 2 connected objects and pages
WithholdingTax · Microsoft.WithholdingTax · BC29-30 · source at 4e6a307c · facts from BC29
Event subscriptions
- CopyVendorInfo subscribes to Table “Purchase Header” OnAfterCopyBuyFromVendorFieldsFromVendor
- CopyHeaderInfo subscribes to Table “Purchase Line” OnAfterInitHeaderDefaults
- AssignGLAccValue subscribes to Table “Purchase Line” OnAfterAssignGLAccountValues
- AssignItemValue subscribes to Table “Purchase Line” OnAfterAssignItemValues
- AssignFAValue subscribes to Table “Purchase Line” OnAfterAssignFixedAssetValues
- OnAfterPrepareInvoicePostingBuffer subscribes to Codeunit “Purch. Post Invoice Events” OnAfterPrepareInvoicePostingBuffer
- OnPrepareGenJnlLineOnAfterCopyToGenJnlLine subscribes to Codeunit “Purch. Post Invoice Events” OnPrepareGenJnlLineOnAfterCopyToGenJnlLine
- OnPostLedgerEntryOnBeforeGenJnlPostLine subscribes to Codeunit “Purch. Post Invoice Events” OnPostLedgerEntryOnBeforeGenJnlPostLine
- OnPostBalancingEntryOnAfterInitNewLine subscribes to Codeunit “Purch. Post Invoice Events” OnPostBalancingEntryOnAfterInitNewLine
- OnPrepareLineOnAfterAssignAmounts subscribes to Codeunit “Purch. Post Invoice Events” OnPrepareLineOnAfterAssignAmounts
- OnAfterInitGenJnlLineAmountFieldsFromTotalLines subscribes to Codeunit “Purch. Post Invoice Events” OnAfterInitGenJnlLineAmountFieldsFromTotalLines
- CheckWithholdingApplication subscribes to Codeunit “Purch.-Post” OnCheckAndUpdateOnBeforeSetPostingFlags
- PostPurchWithholdingTax subscribes to Codeunit “Purch.-Post” OnPostInvoiceOnAfterPostLines
- VendorPrepaymentInvoiceWithholdingTax subscribes to Codeunit “Purchase-Post Prepayments” OnAfterCreateLinesOnBeforeGLPosting
- PostPrepmtInvLineBuffer subscribes to Codeunit “Purchase-Post Prepayments” OnBeforePostPrepmtInvLineBuffer
- OnBeforePostVendorEntry subscribes to Codeunit “Purchase-Post Prepayments” OnBeforePostVendorEntry
- OnBeforePostBalancingEntry subscribes to Codeunit “Purchase-Post Prepayments” OnBeforePostBalancingEntry
- VendorPrepaymentCrMemoWithholdingTax subscribes to Codeunit “Purchase-Post Prepayments” OnCodeOnAfterUpdateHeaderAndLines
Procedures
InsertGenJournalWithholding(var PurchHeader: Record "Purchase Header"; var GenJnlLine: Record "Gen. Journal Line"; AccountNo: Code[20]; SrcCode: Code[10]; GenJnlLineDocType: Enum "Gen. Journal Document Type"; GenJnlLineDocNo: Code[20]; GenJnlLineExtDocNo: Code[35]; TotalAmount: Decimal; TotalPurchLineLCY: Record "Purchase Line")
Plus 7 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 6785 “Withholding Tax Mgmt.” (9 calls:
CheckWithholdingApplication → CheckApplicationPurchWithholdingTax,OnBeforePostBalancingEntry → CheckVendorWithholdingTaxLiable,PostPrepmtInvLineBuffer → CheckVendorWithholdingTaxLiable, …) - Codeunit 12 “Gen. Jnl.-Post Line” (4 calls:
PostWithholdingTax → (object),PostWithholdingTax → GetGLReg,PostWithholdingTax → IncreaseTaxEntryNo, …)
Recent changes
- 2026-08-19 #9865 [Main] - ‘Greater Than’ Withholding Tax Calculation Rule is not app… (main, BC30, fix)
- 2026-08-11 #10058 [Master]-Withholding Tax Posting generates Unbalanced G/L Entries when Multiple Withholding Tax Rates are used on one Purchase Invoice. (main, BC30, fix)
- 2026-07-22 #9650 [Master] -Revert Changes- ‘Greater Than’ Withholding Tax Calculation Rule is not applied correctly in Withholding Tax Posting Setup. (main, BC30, other)
- 2026-07-20 #9515 [Master] - ‘Greater Than’ Withholding Tax Calculation Rule is not applied correctly in Withholding Tax Posting Setup. (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.
- Calculate withholding tax for vendors — possibly related: Codeunit manages withholding tax calculation for vendor purchase transactions. (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: "Wthldg Tax Purch. Subscribers"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.