---
id: object/codeunit/763
type: object
title: Codeunit 763 "Aged Acc. Receivable"
summary: Codeunit 763 "Aged Acc. Receivable" in Base Application (Microsoft.Finance.ReceivablesPayables). 18 public procedures. Present since at least BC23, still in BC30.
tier: official
language: en
tags:
  - codeunit
  - base application
versions:
  introduced: null
  last_changed: null
  deprecated: null
review:
  state: derived
  by: null
  at: null
  flags: []
generated:
  at: "2026-10-11T00:31:51.816Z"
  pipeline: 0.2.0
  prompts: {}
  input_hash: 7d1a9ea41edb305b5e889364074503a30402370ba54c4ec15705d6d9a2dbe608
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Finance/ReceivablesPayables/AgedAccReceivable.Codeunit.al
    title: src/Layers/W1/BaseApp/Finance/ReceivablesPayables/AgedAccReceivable.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: codeunit
object_id: 763
name: Aged Acc. Receivable
namespace: Microsoft.Finance.ReceivablesPayables
app: Base Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in: []
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 24
  events: 0
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 2
  called_by: 5
  implements: 0
---

# Codeunit 763 "Aged Acc. Receivable"

> Codeunit 763 "Aged Acc. Receivable" in Base Application (Microsoft.Finance.ReceivablesPayables). 18 public procedures. Present since at least BC23, still in BC30.

Base Application · Microsoft.Finance.ReceivablesPayables · BC23-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Finance/ReceivablesPayables/AgedAccReceivable.Codeunit.al) · facts from BC29

## Procedures

- `UpdateDataPerCustomer(var BusChartBuf: Record "Business Chart Buffer"; CustomerNo: Code[20]; var TempEntryNoAmountBuf: Record "Entry No. Amount Buffer" temporary)`: Updates business chart buffer with aged receivable data for a specific customer. Generates aging analysis with default initialization settings.
- `UpdateDataPerCustomer(var BusChartBuf: Record "Business Chart Buffer"; CustomerNo: Code[20]; var TempEntryNoAmountBuf: Record "Entry No. Amount Buffer" temporary; AlreadyInitialized: Boolean)`: Updates business chart buffer with aged receivable data for a specific customer with initialization control. Configures chart structure and calculates aging buckets based on period settings.
- `UpdateDataPerGroup(var BusChartBuf: Record "Business Chart Buffer"; var TempEntryNoAmountBuf: Record "Entry No. Amount Buffer" temporary)`: Updates business chart buffer with aged receivable data grouped by customer posting groups. Creates stacked column chart showing aging distribution across posting groups.
- `DateFilterByAge(Index: Integer; var StartDate: Date; PeriodLength: Text[1]; NoOfPeriods: Integer; var EndDate: Date): Text`: Generates date filter string for aging period based on index and period settings. Calculates appropriate date ranges for not due and overdue amounts.
- `InsertAmountBuffer(Index: Integer; BussUnitCode: Code[20]; AmountLCY: Decimal; StartDate: Date; EndDate: Date; var TempEntryNoAmountBuffer: Record "Entry No. Amount Buffer" temporary)`: Inserts calculated amount data into temporary buffer for aging period. Creates buffer entry with period information and calculated amounts.
- `InitParameters(BusChartBuf: Record "Business Chart Buffer"; var PeriodLength: Text[1]; var NoOfPeriods: Integer)`: Initializes aging parameters from business chart buffer settings. Extracts period length and number of periods for aging calculation.
- `InitParameters(BusChartBuf: Record "Business Chart Buffer"; var PeriodLength: Text[1]; var NoOfPeriods: Integer; var TempEntryNoAmountBuf: Record "Entry No. Amount Buffer" temporary)`: Initializes aging parameters and clears temporary buffer for fresh calculation. Prepares buffer and extracts period settings from chart configuration.
- `FormatColumnName(Index: Integer; PeriodLength: Text[1]; NoOfColumns: Integer; Period: Option): Text`: Formats column name for aging chart based on period index and settings. Generates appropriate labels for aging buckets and periods.
- `DrillDown(var BusChartBuf: Record "Business Chart Buffer"; CustomerNo: Code[20]; var TempEntryNoAmountBuf: Record "Entry No. Amount Buffer" temporary)`: Handles drill-down navigation from aging chart to detailed customer ledger entries. Opens customer ledger entries filtered by aging period and customer.
- `DrillDownByGroup(var BusChartBuf: Record "Business Chart Buffer"; var TempEntryNoAmountBuf: Record "Entry No. Amount Buffer" temporary)`: Handles drill-down navigation from grouped aging chart to detailed entries. Opens customer ledger entries filtered by aging period and posting group.
- `DrillDownCustLedgEntries(CustomerNo: Code[20]; CustomerGroupCode: Code[20]; StartDate: Date; EndDate: Date)`: Opens customer ledger entries page with filters for aging period and customer/group. Provides detailed view of entries contributing to aging amounts.
- `Description(PerCustomer: Boolean): Text`: Returns appropriate description text for aging chart based on analysis scope. Provides different descriptions for per-customer vs. summary analysis.
- `UpdateStatusText(BusChartBuf: Record "Business Chart Buffer"): Text`: Generates status text for aging chart based on period settings and analysis type. Creates descriptive status showing period length and aging configuration.
- `SaveSettings(BusChartBuf: Record "Business Chart Buffer")`: Saves user-specific chart settings for aging analysis preferences. Persists period length and chart configuration to user setup.
- `InvoicePaymentDaysAverage(CustomerNo: Code[20]): Decimal`: Calculates average payment days for customer invoices for performance analysis. Provides rounded average days between invoice and payment dates.
- `RoundAmount(Amount: Decimal): Decimal`: Rounds amount to the precision defined in General Ledger Setup.
- `OverDueText(): Text`: Returns the localized text for overdue amounts in aged analysis reports.
- `AmountText(): Text`: Returns the localized text for amount labels in aged analysis reports.

Plus 6 local procedures.

## Triggers

OnRun

## 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 1630 "Office Management"](../codeunit/1630.md) (1 call: `UpdateStatusText → IsAvailable`)
- [Page 25 "Customer Ledger Entries"](../page/25.md) (1 call: `DrillDownCustLedgEntries → (object)`)

## Called by

- [Codeunit 764 "Aged Acc. Payable"](../codeunit/764.md) (8 calls: `AmountText → AmountText`, `DateFilterByAge → DateFilterByAge`, `FormatColumnName → FormatColumnName`, …)
- [Codeunit 1315 "Chart Management"](../codeunit/1315.md) (4 calls: `ChartDescription → Description`, `DataPointClicked → DrillDownByGroup`, `UpdateChart → SaveSettings`, …)
- [Codeunit 6306 "PBI Aged Acc. Calc"](../codeunit/6306.md) (3 calls: `FormatPeriod → FormatColumnName`, `FormatPeriod → InitParameters`, `SetPeriodAndUpdateChart → UpdateDataPerGroup`)
- [Page 768 "Aged Acc. Receivable Chart"](../page/768.md) (2 calls: `OnPageBackgroundTaskCompleted → UpdateDataPerCustomer`, `UpdateStatusText → UpdateStatusText`)
- [Codeunit 32 "Customer Card Calculations"](../codeunit/32.md) (1 call: `OnRun → InvoicePaymentDaysAverage`)

## Across versions

- Present in: BC23-30
- Changed (declaration) in: none

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: "Aged Acc. Receivable")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
