Total requisition cost is not calculated for emergency requisition past Submitted status

Description

Reproduction steppes

  • Log in as srmanager4

  • Initiate emergency requisition

  • Add some products with requested quantity greater than 0

  • Submit the requisition

  • Log in as smanager4

  • Enter the emergency requisition created in the 2nd step

Result
Total requisition cost is 0

Expected behavior
Total cost is calculate properly

Environment

None

QAlity Plus - Test Management

Checklists

Activity

Joanna Bebak 
March 28, 2018 at 7:47 AM

I checked, and the issue was fixed.

Paweł Albecki 
March 27, 2018 at 9:26 AM
(edited)

The problem is that UI not always send (depends on req template setting) pricePerPack to API on update requisition. I think this field of line item shouldn't depend on what user pass but should always be filled with referencedata value. I will fix API.

Paweł Albecki 
March 27, 2018 at 9:15 AM

I think this happen for every requisition for Essential Meds, any products. I sent you links on Slack.

Nikodem Graczewski 
March 27, 2018 at 9:07 AM

Could you link the requisition for which this happens?

Paweł Albecki 
March 27, 2018 at 8:42 AM

I can see that calculation cost does not work for Essential Meds only. I see that line items in response are missing pricePerPack. Do you think this can be a cause? In this case it can be API issue?

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

Details

Assignee

Reporter

Story Points

Original estimate

Time tracking

7h logged5h remaining

Components

Sprint

Priority

Time Assistant

Created March 23, 2018 at 2:41 PM
Updated August 10, 2018 at 7:39 AM
Resolved March 28, 2018 at 7:48 AM