Issue in calculating expected reports in Reporting Rate Summary

Hello Team,

The program crashes (or gives an error) when I try to calculate expected reports for the daily form if I select a period that includes multiple days. This can be seen in the attached image
Expected Reports_3 Days
However, it works fine if I only choose a single day for the period, as shown in the other image.
Expected Reports_1 Day
Note: I am using DHIS2 version: 2.39.4

Best regards,
Jamal

Hi @jamal_aljadan

In the first image I see that when you selected three days, it showed that the expected number of reports is 9, but when you selected only one day the expected number 1. My first question is, if you select each of those three days separately (05-13, 05-14, 05-15) does it give you Expected reports 1 for each? I see in your second image, for 05-15 it’s already one, so this leaves us for the other two.

Additionally, in the screenshot you provided, I can’t see a crash, could you explain more? Additionally, if we reproduce this on any of the play.dhis2.org instances, it will be helpful.

Thank you!

Hello @Gassim

There seems to be an issue with the way the system calculates values.
When I choose three specific days individually, it shows “1” for each day, which is correct (as shown in the attached image)
Screenshot 2024-05-17 114327
However, if I select the same three days together in the “period” section, it gives a total of “9” for all three days. This is incorrect; the total should be “3” (as shown in the attached image).
Expected Reports_3 Days