udsm-dhis2-lab / iCareConnect

The icare Project
GNU Lesser General Public License v2.1
3 stars 259 forks source link

Fix bug: Show notification for a drug if is out of stock not until a user confirm verification #131

Open Moricembiaji opened 1 year ago

Moricembiaji commented 1 year ago

Describe the bug A system should show notification for a drug if it is out of stock when a user writes quantity, not until a user confirms verification.

To Reproduce Steps to reproduce the behavior:

  1. Please login in the system using the link "https://icare-student.dhis2.udsm.ac.tz/"; username: "admin", passcode: "Admin123"
  2. Click on 'register new patient either with insurance or cash'
  3. Click on clinic to attend patient
  4. Confirm diagnosis and prescribe medication select a drug whose red color means it is out of stock
  5. Go to dispensing
  6. Select a patient to 'verify' the drug you describe in clinic'
  7. See error by when you add quantity a notification will not be pop up until you save

Expected behavior A user expectation is to see notification message when write quantity not until confirm/save the verification.

Screenshots Stockout1 out of stock

joramallan commented 1 year ago

We know what to do but we cannot find a specific file to deal with, can you tell us the directory to deal with?

HonestMarc commented 1 year ago

Hello @joramallan, here is the path to the file:

ui/src/app/shared/dialogs/dispension-form/dispension-form.component.html

However you have to know on how to inspect a page and copy a pattern that may help you to search for that page

HonestMarc commented 1 year ago

eg: when inspecting you copy <app-any-app-name> then search for that keyword in all folders in your vs-code

joramallan commented 1 year ago

Thank you