---
id: change/bcapps/9586
type: change
title: "#9586 [master] Overdue Balance (LCY) filters do not behave as expected if you open the Customer Card from a document or journal."
summary: The Customer Card now applies a default date filter in the OnAfterGetCurrRecord function to ensure the Overdue Balance (LCY) calculation displays the correct overdue amount and drill-down filters work properly when opened from documents or journals.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - page customer card
system: sales
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:11:59.557Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 2161aac0d5d1bab58e053160a68beef06ca2cdb5
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/9586
    title: "microsoft/BCApps#9586: [master] Overdue Balance (LCY) filters do not behave as expected if you open the Customer Card from a document or journal."
    date: "2026-07-20"
    commit: 2161aac0d5d1bab58e053160a68beef06ca2cdb5
    t: null
    quote: Also default Date Filter to 0D..WorkDate() in the card's OnAfterGetCurrRecordFunc (mirroring the Vendor Card)
links:
  learn: []
  objects:
    - object/page/21
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 9586
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/9586
kind: pr
base_branch: main
major: "30"
merged_at: "2026-07-20T10:42:34Z"
author: neeleshsinghal
author_type: User
community_contribution: false
labels:
  - "Team: SCM"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 12
  additions: 116
  deletions: 0
  al: 11
apps:
  - Base Application
objects_touched:
  - key: page/21
    page: page/21
    type: page
    id: 21
    name: Customer Card
    app: Base Application
    status: modified
objects_unjoined:
  - path: src/Layers/APAC/BaseApp/Sales/Customer/CustomerCard.Page.al
    status: modified
    reason: not-in-snapshot
  - path: src/Layers/BE/BaseApp/Sales/Customer/CustomerCard.Page.al
    status: modified
    reason: not-in-snapshot
  - path: src/Layers/ES/BaseApp/Sales/Customer/CustomerCard.Page.al
    status: modified
    reason: not-in-snapshot
  - path: src/Layers/FR/BaseApp/Sales/Customer/CustomerCard.Page.al
    status: modified
    reason: not-in-snapshot
  - path: src/Layers/IT/BaseApp/Sales/Customer/CustomerCard.Page.al
    status: modified
    reason: not-in-snapshot
  - path: src/Layers/NA/BaseApp/Sales/Customer/CustomerCard.Page.al
    status: modified
    reason: not-in-snapshot
  - path: src/Layers/NL/BaseApp/Sales/Customer/CustomerCard.Page.al
    status: modified
    reason: not-in-snapshot
  - path: src/Layers/NO/BaseApp/Sales/Customer/CustomerCard.Page.al
    status: modified
    reason: not-in-snapshot
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 640988
systems:
  - sales
quote: Also default Date Filter to 0D..WorkDate() in the card's OnAfterGetCurrRecordFunc (mirroring the Vendor Card)
joined_against:
  major: "30"
  commit: f18567dc08e2bd162bf192e1da4d714b57eb099f
---

# #9586 [master] Overdue Balance (LCY) filters do not behave as expected if you open the Customer Card from a document or journal.

> The Customer Card now applies a default date filter in the OnAfterGetCurrRecord function to ensure the Overdue Balance (LCY) calculation displays the correct overdue amount and drill-down filters work properly when opened from documents or journals.

[Pull request](https://github.com/microsoft/BCApps/pull/9586) · merged into `main` (BC30) on 2026-07-20 by neeleshsinghal · 12 files (+116 -0), 11 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Date filter now defaults to 0D..WorkDate() in OnAfterGetCurrRecord, not just OnOpenPage
- Overdue Balance (LCY) now shows the correct overdue amount instead of total balance when opening the card from documents or journals
- Drill-down filters on the overdue balance now correctly include the due-date filter regardless of how the card is opened
- Aligns the Customer Card behavior with the Vendor Card logic
- Fix applied across all localization layers (APAC, BE, ES, FR, GB, IT, NA, NL, NO, RU, W1)
- Behaviour changes for users or extensions.

## AL objects touched

- [Page 21 "Customer Card"](../../objects/page/21.md), Base Application: modified
- `src/Layers/APAC/BaseApp/Sales/Customer/CustomerCard.Page.al`: modified, not in the BC30 snapshot
- `src/Layers/BE/BaseApp/Sales/Customer/CustomerCard.Page.al`: modified, not in the BC30 snapshot
- `src/Layers/ES/BaseApp/Sales/Customer/CustomerCard.Page.al`: modified, not in the BC30 snapshot
- `src/Layers/FR/BaseApp/Sales/Customer/CustomerCard.Page.al`: modified, not in the BC30 snapshot
- `src/Layers/IT/BaseApp/Sales/Customer/CustomerCard.Page.al`: modified, not in the BC30 snapshot
- `src/Layers/NA/BaseApp/Sales/Customer/CustomerCard.Page.al`: modified, not in the BC30 snapshot
- `src/Layers/NL/BaseApp/Sales/Customer/CustomerCard.Page.al`: modified, not in the BC30 snapshot
- `src/Layers/NO/BaseApp/Sales/Customer/CustomerCard.Page.al`: modified, not in the BC30 snapshot

## Context

- Work items: AB#640988
- Labels: Team: SCM
- Systems: sales
- From the description: "Also default Date Filter to 0D..WorkDate() in the card's OnAfterGetCurrRecordFunc (mirroring the Vendor Card)"

Source: metadata of a merged pull request in microsoft/BCApps (bcapps): title, labels, changed paths and counts, with a summary in our words. No source text and no description beyond one short quote (D10, D61).
