---
id: change/bcapps/9538
type: change
title: "#9538 [main]- Requests to Approve: Open Record shows wrong Requisition Worksheet batch after viewing a different batch"
summary: The Req. Worksheet page now correctly displays the intended requisition batch when opened from an approval record, preventing stale batch filters from interfering with the record view.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - page req. worksheet
system: inventory
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:11:16.021Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 2099f20dc46190bbe97d01f59556cc3fb711cc69
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/9538
    title: "microsoft/BCApps#9538: [main]- Requests to Approve: Open Record shows wrong Requisition Worksheet batch after viewing a different batch"
    date: "2026-07-28"
    commit: 2099f20dc46190bbe97d01f59556cc3fb711cc69
    t: null
    quote: Open Record shows wrong Requisition Worksheet batch after viewing a different batch
links:
  learn: []
  objects:
    - object/page/291
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 9538
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/9538
kind: pr
base_branch: main
major: "30"
merged_at: "2026-07-28T06:59:34Z"
author: v-ankitgoyal
author_type: User
community_contribution: false
labels:
  - "Team: SCM"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 3
  additions: 85
  deletions: 0
  al: 2
apps:
  - Base Application
objects_touched:
  - key: page/291
    page: page/291
    type: page
    id: 291
    name: Req. Worksheet
    app: Base Application
    status: modified
objects_unjoined:
  - path: src/Layers/NA/BaseApp/Inventory/Requisition/ReqWorksheet.Page.al
    status: modified
    reason: not-in-snapshot
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 642418
systems:
  - inventory
quote: Open Record shows wrong Requisition Worksheet batch after viewing a different batch
joined_against:
  major: "30"
  commit: f18567dc08e2bd162bf192e1da4d714b57eb099f
---

# #9538 [main]- Requests to Approve: Open Record shows wrong Requisition Worksheet batch after viewing a different batch

> The Req. Worksheet page now correctly displays the intended requisition batch when opened from an approval record, preventing stale batch filters from interfering with the record view.

[Pull request](https://github.com/microsoft/BCApps/pull/9538) · merged into `main` (BC30) on 2026-07-28 by v-ankitgoyal · 3 files (+85 -0), 2 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Added GetCurrentJnlBatchName() helper to detect when page opens on a specific batch record
- Overrides SaveValues-restored batch value with the record's actual batch when appropriate
- Applies template filter to scope page to the correct worksheet template
- Fixes case where approval record with both batch name and template name would fall through to wrong path
- Prevents stale batch data from affecting the OpenJnl filter
- Behaviour changes for users or extensions.

## AL objects touched

- [Page 291 "Req. Worksheet"](../../objects/page/291.md), Base Application: modified
- `src/Layers/NA/BaseApp/Inventory/Requisition/ReqWorksheet.Page.al`: modified, not in the BC30 snapshot

## Context

- Work items: AB#642418
- Labels: Team: SCM
- Systems: inventory
- From the description: "Open Record shows wrong Requisition Worksheet batch after viewing a different batch"

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).
