Skip to content

OBPIH-7184 keep 0 qty requisition items#5570

Merged
ewaterman merged 2 commits intodevelopfrom
ft/OBPIH-7184-keep-0-qty-requisition-items
Oct 28, 2025
Merged

OBPIH-7184 keep 0 qty requisition items#5570
ewaterman merged 2 commits intodevelopfrom
ft/OBPIH-7184-keep-0-qty-requisition-items

Conversation

@ewaterman
Copy link
Member

✨ Description of Change

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

Description: See ticket for further details but we no longer want to delete rows with Needed Qty == 0 when saving a requisition.


📷 Screenshots & Recordings (optional)

Video showing that saving the requisition while there are rows with Needed Qty == 0 does not show the warning message and allows the rows to be saved.

2025-10-24_11-38-07.mp4

@ewaterman ewaterman self-assigned this Oct 24, 2025
@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 domain: backend Changes or discussions relating to the backend server labels Oct 24, 2025
@ewaterman
Copy link
Member Author

FYI I haven't had a chance to test this thoroughly yet but it does appear to be working

@ewaterman ewaterman changed the title OBPIH 7184 keep 0 qty requisition items OBPIH-7184 keep 0 qty requisition items Oct 24, 2025
@codecov
Copy link

codecov bot commented Oct 24, 2025

Codecov Report

❌ Patch coverage is 0% with 12 lines in your changes missing coverage. Please review.
✅ Project coverage is 8.54%. Comparing base (1bb7314) to head (6c7336e).
⚠️ Report is 160 commits behind head on develop.

Files with missing lines Patch % Lines
...ih/warehouse/inventory/StockMovementService.groovy 0.00% 12 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             develop   #5570      +/-   ##
============================================
- Coverage       9.12%   8.54%   -0.59%     
+ Complexity      1170    1116      -54     
============================================
  Files            701     703       +2     
  Lines          45281   45348      +67     
  Branches       10851   10868      +17     
============================================
- Hits            4131    3874     -257     
- Misses         40497   40896     +399     
+ Partials         653     578      -75     

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

Comment on lines -1281 to +1276
const zeroedLines = _.some(lineItems, (item) => !item.quantityRequested || item.quantityRequested === '0');
if (zeroedLines || this.state.isRequestFromWard) {
if (this.state.isRequestFromWard) {
Copy link
Collaborator

@SebastianLib SebastianLib Oct 24, 2025

Choose a reason for hiding this comment

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

Are you sure we don’t need to do the same thing in Create Outbound? When we use the stocklist, we also have the needed qty 🤔

image

Copy link
Member Author

Choose a reason for hiding this comment

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

confirmed in standup that we only need this change in requisitions

@ewaterman ewaterman merged commit 664cbba into develop Oct 28, 2025
7 checks passed
@ewaterman ewaterman deleted the ft/OBPIH-7184-keep-0-qty-requisition-items branch October 28, 2025 19:11
@sentry
Copy link

sentry bot commented Nov 4, 2025

Issues attributed to commits in this pull request

This pull request was merged and Sentry observed the following issues:

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

Labels

domain: backend Changes or discussions relating to the backend server 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.

2 participants