Physical Inventory Print report is added using demo-data instead of migration


It seems that the Physical Inventory Print report is added as demo data in Stock Management service instead of in migration. Look at jasper_templates.csv

This could be fine if this report would not be used on the Stock Management UI. When someone is submitting Physical Inventory browser prompts you with modal that asks you about printing a report. When the user accepts then he is prompt with this error:

Of course, this occurs if demo-data is not loaded.




Ben Leibert
April 2, 2019, 2:58 PM

Thank you very much, . I think we should contribute the fix to the core project then, and will create a ticket in Angola's backlog against which to charge the time.

Mateusz Kwiatkowski
April 4, 2019, 11:12 AM

please verify if printing physical inventory works from modal after submitting physical inventory.

Joanna Bebak
April 5, 2019, 7:21 AM

1. I started testing the ticket and noticed one minor issue occurring on both browsers, though I'm not sure if related to this ticket: The expiry date of Levora MA2017 in the printed inventory is one day later (30/01/2019) than on the UI (29/01/2019). Please look at the attached screenshots:

The same issue occurs also for the Essential Meds and EPI programs.

2. I also noticed that the hour in the printed PDF is two hours earlier than in reality - e.g. "Submitted into system on 05/04/2019 07:50:23" was visible when I submitted the inventory at 9:50.

Please take a look at those issues and tell me if any of them are related to your changes. I suppose that they might be related also to the tickets that are being worked on by the Mind the Gap team (OLMIS-4408, and OLMIS-6179) but I may be wrong.

Sebastian Brudziński
April 5, 2019, 9:23 AM

- this ticket deals only with moving the report from demo-data to bootstrap data. Nothing has changed about the report logic. If there are issues with the report itself, please check with the Gap team if you suspect it may be connected with their changes or create a new ticket.

Here, we just want to make sure the report is still here and that it prints.

Joanna Bebak
April 5, 2019, 9:31 AM

OK, I see. I'll move the ticket to Done, then.


Mateusz Kwiatkowski


Mateusz Kwiatkowski



Story Points


Time tracking





Fix versions