Skip to content

Commit

Permalink
Merge pull request opensrp#83 from SoftmedTanzania/fix/register-counter
Browse files Browse the repository at this point in the history
Fix/register counter
  • Loading branch information
cozej4 authored Jun 15, 2022
2 parents 588f2bb + 0d204db commit 8ad55c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION_NAME=1.5.31.17-NACP-SNAPSHOT
VERSION_NAME=1.5.31.18-NACP-SNAPSHOT
VERSION_CODE=5
GROUP=org.smartregister
POM_SETTING_DESCRIPTION=OpenSRP Client Chw Core Library
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ protected int getCount(String tableName) {
" inner join ec_family_member m on p.base_entity_id = m.base_entity_id COLLATE NOCASE " +
" inner join ec_family f on f.base_entity_id = m.relational_id COLLATE NOCASE " +
" where m.date_removed is null and " +
" p.test_results IS NULL and p.refer_to_chw = 'Yes' and p.how_to_notify_the_contact_client <> 'na' ";
" p.test_results IS NULL and p.refer_to_chw = 'Yes' COLLATE NOCASE and p.how_to_notify_the_contact_client <> 'na' ";
return NavigationDao.getQueryCount(sqlIndex);

case org.smartregister.chw.hiv.util.Constants.Tables.HIV_INDEX_HF:
Expand All @@ -413,7 +413,7 @@ protected int getCount(String tableName) {
" inner join ec_family f on f.base_entity_id = m.relational_id COLLATE NOCASE " +
" where m.date_removed is null and " +
" p.ctc_number IS NULL AND " +
" (p.test_results IS NULL OR p.test_results <> 'Negative') AND " +
" (p.test_results IS NULL OR p.test_results <> 'Negative' COLLATE NOCASE) AND " +
" p.how_to_notify_the_contact_client <> 'na' ";
return NavigationDao.getQueryCount(sqlIndexHf);
case org.smartregister.chw.pmtct.util.Constants.TABLES.PMTCT_REGISTRATION:
Expand Down

0 comments on commit 8ad55c7

Please sign in to comment.