Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Manual Requisitions #5089

Closed
14 of 46 tasks
roxy-dao opened this issue Oct 11, 2024 · 7 comments
Closed
14 of 46 tasks

Manual Requisitions #5089

roxy-dao opened this issue Oct 11, 2024 · 7 comments
Labels
Build Tested: Issues Found Issue has been build tested with new issue(s) made for failed tests. enhancement New feature or request Epic feature: manual requisition Team Ruru 🦉 Roxy, Ferg, Noel Tester: Alain Alain is testing this

Comments

@roxy-dao
Copy link
Contributor

roxy-dao commented Oct 11, 2024

IN PROGRESS

Manual requisitions refer to the ability to create manual customer requisitions to supply stock to customers on behalf of the customer.

Specs document

To be implemented

Test Instructions

  • Have programs set up for customers with mSupply stores and those without (to test that you can create program requisitions for customers who aren't using mSupply)
  • For non-mSupply customers, go to their information window -> Tag -> Add tag to ensure that they are using the program
  • Sync mSupply to OMS
  • Go to the Requisition page
  • Click New Requisition button
  • If you have programs set up, you should see that you have the option to add either a Program Requisition or a General Requisition (you should be able to create manual Requisitions for customers who are using mSupply and those who aren't. Indicated with the store icon)

Program Requisition

  • First try to create a program Requisition: Choose the program, customer name, order type and period
  • You should be redirected to the Requisition detail view page
  • There should be extra columns in the table: Initial SOH, Incoming, Outgoing, Losses, Additions, Available, Short Expiry, Days out of stock, AMC, MOS, and reason.
  • The Add Item button should be disabled.
  • You can read the program information by clicking More
Screen.Recording.2024-11-08.at.11.16.41.AM.mov
  • Click on a requisition line
  • Get redirected to the requisition line edit page

Screenshot 2024-11-08 at 11 18 49 AM

  • The current item you are looking at should be bold and have the > icon next to it
  • Try to edit some values. Make sure they are saved properly
  • Entering a value in suggested quantity (that is not 0) will enable the green tick icon to appear in front of the item name
    Screenshot 2024-11-08 at 1 22 43 PM
  • Click on the Chart icon next to quantity to supply to see stats relating to your store
    Screenshot 2024-11-08 at 11 35 03 AM
  • Navigate through the items by either clicking:
    • Previous (disabled if this is the first item in the list). Should go back to the previous item on the list
    • Next (disabled if this is the last item in the list). Should go to the next item on the list
    • Clicking the item on the list itself
  • Click Close button. Should redirect back to the requisition detail page.

General Requisition

  • For requisitions transferred from Internal Orders:
    • Initial stock on hand should change to stock on hand in the line edit page
    • You can see a bar icon next to the requested quantity which should show the customer's stock information
      Screenshot 2024-11-08 at 12 30 15 PM
    • Should only be able to edit suggested quantity (all the other columns should be hidden
  • Create a general requisition by clicking the Add Requisition button and selecting a customer in the General tab
  • This should redirect you to the Requisition page with no lines
  • Click add item -> modal will pop up for you to select the item
  • Select item and be redirected to the Requisition line edit page (noted above initial stock on hand should change to stock on hand)
  • Everything else should be the same as program requisition (extra columns should be hidden)
    Screenshot 2024-11-08 at 12 17 36 PM

Indicators and global preference tests coming soon

Moneyworks Jobcode 🧰

OMS:CIMDV

@roxy-dao roxy-dao added enhancement New feature or request Epic Team Ruru 🦉 Roxy, Ferg, Noel labels Oct 11, 2024
@roxy-dao
Copy link
Contributor Author

Question: Do we populate values based on existing customer data if user creates a manual requisition for existing customer for some emergency reason?

@mark-prins
Copy link
Collaborator

I don't think that we can - a store wouldn't have a customer's data available unless they were on the same site.

@alainsussol
Copy link

alainsussol commented Nov 15, 2024

Test setup

Testing on tablet Android 14 with v.2.4.0RC1
and mSupply v19-0dev27

With the tablet I have this message from time to time. and omSupply is often slow on login. I assume that it has difficulty with the omSupply server which run on the same device. Did not open an issue yet as it doesn't happen all the time and I didn't heard anyone else complain yet.
Screenshot_20241118_132052_Open mSupply

Test Instructions

  • Have programs set up for customers with mSupply stores and those without (to test that you can create program requisitions for customers who aren't using mSupply)
  • For non-mSupply customers, go to their information window -> Tag -> Add tag to ensure that they are using the program
  • Sync mSupply to OMS
  • Go to the Requisition page
  • Click New Requisition button
  • If you have programs set up, you should see that you have the option to add either a Program Requisition or a General Requisition (you should be able to create manual Requisitions for customers who are using mSupply and those who aren't. Indicated with the store icon)

Migrate IC existing store with requisition

  • Requisitions are migrating properly (Comparing with data in mSupply OG server)
    • Migrations are displayed in the requisition list window with the proper program, proper period, proper order type, proper status, proper customer. -PASS-
    • Open a Requisition. Check the data

Testing Configuration Preferences

  • Go to your store -> Preferences
  • Enable the Show extra fields on requisition preference
  • Go to OMS -> Sync
  • Create a program requisition for any store
  • See all the extra columns -PASS-
  • Click on a line, also see the extra columns in the line edit page
  • Go back to mSupply
  • Go to your store -> Preferences
  • Disable Show extra fields on requisition preference
  • Go to OMS -> Sync
  • Create program requisition for any store
  • See all extra columns gone -PASS-
  • Click on lines, extra columns should be gone from here too -PASS-

Program Requisition

Screen.Recording.2024-11-08.at.11.16.41.AM.mov
  • Click on a requisition line
  • Get redirected to the requisition line edit page -PASS-

Screenshot 2024-11-08 at 11 18 49 AM

  • The current item you are looking at should be bold and have the > icon next to it -PASS. However if I choose a line toward the bottom of the list, should we not position ourselves directly on that item in the item line list on the left on the requisition edit page. Currently I have to scroll to it manually. It is not a big issue but I thought it is worth mentioning-

  • Try to edit some values. Make sure they are saved properly. -PASS-

  • Entering a value in suggested quantity Quantity to supply (that is not 0) will enable the green tick icon to appear in front of the item name -PASS-
    Screenshot 2024-11-08 at 1 22 43 PM

  • Click on the Chart icon next to quantity to supply to see stats relating to your store

  • Navigate through the items by either clicking:

    • Previous (disabled if this is the first item in the list). Should go back to the previous item on the list -PASS-
    • Next (disabled if this is the last item in the list). Should go to the next item on the list -PASS-
    • Clicking the item on the list itself -PASS-
  • Click Close button. Should redirect back to the requisition detail page. -PASS-

  • Deleting a response requisition

    • Try to delete a requisition with a shipment. omSupply should not let you -PASS-
    • Try to delete a Transfer Response requisition. omSupply should not let you -PASS-
      • Try to delete a Transfer Response requisition line. omSupply should not let you -PASS-
    • You can delete a Response requisition that is not one of the above. -PASS-
      • Deleting a requisition also delete the lines. (After syncing the lines should be deleted on the OG Central server)
    • You can delete a Response requisition line that is not one of the above. -PASS-
  • Cannot do more requisitions for a customer for a program and a period than what is set in the program settings for the type of order -PASS-

General Requisition

  • For requisitions transferred from Internal Orders:

  • Create a general requisition by clicking the Add Requisition button and selecting a customer in the General tab

  • This should redirect you to the Requisition page with no lines -PASS-

  • Click add item -> modal will pop up for you to select the item -PASS-

  • Select item and be redirected to the Requisition line edit page (noted above initial stock on hand should change to stock on hand) -PASS-

  • extra columns should be hidden -PASS-

  • Everything else should be the same as program requisition -PASS-
    Screenshot 2024-11-08 at 12 17 36 PM

  • Can do as many requisitions per customer as needed -PASS-

@roxy-dao
Copy link
Contributor Author

Closing. Only global pref issue left and it has its own issue

@roxy-dao
Copy link
Contributor Author

roxy-dao commented Nov 27, 2024

Indicator Tests

Note this currently only works for manual requisitions

  • The indicator tab in the Requisition page shouldn't show up if no indicators have been set up for the program -FAIL When no indicators are configured for a program, the indicator tab still shows with a blank page #5634-
  • In OG, go to Master List
  • Click on the program master list and go to the Program Settings tab
  • Either: tick that this program is an HIV program or add indicators in the Regimen data section
  • Sync to OMS
  • In OMS: Go to Requisitions
  • Create a new Requisition
  • See indicator tab is there -PASS-
  • Click on either the Regimen or HIV buttons
  • Be redirect to the indicators edit page -PASS-
  • A list of indicators should be showing with the first indicator being selected -PASS-
    • The value and comment edit fields are visible and enterable -PASS-
    • The previous navigation button is grayed -PASS-
    • add a value of the type configured. Value is entered -PASS-
    • add a value not of the type configured. Should have an error -PASS-
    • add a comment. -PASS-
    • click on the next button to get to the next indicator -PASS-
    • When all the indicators has been done. The next button should be grayed
    • Navigate between indicators by clicking on their name. Their values for each indicator are still there -PASS-
  • Go back to the indicators page. You should see the the Regimen button -PASS but Infinite loading loop when navigating from an indicator to the indicators page using the header navigation bar #5610-
  • Sync and check the store on central server on OG. You should see the indicators with the right values -PASS-
  • Create a general requisition the Indicators tab should not be visible -PASS-
  • Redo the test for HIV program
    • See indicator tab is there -PASS-
    • Click on HIV buttons -PASS-
    • Be redirect to the indicators edit page -PASS-
    • A list of indicators should be showing with the first indicator being selected -PASS-
    • The value and comment edit fields are visible and enterable -PASS-
    • The default value is showing -PASS-
    • The previous navigation button is grayed -PASS-
    • add a value of the type configured. Value is entered -PASS-
    • add a value not of the type configured. Should have an error -PASS-
    • click on the next button to get to the next indicator -PASS-
    • When all the indicators has been done. The next button should be grayed -PASS-
    • Navigate between indicators by clicking on their name. Their values for each indicator are still there -PASS-
  • Go back to the indicators page. You should see the the Regimen button -PASS but Infinite loading loop when navigating from an indicator to the indicators page using the header navigation bar #5610-
  • Sync and check the store on central server on OG. You should see the indicators with the right values -PASS-
  • Add some regimen indicators to your HIV program and Sync
  • Create a new requisition
    • Both Regimen and HIV buttons should be present -PASS-
  • Create a general requisition the Indicators tab should not be visible -PASS-

@alainsussol alainsussol mentioned this issue Nov 29, 2024
16 tasks
@alainsussol alainsussol added Build Tested: Issues Found Issue has been build tested with new issue(s) made for failed tests. Tester: Alain Alain is testing this labels Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Build Tested: Issues Found Issue has been build tested with new issue(s) made for failed tests. enhancement New feature or request Epic feature: manual requisition Team Ruru 🦉 Roxy, Ferg, Noel Tester: Alain Alain is testing this
Projects
None yet
Development

No branches or pull requests

4 participants