New requisition template generates with incorrect name for product name and code
Description
After generating a new requisition template and then initiating a requisition using that template, the columns that should contain product names and codes are empty. This is due to incorrect names generated in new template.
Repro steps: 1. Delete/edit template for one of the programs to not be used in any facility type (Remove associated facilities from existing program's requisition template) 2. Click "Add Requisition Template" at the bottom of the Requisition Template page 3. Add it to all facility types that were removed in step 1. 4. Save 5. Initiate a requisition for the same program that the template was created 6. Notice that product name and code in the requisition are empty
Expected: Product name and code are populated
Cause: The "name" field in columnsMap is incorrect for product name and code. "productName" should be "orderable.fullProductName" "productCode" should be "orderable.productCode"
IMPORTANT! Need to verify that all other columns are named and work correctly when a new requisition template is added.
OK, thank you for clarification. Since it's not within the scope of this ticket, I'll create a new one related to the printing issues and move this ticket to Done.
Mateusz KwiatkowskiOctober 30, 2018 at 12:32 PM
yes, please create a ticket for that.
Joanna BebakOctober 30, 2018 at 9:36 AM
I checked, and all of the above-mentioned columns but "Product" and "Product code" are not visible in the printed version of the requisition also when the demo-data templates are used (I checked "FP" and "Vaccine SBR"). Should I create a new ticket for this issue or not?
Joanna BebakOctober 30, 2018 at 8:23 AM
I made a re-test and the "Unit/unit of issue" column is no longer blank and it is possible to print requisitions but there are still some issues with printing, unfortunately. I created two requisition templates - 1 for FP, displaying all columns but Calc Order Qty ISA, and 1 for EPI, stock-based and displaying all columns. In the requisition, everything worked fine but in print, the following columns were missing:
Product;
Product code;
Maximum stock quantity;
Ideal stock amount;
Additional quantity required;
Unit/unit of issue;
Calc order qty ISA.
Please look at the attached PDFs.
Mateusz KwiatkowskiOctober 29, 2018 at 1:09 PM
I think that both of those issues have the same origin and it seems to be fixed now, please check if I'm right.
Done
Pinned fields
Click on the next to a field label to start pinning.
After generating a new requisition template and then initiating a requisition using that template, the columns that should contain product names and codes are empty. This is due to incorrect names generated in new template.
Repro steps:
1. Delete/edit template for one of the programs to not be used in any facility type (Remove associated facilities from existing program's requisition template)
2. Click "Add Requisition Template" at the bottom of the Requisition Template page
3. Add it to all facility types that were removed in step 1.
4. Save
5. Initiate a requisition for the same program that the template was created
6. Notice that product name and code in the requisition are empty
Expected:
Product name and code are populated
Cause:
The "name" field in columnsMap is incorrect for product name and code.
"productName" should be "orderable.fullProductName"
"productCode" should be "orderable.productCode"
IMPORTANT!
Need to verify that all other columns are named and work correctly when a new requisition template is added.