forked from Third-Culture-Software/bhima
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add odk_central_integration tables
Adds odk central integration tables for the eventual link to ODK Central. Currently adds them under Stock Settings, but we can move them easily enough later. Related to Third-Culture-Software#6235.
- Loading branch information
Showing
12 changed files
with
413 additions
and
188 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"ODK" : { | ||
"LOAD_FOSA_DATA" : "Load data of FOSA", | ||
"TOTAL_FOUND" : "Total records found", | ||
"NO_RECORD_FOUND" : "No record found", | ||
"IMPORTED_SUCCESSFULLY" : "Records successfully imported", | ||
"ODK_CENTRAL_URL" : "ODK Central Server URL", | ||
"ODK_ADMIN_USER" : "ODK Central Admin Email", | ||
"ODK_ADMIN_PASSWORD" : "ODK Central Admin Password" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"ODK" : { | ||
"LOAD_FOSA_DATA" : "Chargement des données des FOSA", | ||
"TOTAL_FOUND" : "Total des enregistrements trouvés", | ||
"NO_RECORD_FOUND" : "Aucun enregistrement trouvé", | ||
"IMPORTED_SUCCESSFULLY" : "Données importées avec succès", | ||
"ODK_CENTRAL_URL" : "URL du serveur ODK Central", | ||
"ODK_ADMIN_USER" : "Adressse mail de l'administrateur", | ||
"ODK_ADMIN_PASSWORD" : "Mot de passe de l'administrateur" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
379 changes: 228 additions & 151 deletions
379
client/src/modules/stock/settings/stock-settings.html
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/* migration file for next release */ | ||
|
||
ALTER TABLE `enterprise_setting` ADD COLUMN `enable_odk_central_integration` BOOLEAN NOT NULL DEFAULT FALSE; | ||
|
||
|
||
DROP TABLE IF EXISTS `odk_central_integration`; | ||
CREATE TABLE `odk_central_integration` ( | ||
`enterprise_id` SMALLINT(5) UNSIGNED NOT NULL, | ||
`odk_central_url` TEXT NOT NULL, | ||
`odk_admin_user` TEXT NOT NULL, | ||
`odk_admin_password` TEXT NOT NULL, | ||
`odk_project_id` INTEGER UNSIGNED NULL, | ||
KEY `enterprise_id` (`enterprise_id`), | ||
CONSTRAINT `odk_central__enterprise` FOREIGN KEY (`enterprise_id`) REFERENCES `enterprise` (`id`) | ||
) ENGINE=InnoDB DEFAULT CHARACTER SET = utf8mb4 DEFAULT COLLATE = utf8mb4_unicode_ci; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters