Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions claimManagement/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ repositories {
android {
compileSdkVersion 32
buildToolsVersion '33.0.0'
namespace 'org.openimis.imisclaims'

defaultConfig {
applicationId "org.openimis.imisclaims"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
import androidx.appcompat.widget.Toolbar;
import android.widget.TextView;

import org.json.JSONObject;

import java.io.File;

public class Report extends ImisActivity {
Expand Down Expand Up @@ -38,6 +40,8 @@ protected void onCreate(Bundle savedInstanceState) {
File pendingFolder = new File(PendingFolder);
File trashFolder = new File(TrashFolder);

JSONObject counts = sqlHandler.getClaimCounts();

int countAccepted = 0;
int countRejected = 0;
if (acceptedClaims.listFiles().length > 0) {
Expand All @@ -54,7 +58,7 @@ protected void onCreate(Bundle savedInstanceState) {
}
}
} else {
countAccepted = 0;
countAccepted = counts.optInt(SQLHandler.CLAIM_UPLOAD_STATUS_ACCEPTED, 0);;
}

if (rejectedClaims.listFiles().length > 0) {
Expand All @@ -71,7 +75,7 @@ protected void onCreate(Bundle savedInstanceState) {
}
}
} else {
countRejected = 0;
countRejected = counts.optInt(SQLHandler.CLAIM_UPLOAD_STATUS_REJECTED, 0);;
}
//Pending & Trash
int count_pending = 0;
Expand All @@ -90,7 +94,7 @@ protected void onCreate(Bundle savedInstanceState) {
}
}
} else {
count_pending = 0;
count_pending = counts.optInt(SQLHandler.CLAIM_UPLOAD_STATUS_ENTERED, 0);;
}

if (trashFolder.listFiles().length > 0) {
Expand Down
2 changes: 2 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
android.enableJetifier=true
android.useAndroidX=true
android.defaults.buildfeatures.buildconfig=true
android.nonFinalResIds=false
Loading