Public bug reported: We have created a validation rule which compares the number of of days of stock out of a certain commodity with the number of days in the reporting period. We use the special "D" paramater in the validation rule dialog to get the number of days. However, it does not seem to work properly. If we use something like "31" it works, but of course for months like Februrary which has 28 or 29 days, they could enter more days than there are actually days in this reporting period.
Version: 2.15 Build revision: 15172 ** Affects: dhis2 Importance: Undecided Status: New ** Description changed: We have created a validation rule which compares the number of of days of stock out of a certain commodity with the number of days in the reporting period. We use the special "D" paramater in the validation rule dialog to get the number of days. However, it does not seem to work properly. If we use something like "31" it works, but of course for months like Februrary which has 28 or 29 days, they could enter more days than there are actually days in this reporting period. + + Version: + 2.15 + Build revision: + 15172 -- You received this bug notification because you are a member of DHIS 2 developers, which is subscribed to DHIS. https://bugs.launchpad.net/bugs/1334166 Title: validation-rules-number-of-days does not work Status in DHIS 2: New Bug description: We have created a validation rule which compares the number of of days of stock out of a certain commodity with the number of days in the reporting period. We use the special "D" paramater in the validation rule dialog to get the number of days. However, it does not seem to work properly. If we use something like "31" it works, but of course for months like Februrary which has 28 or 29 days, they could enter more days than there are actually days in this reporting period. Version: 2.15 Build revision: 15172 To manage notifications about this bug go to: https://bugs.launchpad.net/dhis2/+bug/1334166/+subscriptions _______________________________________________ Mailing list: https://launchpad.net/~dhis2-devs Post to : dhis2-devs@lists.launchpad.net Unsubscribe : https://launchpad.net/~dhis2-devs More help : https://help.launchpad.net/ListHelp