codeunitFinanceofficial - Microsoftderived - from the source, no model text

Codeunit 6790 "WHT Employee Calculation"

WithholdingTax · Microsoft.WithholdingTax.Employee

Across versions

  1. BC23-28not present
  2. BC29-30present

Neighbourhood 4 connected objects and pages

Codeunit 7056 "WHT Expense Category Mgt." (event subscribers, 6 links)WHT Expense Category Mgt.Codeunit 6791 "Wthldg Tax Empl. Subscribers" (calls, 13 links)Wthldg Tax Empl. SubscribersCodeunit 7057 "WHT Exp. Report Post Handler" (calls, 7 links)WHT Exp. Report Post HandlerPage 456 "No. Series" (calls, 2 links)No. Series

Open in the neighbourhood explorer

One hop out, from the extracted relations and call graph. Up to 40 shown; the sections below list them all.

WithholdingTax · Microsoft.WithholdingTax.Employee · BC29-30 · source at ea08af5e · facts from BC29

Events published

  • OnAfterIsEmployeeWHTApplicable(GenJnlLine: Record "Gen. Journal Line"; Employee: Record Employee; var IsApplicable: Boolean) (integration)
  • OnBeforeCalcEmployeeWHT(var GenJnlLine: Record "Gen. Journal Line"; var WHTAmount: Decimal; var WHTBaseAmount: Decimal; var IsHandled: Boolean) (integration)
  • OnBeforeCheckCalcEmployeeWHT(var GenJnlLine: Record "Gen. Journal Line"; Employee: Record Employee; var WHTAmount: Decimal; var WHTBaseAmount: Decimal) (integration)
  • OnBeforeInsertThresholdAccumulator(var ThresholdAccumulator: Record "WHT Threshold Accumulator"; GenJnlLine: Record "Gen. Journal Line"; PostingSetup: Record "Withholding Tax Posting Setup"; BaseAmount: Decimal) (integration)
  • OnBeforeUpdateThresholdAccumulator(var ThresholdAccumulator: Record "WHT Threshold Accumulator"; WithholdingTaxEntry: Record "Withholding Tax Entry"; PostingSetup: Record "Withholding Tax Posting Setup") (integration)
  • OnBeforeReverseThresholdAccumulator(var ThresholdAccumulator: Record "WHT Threshold Accumulator"; WithholdingTaxEntry: Record "Withholding Tax Entry"; PostingSetup: Record "Withholding Tax Posting Setup") (integration)
  • OnBeforeResolveWHTGroupComponents(GenJnlLine: Record "Gen. Journal Line"; var WHTGroupCode: Code[20]; var Result: Boolean) (integration)
  • OnBeforeInsertEmployeeWHTEntry(var WithholdingTaxEntry: Record "Withholding Tax Entry"; GenJnlLine: Record "Gen. Journal Line") (integration)
  • OnAfterInsertEmployeeWHTEntry(var WithholdingTaxEntry: Record "Withholding Tax Entry"; GenJnlLine: Record "Gen. Journal Line") (integration)

Procedures

  • IsEmployeeWHTApplicable(GenJnlLine: Record "Gen. Journal Line"): Boolean
  • CalcEmployeeWHT(var GenJnlLine: Record "Gen. Journal Line"; var WHTAmount: Decimal; var WHTBaseAmount: Decimal)
  • InsertEmployeeWithholdingTaxEntry(GenJnlLine: Record "Gen. Journal Line"; WHTAmount: Decimal; WHTBaseAmount: Decimal; TransactionNo: Integer; var NextEntryNo: Integer): Integer
  • InsertEmployeeWHTComponentEntry(GenJnlLine: Record "Gen. Journal Line"; WHTGroupLine: Record "Withholding Tax Group Line"; ComponentWHT: Decimal; WHTBaseAmount: Decimal; TransactionNo: Integer; var NextEntryNo: Integer): Integer
  • IsNetCalculationBase(GenJnlLine: Record "Gen. Journal Line"): Boolean
  • AccumulateBaseForPeriodThreshold(GenJnlLine: Record "Gen. Journal Line"; BaseAmount: Decimal)
  • ResolveWHTGroupComponents(GenJnlLine: Record "Gen. Journal Line"; var WHTGroupCode: Code[20]): Boolean
  • CalcComponentWHT(WHTGroupLine: Record "Withholding Tax Group Line"; BaseAmount: Decimal; GenJnlLine: Record "Gen. Journal Line"): Decimal
  • EvaluateThreshold(PostingSetup: Record "Withholding Tax Posting Setup"; EmployeeNo: Code[20]; PostingDate: Date; BaseAmount: Decimal): Boolean
  • UpdateThresholdAccumulator(WithholdingTaxEntry: Record "Withholding Tax Entry")
  • ReverseThresholdAccumulator(WithholdingTaxEntry: Record "Withholding Tax Entry")
  • GetPeriodBounds(ThresholdPeriod: Enum "WHT Threshold Period Type"; PostingDate: Date; var PeriodStartDate: Date; var PeriodEndDate: Date)
  • GetEmployeeNoFromJnlLine(GenJnlLine: Record "Gen. Journal Line"): Code[20]
  • IsWithholdingTaxEnabled(): Boolean
  • IsThresholdIncludeded(ThresholdCalculated: Boolean)

Plus 6 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.

  • Page 456 “No. Series” (2 calls: InsertEmployeeWHTComponentEntry → (object), InsertEmployeeWithholdingTaxEntry → (object))

Called by

Recent changes

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: "WHT Employee Calculation"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.

Evidence 1 sources