#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.
- 3files
- 2AL files
- 1objects
Pull request · 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”, 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).