Codeunit 20341 "Tax Document GL Posting"
INTaxEngine · Microsoft.Finance.TaxEngine.PostingHandler
Across versions
- BC23-28not present
- BC29-30present
Neighbourhood 14 connected objects and pages
INTaxEngine · Microsoft.Finance.TaxEngine.PostingHandler · BC29-30 · source at ea08af5e · facts from BC29
Events published
OnAfterPrepareTaxTransaction(var TaxPostingBuffer: Record "Transaction Posting Buffer"; var TempSymbols: Record "Script Symbol Value" temporary; var TempTransactionValue: Record "Tax Transaction Value" temporary)(integration)- subscribers: Codeunit 20347 “Tax Subledger Posting Handler” OnAfterPrepareTaxTransaction
OnAfterPostTaxGLEntry(var TempTaxPostingBuffer: Record "Transaction Posting Buffer" temporary; var TempTransactionValue: Record "Tax Transaction Value" temporary; var Record: Variant)(integration)- subscribers: Codeunit 20342 “Tax Document Subledger Posting” OnAfterPostTaxGLEntry
OnAfterGenJnlLineAdjustEntry(var GenJnlLine: Record "Gen. Journal Line"; var AdjustEntry: Boolean)(integration)OnBeforeGenJnlLineAdjustEntry(var GenJnlLine: Record "Gen. Journal Line"; var AdjustEntry: Boolean; var IsHandled: Boolean)(integration)OnPrepareTransValueToPost(var TempTransValue: Record "Tax Transaction Value" temporary; var IsModified: Boolean)(integration)OnBeforePostTaxJournal(var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; var GenJournalLine: Record "Gen. Journal Line"; var IsHandled: Boolean)(integration)OnFindTransationPostingBuffer(var TransactionPostingBuffer: Record "Transaction Posting Buffer" temporary; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; var GenJournalLine: Record "Gen. Journal Line")(integration)OnAfterCopyTaxGenJnlLineForReverseCharge(var TaxGenJnlLine: Record "Gen. Journal Line"; var GenJournalLine: Record "Gen. Journal Line"; TransactionPostingBuffer: Record "Transaction Posting Buffer" temporary; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; var TempTransactionValue: Record "Tax Transaction Value" temporary)(integration)OnAfterCopyTaxGenJnlLine(var TaxGenJnlLine: Record "Gen. Journal Line"; var GenJournalLine: Record "Gen. Journal Line"; TransactionPostingBuffer: Record "Transaction Posting Buffer" temporary; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line")(integration)OnBeforeAdjustTaxAmountOnGenJnlLine(var GenJnlLine: Record "Gen. Journal Line"; var IsHandled: Boolean)(integration)
Event subscriptions
- OnAfterRunWithoutCheck subscribes to Codeunit “Gen. Jnl.-Post Line” OnAfterRunWithoutCheck
- OnAfterRunWithCheck subscribes to Codeunit “Gen. Jnl.-Post Line” OnAfterRunWithCheck
- OnBeforePostGenJnlLine subscribes to Codeunit “Gen. Jnl.-Post Line” OnBeforePostGenJnlLine
- OnAfterPostGenJnlLine subscribes to Codeunit “Gen. Jnl.-Post Line” OnAfterPostGenJnlLine
Procedures
UpdateTaxPostingBuffer(var TempTaxTransactionValue: Record "Tax Transaction Value" temporary; RecID: RecordId; TaxTransactionID: Guid; DimensionSetID: Integer; GenBusPostingGroup: Code[20]; GenProdPostingGroup: Code[20]; DocumentQty: Decimal; InvoiceQty: Decimal; CurrencyCode: Code[20]; CurrencyFactor: Decimal; PostedDocNo: Code[20]; PostedDocLineNo: Integer)TransferTransactionValue(FromRecID: RecordId; ToRecID: RecordId; var FromTaxTransactionValue: Record "Tax Transaction Value" temporary)PrepareTransactionValueToPost(RecID: RecordId; Quantity: Decimal; QtyToInvoice: Decimal; CurrCode: Code[20]; CurrFactor: Decimal; var TempTaxTransactionValue: Record "Tax Transaction Value" temporary)
Plus 11 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 20343 “Tax Posting Buffer Mgmt.” (13 calls:
AdjustTaxAmountOnGenJnlLine → GetSalesPurchLcy,AdjustTaxAmountOnGenJnlLine → GetTaxAmount,PostTaxJournal → ClearGroupingBuffers, …) - Codeunit 12 “Gen. Jnl.-Post Line” (2 calls:
PostTaxJournal → GetNextTransactionNo,PostTaxJournal → RunWithCheck) - Codeunit 20344 “Tax Posting Execution” (1 call:
UpdateUseCasePostingBuffer → ExecuteGetTaxPostingSetup) - Codeunit 408 “DimensionManagement” (1 call:
PostTaxJournal → UpdateGlobalDimFromDimSetID)
Called by
- Codeunit 20335 “Purch.-Post Handler” (6 calls:
OnAfterPurchCrMemoLineInsert → PrepareTransactionValueToPost,OnAfterPurchCrMemoLineInsert → TransferTransactionValue,OnAfterPurchCrMemoLineInsert → UpdateTaxPostingBuffer, …) - Codeunit 20336 “Sales Posting Subscribers” (6 calls:
OnAfterSalesCrMemoLineInsert → PrepareTransactionValueToPost,OnAfterSalesCrMemoLineInsert → TransferTransactionValue,OnAfterSalesCrMemoLineInsert → UpdateTaxPostingBuffer, …) - Codeunit 20339 “Service Posting Subscribers” (6 calls:
OnAfterServiceCrMemoLineInsert → PrepareTransactionValueToPost,OnAfterServiceCrMemoLineInsert → TransferTransactionValue,OnAfterServiceCrMemoLineInsert → UpdateTaxPostingBuffer, …) - Codeunit 20136 “Archive Management Handler” (4 calls:
OnAfterStorePurchLineArchive → PrepareTransactionValueToPost,OnAfterStorePurchLineArchive → TransferTransactionValue,OnAfterStoreSalesLineArchive → PrepareTransactionValueToPost, …) - Codeunit 20338 “Transfer Shpt Posting Handler” (4 calls:
OnAfterInsertNewShipmentLine → PrepareTransactionValueToPost,OnAfterInsertNewShipmentLine → TransferTransactionValue,OnAfterInsertTransShptLine → PrepareTransactionValueToPost, …) - Codeunit 20340 “Fin Charge Posting Handler” (3 calls:
OnAfterIsueFinChargeMemo → TransferTransactionValue,OnBeforePost → UpdateTaxPostingBuffer,PrepareTransactionValue → PrepareTransactionValueToPost) - Codeunit 20334 “Gen. Jnl.-Post Handler” (2 calls:
OnBeforeCode → PrepareTransactionValueToPost,OnBeforeCode → UpdateTaxPostingBuffer) - Codeunit 20337 “Transfer Rcpt. Posting Handler” (2 calls:
OnAfterInsertTransRcptLine → PrepareTransactionValueToPost,OnAfterInsertTransRcptLine → TransferTransactionValue)
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: "Tax Document GL Posting"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.