Skip to content

[Quality Management] Enable Bin code selection for transfer disposition in workflow response - #10067

Open
Dusan Jakovljevic (JakovljevicDusan) wants to merge 1 commit into
mainfrom
bugs/QM-EnableBinSelectionForTransferAsWorkflowResponse
Open

[Quality Management] Enable Bin code selection for transfer disposition in workflow response#10067
Dusan Jakovljevic (JakovljevicDusan) wants to merge 1 commit into
mainfrom
bugs/QM-EnableBinSelectionForTransferAsWorkflowResponse

Conversation

@JakovljevicDusan

@JakovljevicDusan Dusan Jakovljevic (JakovljevicDusan) commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

What & why

Synchronize behavior with manual disposition form quality inspection.

Linked work

Fixes AB#624735

@github-actions github-actions Bot added AL: Apps (W1) Add-on apps for W1 SCM GitHub request for SCM area labels Aug 9, 2026
@github-actions github-actions Bot added this to the Version 29.0 milestone Aug 9, 2026
@alexei-dobriansky

Copy link
Copy Markdown
Contributor

Agentic PR Review - Round 1

Recommendation: Accept with Suggestions

What this PR does

This PR fixes the Quality Management workflow response options page so that bin code selection works when the workflow response action is "Create Transfer Order". Previously, the bin visibility and validation logic (QltyShowBinCode flag, bin clearing on location change) was wrapped in if not QltyShouldShowGrpTransfer then begin ... end, which skipped the entire block for the transfer disposition. The PR removes this guard in two places: the OnValidate trigger of the location field and the SetLocationAndBinCode procedure.

The fix is correct. When QltyShouldShowGrpTransfer = true, the page is showing the Transfer destination group and the bin code field should be enabled based on whether the destination location has bin mandatory. The old guard was preventing this, making bin selection unavailable for transfer workflow responses even when the destination location requires bins.

The OnValidate change also preserves the bin-clearing logic (if the previously selected bin does not exist in the new location, clear it), which is correct behavior.

Suggestions

S1 - Pre-existing semicolon after then in SetLocationAndBinCode makes the guard ineffective

In SetLocationAndBinCode, the line if Location.Get(QltyLocationCode) then; has a semicolon immediately after then, so the next line QltyShowBinCode := Location."Bin Mandatory"; runs unconditionally even when Location.Get returns false. When the location does not exist, Location."Bin Mandatory" is false, so QltyShowBinCode ends up false (overriding the true set two lines above). This bug is pre-existing and not introduced by this PR, but the PR touches this block — consider fixing the semicolon so the guard actually works: if Location.Get(QltyLocationCode) then QltyShowBinCode := Location."Bin Mandatory";.

Risk assessment and necessity

Risk: Low. The change is confined to a single page extension in the Quality Management app (W1). It affects only UI state (QltyShowBinCode visibility flag and bin code clearing on location change). No financial posting, no table writes, no event signatures touched.

Necessity: High. Without the fix, the bin code field is always invisible and ignored when setting up a transfer workflow response, making it impossible to configure a bin destination even for bin-mandatory locations. The manual disposition form already supports this (per the PR description), and the workflow response form should be consistent.


[AI-PR-REVIEW] version=1 promptVersion=1 system=github pr=10067 round=1 by=alexei-dobriansky at=2026-08-10T07:51:15Z lastSha=ca6dcddcb653b32d47a92802d35c4233b52ce591 reviewKey=e1f40790ba7c1b2dbd59d1739f025d63e209dc54c409a2fe304df77634d4c512 suggestions=S1@97951d10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AL: Apps (W1) Add-on apps for W1 SCM GitHub request for SCM area

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants