Skip to content

Bug 624745: [Quality Management] Quality Management Setup. Quality Inspection Selection Criteria - default value#7616

Merged
alexei-dobriansky merged 2 commits intomainfrom
bugs/624745-DefaultQltyInspectionSelectionCriteria
Apr 13, 2026
Merged

Bug 624745: [Quality Management] Quality Management Setup. Quality Inspection Selection Criteria - default value#7616
alexei-dobriansky merged 2 commits intomainfrom
bugs/624745-DefaultQltyInspectionSelectionCriteria

Conversation

@alexei-dobriansky
Copy link
Copy Markdown
Contributor

@alexei-dobriansky alexei-dobriansky commented Apr 9, 2026

Summary

  • Set the default value of "Quality Inspection Selection Criteria" in Quality Management Setup to "Only the newest inspection/re-inspection"

Details

Previously, the field defaulted to "Any inspection that matches" (enum value 0), which caused the system to evaluate all inspections for an item/lot when deciding whether to block a transaction. This meant that even after a successful re-inspection, a prior failed inspection would still block transactions.

With this change, new setups will default to considering only the most recent inspection/re-inspection, so a passing re-inspection correctly overrides a previous failure.

File changed: app/src/Setup/QltyManagementSetup.Table.al — added InitValue = "Only the newest inspection/re-inspection" to the "Inspection Selection Criteria" field.

Note: This only affects newly created setup records. Existing environments retain their current setting.

Fixes AB#624745

@alexei-dobriansky alexei-dobriansky self-assigned this Apr 9, 2026
@alexei-dobriansky alexei-dobriansky requested a review from a team as a code owner April 9, 2026 12:15
@github-actions github-actions bot added the AL: Apps (W1) Add-on apps for W1 label Apr 9, 2026
@github-actions github-actions bot added this to the Version 29.0 milestone Apr 9, 2026
Copy link
Copy Markdown

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AL Documentation Audit

Documentation gaps were detected in the following apps:

  • Quality-Management: 0% documentation coverage

To generate documentation, run /al-docs init or /al-docs update using GitHub Copilot CLI or Claude Code.
This review is for awareness to help keep documentation in sync with code changes. It is okay to dismiss this request.

@alexei-dobriansky alexei-dobriansky enabled auto-merge (squash) April 10, 2026 12:34
@github-actions
Copy link
Copy Markdown

⚠️ Stale Status Check Deleted

The Pull Request Build workflow run for this PR was older than 72 hours and has been deleted.

📋 Why was it deleted?

Status checks that are too old may no longer reflect the current state of the target branch. To ensure this PR is validated against the latest code and passes up-to-date checks, a fresh build is required.


🔄 How to trigger a new status check:

  1. 📤 Push a new commit to the PR branch, or
  2. 🔁 Close and reopen the PR

This will automatically trigger a new Pull Request Build workflow run.

…624745-DefaultQltyInspectionSelectionCriteria
@alexei-dobriansky alexei-dobriansky merged commit d6fc6f5 into main Apr 13, 2026
49 checks passed
@alexei-dobriansky alexei-dobriansky deleted the bugs/624745-DefaultQltyInspectionSelectionCriteria branch April 13, 2026 13:47
alexei-dobriansky added a commit that referenced this pull request Apr 13, 2026
…spection Selection Criteria - default value (#7616)

## Summary
- Set the default value of "Quality Inspection Selection Criteria" in
Quality Management Setup to "Only the newest inspection/re-inspection"

## Details
Previously, the field defaulted to "Any inspection that matches" (enum
value 0), which caused the system to evaluate **all** inspections for an
item/lot when deciding whether to block a transaction. This meant that
even after a successful re-inspection, a prior failed inspection would
still block transactions.

With this change, new setups will default to considering only the most
recent inspection/re-inspection, so a passing re-inspection correctly
overrides a previous failure.

**File changed:** `app/src/Setup/QltyManagementSetup.Table.al` — added
`InitValue = "Only the newest inspection/re-inspection"` to the
`"Inspection Selection Criteria"` field.

**Note:** This only affects newly created setup records. Existing
environments retain their current setting.

Fixes
[AB#624745](https://dynamicssmb2.visualstudio.com/1fcb79e7-ab07-432a-a3c6-6cf5a88ba4a5/_workitems/edit/624745)
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants