Skip to content

OBPIH-7187 Allow user to remove reason code after deleting revised qty#5566

Merged
alannadolny merged 1 commit intodevelopfrom
feature/OBPIH-7187
Oct 24, 2025
Merged

OBPIH-7187 Allow user to remove reason code after deleting revised qty#5566
alannadolny merged 1 commit intodevelopfrom
feature/OBPIH-7187

Conversation

@SebastianLib
Copy link
Collaborator

✨ Description of Change

Link to GitHub issue or Jira ticket:
https://pihemr.atlassian.net/browse/OBPIH-7187

Description:


📷 Screenshots & Recordings (optional)

@github-actions github-actions bot added type: feature A new piece of functionality for the app domain: frontend Changes or discussions relating to the frontend UI labels Oct 24, 2025
@codecov
Copy link

codecov bot commented Oct 24, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 8.50%. Comparing base (1bb7314) to head (c9c092b).
⚠️ Report is 153 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff              @@
##             develop   #5566      +/-   ##
============================================
- Coverage       9.12%   8.50%   -0.62%     
+ Complexity      1170    1109      -61     
============================================
  Files            701     702       +1     
  Lines          45281   45335      +54     
  Branches       10851   10867      +16     
============================================
- Hits            4131    3856     -275     
- Misses         40497   40904     +407     
+ Partials         653     575      -78     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

const selectedReasonCode = values?.editPageItems[rowIndex]?.reasonCode;
return {
disabled: fieldValue === null || fieldValue === undefined || subfield || isSubstituted,
disabled: ((fieldValue === null || fieldValue === undefined) && !selectedReasonCode)
Copy link
Collaborator

Choose a reason for hiding this comment

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

how does it reflect to "allow to remove reason code after deleting revised qty"? I don't see anything related to the revised quantity added by you here 🤔

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

fieldValue here actually represents the revised quantity, since this field uses fieldKey: 'quantityRevised'. We now disable the 'Reason Code' dropdown if there’s nothing in either 'Qty Revised' or 'Reason Code'. You can see how it works now here: https://jam.dev/c/814c44f4-e782-4ac3-90c9-ce327f22233f

@alannadolny alannadolny merged commit 0f2ec1b into develop Oct 24, 2025
7 checks passed
@alannadolny alannadolny deleted the feature/OBPIH-7187 branch October 24, 2025 08:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

domain: frontend Changes or discussions relating to the frontend UI type: feature A new piece of functionality for the app

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants