Skip to content

Commit

Permalink
finish feature/OPENIMIS-75_fetch_status_from_mutation_logs
Browse files Browse the repository at this point in the history
Check mutation's status in mutation logs
  • Loading branch information
dragos-dobre authored Sep 23, 2024
2 parents 65622cc + 32f6ddf commit 9f078b5
Show file tree
Hide file tree
Showing 45 changed files with 2,812 additions and 1,459 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ android {
}
local {
applicationId "org.openimis.imispolicies.local"
buildConfigField "String", "API_BASE_URL", '"https://gambiatest.bluesquare.org/"'
buildConfigField "String", "API_BASE_URL", '"http://10.0.2.2:35787/"'
buildConfigField "boolean", "SHOW_PAYMENT_MENU", 'true'
resValue "string", "app_name_policies", "Policies Local"
dimension = 'std'
Expand Down
5 changes: 5 additions & 0 deletions app/src/localeBepha/res/values-fr-rCM/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@
<string name="MissingReceiptNo">Veuillez entrer le numéro de reçu.</string>
<string name="MissingProductCode">Veuillez entrer le code du Paquet de bénéfice</string>
<string name="MissingAmount">Veuillez entrer le montant</string>
<string name="MissingPayType">Veuillez sélectionner un type de paiement</string>
<string name="InvalidReceiptNo">Ce numéro de reçu est déjà utilisé.</string>
<string name="NoFiles">Aucun fichier trouvé.</string>
<string name="Of">De</string>
Expand Down Expand Up @@ -477,4 +478,8 @@
<string name="CurrentResourceLanguage">Current resource language: %1$s</string>
<string name="SystemLanguageNotSupported">Current system language is not supported. The app will use the default language.</string>
<string name="SupportedLanguages">Supported languages:\n%1$s</string>
<string name="pay_type_select_one">Selectionnez un mode de paiement</string>
<string name="pay_type_cash">Cash</string>
<string name="pay_type_mobile_phone">Téléphone portable</string>
<string name="pay_type_bank_transfer">Virement banquaire</string>
</resources>
5 changes: 5 additions & 0 deletions app/src/localeMv/res/values-fr/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@
<string name="MissingReceiptNo">Veuillez entrer le numéro de reçu.</string>
<string name="MissingProductCode">Veuillez entrer le code du Paquet de bénéfice</string>
<string name="MissingAmount">Veuillez entrer le montant</string>
<string name="MissingPayType">Veuillez sélectionner un type de paiement</string>
<string name="InvalidReceiptNo">Ce numéro de reçu est déjà utilisé.</string>
<string name="NoFiles">Aucun fichier trouvé.</string>
<string name="Of">De</string>
Expand Down Expand Up @@ -477,4 +478,8 @@
<string name="CurrentResourceLanguage">Current resource language: %1$s</string>
<string name="SystemLanguageNotSupported">Current system language is not supported. The app will use the default language.</string>
<string name="SupportedLanguages">Supported languages:\n%1$s</string>
<string name="pay_type_select_one">Selectionnez un mode de paiement</string>
<string name="pay_type_cash">Cash</string>
<string name="pay_type_mobile_phone">Téléphone portable</string>
<string name="pay_type_bank_transfer">Virement banquaire</string>
</resources>
5 changes: 5 additions & 0 deletions app/src/localeTchad/res/values-fr/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@
<string name="MissingReceiptNo">Veuillez entrer le numéro de reçu.</string>
<string name="MissingProductCode">Veuillez entrer le code du produit</string>
<string name="MissingAmount">Veuillez entrer le montant</string>
<string name="MissingPayType">Veuillez sélectionner un type de paiement</string>
<string name="InvalidReceiptNo">Ce numéro de reçu est déjà utilisé.</string>
<string name="NoFiles">Aucun fichier trouvé.</string>
<string name="Of">De</string>
Expand Down Expand Up @@ -478,4 +479,8 @@
<string name="SystemLanguageNotSupported">Current system language is not supported. The app will use the default language.</string>
<string name="SupportedLanguages">Supported languages:\n%1$s</string>
<string name="DataDownloadedFailed">Data download failed</string>
<string name="pay_type_select_one">Selectionnez un mode de paiement</string>
<string name="pay_type_cash">Cash</string>
<string name="pay_type_mobile_phone">Téléphone portable</string>
<string name="pay_type_bank_transfer">Virement banquaire</string>
</resources>
2 changes: 1 addition & 1 deletion app/src/main/assets/JS/exact.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ $(document).ready(function(){
var $mandatory = $('[required]');
var passed = true;
$mandatory.each(function(){
if($(this).val() == "" || $(this).val() == 0 || $(this).val() == null){//|| $(this).val() == 0
if ($(this).val() == "" || $(this).val() == 0 || $(this).val() == null) {//|| $(this).val() == 0
// if(sessionStorage.getItem("FamilyData") == null){
// passed = false;
// }
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
query CheckMutation($clientMutationId: String) {
mutationLogs(clientMutationId:$clientMutationId, orderBy:["-requestDateTime"]) {
edges {
node {
status
error
}
}
}
}

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
mutation MobileEnrolment($input: MobileEnrollmentMutationInput!) {
mobileEnrollment(input: $input) {
clientMutationId
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
mutation RenewPolicy($input: RenewPolicyMutationInput!) {
renewPolicy(input: $input) {
mutation RenewPolicy($input: MobilePolicyRenewalAndPremiumInput!) {
mobilePolicyRenewalAndPremium(input: $input) {
clientMutationId
internalId
}
Expand Down

This file was deleted.

This file was deleted.

2,352 changes: 1,504 additions & 848 deletions app/src/main/graphql/org.openimis.imispolicies/schema.graphqls

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion app/src/main/java/org/openimis/imispolicies/Acquire.java
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,8 @@ public void afterTextChanged(Editable text) {

btnScan.setOnClickListener(v -> {
try {
Intent intent = new Intent("com.google.zxing.client.android.SCAN");
Intent intent = new Intent(this, com.google.zxing.client.android.CaptureActivity.class);
intent.setAction("com.google.zxing.client.android.SCAN");
intent.putExtra("SCAN_MODE", "QR_CODE_MODE");
startActivityForResult(intent, SCAN_QR_REQUEST_CODE);
} catch (ActivityNotFoundException e) {
Expand Down
Loading

0 comments on commit 9f078b5

Please sign in to comment.