Show display unit for Dispensable

Description

The Orderable now has a Dispensable with a fuller model, and the "dispensingUnit" value is no longer universal for all orderables; instead there is now a "displayUnit". The UI uses the "dispensingUnit", so this should now be changed to use what is in the "displayUnit".

See one specific example with screenshots in this comment on the related ticket:
https://openlmis.atlassian.net/browse/OLMIS-4017?focusedCommentId=48483&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-48483

Acceptance Criteria

  • Change in the UI anything that shows the Orderable's dispensable.dispensingUnit to show the value of dispensable.displayUnit

QAlity Plus - Test Management

Checklists

Activity

Show:

Paweł Albecki March 20, 2018 at 5:21 PM

I verified following views with divo1 user for EPI program (for orderable with dispensingUnit null and displayUnit not null):

  • Create/Authorize/Approve/View Requisition

  • View and Print Proof of Delivery

  • Stock On Hand details view

  • Administration -> Products -> Orderable Details

Mateusz Kwiatkowski March 20, 2018 at 4:31 PM

I've created requisition for EPI program as divo and there are display units I believe

Paweł Albecki March 20, 2018 at 4:21 PM

I can't verify if UI shows correct display unit because both dispensingUnit and displayUnit have the same values? Why do we have them both? Can you provide some test plan?

Nikodem Graczewski March 20, 2018 at 12:41 PM

That's correct the path to the property used on the product grid.

Łukasz Lewczyński March 20, 2018 at 8:18 AM
Edited

for requisition template I think we need to change the name field in the demo data (check requisition.column_maps.json). You can see that the name field is equal to the path to dispensingUnit. Could you provide info how reference data data are shown on the product grid?

Also I don't see any new review

Done
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Story Points

Original estimate

Time tracking

1d 4h logged

Components

Sprint

Fix versions

Priority

Time Assistant

Created February 13, 2018 at 4:16 AM
Updated March 21, 2018 at 10:25 AM
Resolved March 20, 2018 at 5:23 PM