From 483b3f36dd42ee667059f5e1dca5ad581769f7dc Mon Sep 17 00:00:00 2001 From: Jonathan Niles Date: Tue, 9 Jan 2018 10:54:57 +0100 Subject: [PATCH] fix(accounts): unify account types This commit removes all the `is_` account prefixes to replace them with account_type checks instead. The only one actually used was `is_title` which has been replaced with an account type check. Closes #2436. --- bower.json | 2 +- .../modules/accounts/AccountStoreService.js | 8 +- client/src/modules/accounts/accounts.js | 1 + .../finance/accounts/categories.js | 6 +- server/controllers/finance/accounts/index.js | 11 +- .../finance/reports/accounts/chart.handlebars | 4 +- .../finance/reports/accounts/index.js | 11 +- server/models/schema.sql | 4 - server/models/updates/account_type.sql | 20 - server/models/updates/service_uuid.sql | 2 - sh/build-database.sh | 3 - test/data.sql | 462 +++++++++--------- test/integration/accounts.js | 9 +- 13 files changed, 254 insertions(+), 289 deletions(-) delete mode 100644 server/models/updates/account_type.sql delete mode 100644 server/models/updates/service_uuid.sql diff --git a/bower.json b/bower.json index 594fa6ce74..bd5b82fa7b 100644 --- a/bower.json +++ b/bower.json @@ -21,7 +21,7 @@ "angular-messages": "1.6.6", "angular-bootstrap": "2.5.0", "angular-ui-router": "1.0.0-rc.1", - "angular-ui-grid": "4.0.4", + "angular-ui-grid": "4.1.3", "angular-translate": "2.17.0", "angular-translate-loader-static-files": "2.17.0", "angular-translate-loader-url": "2.17.0", diff --git a/client/src/modules/accounts/AccountStoreService.js b/client/src/modules/accounts/AccountStoreService.js index d365e02f0d..274c3880db 100644 --- a/client/src/modules/accounts/AccountStoreService.js +++ b/client/src/modules/accounts/AccountStoreService.js @@ -4,9 +4,11 @@ * - store to use */ angular.module('bhima.services') -.service('AccountStoreService', AccountStoreService); + .service('AccountStoreService', AccountStoreService); -AccountStoreService.$inject = ['$q', 'AccountService', 'AccountTypeService', 'Store']; +AccountStoreService.$inject = [ + '$q', 'AccountService', 'AccountTypeService', 'Store', +]; // Temporary service until caching API services is well designed function AccountStoreService($q, Accounts, AccountTypes, Store) { @@ -40,6 +42,7 @@ function AccountStoreService($q, Accounts, AccountTypes, Store) { return accounts; }); } + return $q.resolve(accounts); } @@ -49,6 +52,7 @@ function AccountStoreService($q, Accounts, AccountTypes, Store) { return accountTypes; }); } + return $q.resolve(accountTypes); } } diff --git a/client/src/modules/accounts/accounts.js b/client/src/modules/accounts/accounts.js index fc708d7f2a..e3e74a3882 100644 --- a/client/src/modules/accounts/accounts.js +++ b/client/src/modules/accounts/accounts.js @@ -141,6 +141,7 @@ function AccountsController($rootScope, $timeout, AccountGrid, Notify, Constants function bindGridData() { vm.gridOptions.data = vm.Accounts.data; + console.log('vm.Accounts.data', vm.gridOptions.data); } function toggleLoadingIndicator() { diff --git a/server/controllers/finance/accounts/categories.js b/server/controllers/finance/accounts/categories.js index bf2aadbc74..d86550e85d 100644 --- a/server/controllers/finance/accounts/categories.js +++ b/server/controllers/finance/accounts/categories.js @@ -44,7 +44,7 @@ function detail(req, res, next) { */ function list(req, res, next) { const sql = ` - SELECT id, category, translation_key + SELECT id, category, translation_key FROM account_category; `; @@ -96,7 +96,7 @@ function create(req, res, next) { */ function update(req, res, next) { const data = req.body; - const id = req.params.id; + const { id } = req.params; const sql = 'UPDATE account_category SET ? WHERE id = ?'; delete data.id; @@ -120,7 +120,7 @@ function update(req, res, next) { * DELETE /accounts/categories/:id */ function remove(req, res, next) { - const id = req.params.id; + const { id } = req.params; const sql = 'DELETE FROM account_category WHERE id = ?'; lookupAccountCategory(id) diff --git a/server/controllers/finance/accounts/index.js b/server/controllers/finance/accounts/index.js index 908e4c0a4d..90e30d4067 100644 --- a/server/controllers/finance/accounts/index.js +++ b/server/controllers/finance/accounts/index.js @@ -132,9 +132,9 @@ function list(req, res, next) { if (req.query.detailed === '1') { sql = ` SELECT a.id, a.enterprise_id, a.locked, a.cc_id, a.pc_id, a.created, - a.classe, a.is_asset, a.reference_id, a.is_brut_link, a.is_charge, - a.number, a.label, a.parent, a.type_id, a.is_title, at.type, - at.translation_key, cc.text AS cost_center_text, pc.text AS profit_center_text + a.classe, a.reference_id, a.number, a.label, a.parent, + a.type_id, at.type, at.translation_key, cc.text AS cost_center_text, + pc.text AS profit_center_text FROM account AS a JOIN account_type AS at ON a.type_id = at.id LEFT JOIN cost_center AS cc ON a.cc_id = cc.id LEFT JOIN profit_center AS pc ON a.pc_id = pc.id @@ -304,8 +304,7 @@ function getOpeningBalanceForPeriod(req, res, next) { function lookupAccount(id) { let sql = ` SELECT a.id, a.enterprise_id, a.locked, a.cc_id, a.pc_id, a.created, - a.classe, a.is_asset, a.reference_id, a.is_brut_link, a.is_charge, - a.number, a.label, a.parent, a.type_id, a.is_title, at.type, + a.classe, a.reference_id, a.number, a.label, a.parent, a.type_id, at.type, at.translation_key, cc.text AS cost_center_text, pc.text AS profit_center_text FROM account AS a JOIN account_type AS at ON a.type_id = at.id LEFT JOIN cost_center AS cc ON a.cc_id = cc.id @@ -358,7 +357,7 @@ function getChildren(accounts, parentId) { const children = accounts.filter(account => account.parent === parentId); - children.forEach((account) => { + children.forEach(account => { account.children = getChildren(accounts, account.id); }); diff --git a/server/controllers/finance/reports/accounts/chart.handlebars b/server/controllers/finance/reports/accounts/chart.handlebars index 708a5cc2e4..811082cd5a 100644 --- a/server/controllers/finance/reports/accounts/chart.handlebars +++ b/server/controllers/finance/reports/accounts/chart.handlebars @@ -23,7 +23,7 @@ {{#each accounts}} - {{#if this.is_title}} + {{#equal this.type_id ../TITLE_ID}} {{ this.number }} @@ -49,7 +49,7 @@ {{translate this.translation_key }} - {{/if}} + {{/equal}} {{/each}} diff --git a/server/controllers/finance/reports/accounts/index.js b/server/controllers/finance/reports/accounts/index.js index 4fb391150b..456e34e032 100644 --- a/server/controllers/finance/reports/accounts/index.js +++ b/server/controllers/finance/reports/accounts/index.js @@ -16,9 +16,10 @@ function chart(req, res, next) { const params = req.query; // @TODO Define server constants library - const TITLE_ID = 4; + const TITLE_ID = 6; params.user = req.session.user; + params.TITLE_ID = TITLE_ID; const options = _.extend(req.query, { csvKey : 'accounts', @@ -36,13 +37,7 @@ function chart(req, res, next) { Accounts.lookupAccount() .then(Accounts.processAccountDepth) - .then(accounts => { - accounts.forEach(account => { - account.is_title_account = account.type_id === TITLE_ID; - }); - - return report.render({ accounts }); - }) + .then(accounts => report.render({ accounts })) .then(result => { if (result.headers.type === 'xlsx') { res.xls(result.headers.filename, result.report.accounts); diff --git a/server/models/schema.sql b/server/models/schema.sql index 2c8f98b1ea..9e2857ef91 100644 --- a/server/models/schema.sql +++ b/server/models/schema.sql @@ -18,11 +18,7 @@ CREATE TABLE `account` ( `pc_id` SMALLINT(6) DEFAULT NULL, `created` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, `classe` INT(11) DEFAULT NULL, - `is_asset` TINYINT(1) DEFAULT NULL, `reference_id` TINYINT(3) UNSIGNED DEFAULT NULL, - `is_brut_link` TINYINT(1) DEFAULT NULL, - `is_title` BOOLEAN DEFAULT FALSE, - `is_charge` TINYINT(1) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `account_1` (`number`), KEY `type_id` (`type_id`), diff --git a/server/models/updates/account_type.sql b/server/models/updates/account_type.sql deleted file mode 100644 index 4402454fc7..0000000000 --- a/server/models/updates/account_type.sql +++ /dev/null @@ -1,20 +0,0 @@ --- update account categories from account type - --- title -UPDATE account SET type_id = 6 WHERE type_id = 4; - --- incomes -UPDATE account SET type_id = 4 WHERE type_id = 1; - --- expense -UPDATE account SET type_id = 5 WHERE type_id = 2; - --- equity -UPDATE account SET type_id = 3 WHERE LEFT(number, 1) IN (1) AND type_id = 3; - --- assets -UPDATE account SET type_id = 1 WHERE LEFT(number, 1) IN (2, 3, 4, 5) AND type_id = 3; - --- update exploitation account -update account set type_id = 5 where LEFT(number, 1) = 6 AND type_id <> 6; -update account set type_id = 4 where LEFT(number, 1) = 7 AND type_id <> 6; diff --git a/server/models/updates/service_uuid.sql b/server/models/updates/service_uuid.sql deleted file mode 100644 index ad0975effa..0000000000 --- a/server/models/updates/service_uuid.sql +++ /dev/null @@ -1,2 +0,0 @@ --- UPDATE SERVICES WHICH DOESN'T HAVE UUID -UPDATE `service` SET `uuid` = HUID(UUID()) WHERE `uuid` IS NULL; diff --git a/sh/build-database.sh b/sh/build-database.sh index b0d8e1e919..0191d52f4e 100755 --- a/sh/build-database.sh +++ b/sh/build-database.sh @@ -39,9 +39,6 @@ mysql -u $DB_USER -p$DB_PASS $DB_NAME < server/models/bhima.sql &> /dev/null echo "[build] test data" mysql -u $DB_USER -p$DB_PASS $DB_NAME < test/data.sql &> /dev/null -echo "[update] service uuid identifiers" -mysql -u $DB_USER -p$DB_PASS $DB_NAME < server/models/updates/service_uuid.sql &> /dev/null - echo "[build] compute account class" mysql -u $DB_USER -p$DB_PASS $DB_NAME -e "Call ComputeAccountClass();" &> /dev/null diff --git a/test/data.sql b/test/data.sql index 540adda3b3..42844db850 100644 --- a/test/data.sql +++ b/test/data.sql @@ -14,237 +14,237 @@ INSERT INTO `project` VALUES (3, 'Test Project C', 'TPC', 1, 2, 0); -- Accounts -INSERT INTO `account` (`id`, `type_id`, `enterprise_id`, `number`, `label`, `parent`, `locked`, `cc_id`, `pc_id`, `created`, `reference_id`, `is_title`) VALUES - (1, 6, 1, 1, 'CLASSE 1: COMPTES DE RESSOURCES DURABLES', 0, 0, NULL, NULL, '2016-10-22 14:37:09', NULL, 0), - (2, 6, 1, 2, 'CLASSE 2: COMPTES D\'ACTIFS IMMOBILISES', 0, 0, NULL, NULL, '2016-10-22 14:39:01', NULL, 0), - (3, 6, 1, 3, 'CLASSE 3: COMPTES DE STOCKS', 0, 0, NULL, NULL, '2016-10-22 14:39:36', NULL, 0), - (4, 6, 1, 4, 'CLASSE 4: COMPTES DE TIERS', 0, 0, NULL, NULL, '2016-10-22 14:40:00', NULL, 0), - (5, 6, 1, 5, 'CLASSE 5: COMPTES DE TRESORERIE', 0, 0, NULL, NULL, '2016-10-22 14:40:26', NULL, 0), - (6, 6, 1, 6, 'CLASSE 6: COMPTES DES CHARGES DES ACTIVITES ORDINAIRES', 0, 0, NULL, NULL, '2016-10-22 14:40:45', NULL, 0), - (7, 6, 1, 7, 'CLASSE 7: COMPTES DES PRODUITS DES ACTIVITES ORDINAIRES', 0, 0, NULL, NULL, '2016-10-22 14:41:12', NULL, 0), - (8, 6, 1, 8, 'CLASSE 8: COMPTES DES AUTRES CHARGES ET DES AUTRES PRODUITS', 0, 0, NULL, NULL, '2016-10-22 14:41:34', NULL, 0), - (9, 6, 1, 10, 'CAPITAL', 1, 0, NULL, NULL, '2016-10-22 16:27:40', NULL, 0), - (10, 6, 1, 11, 'RESERVES', 1, 0, NULL, NULL, '2016-10-22 16:28:02', NULL, 0), - (11, 6, 1, 12, 'REPORT A NOUVEAU', 1, 0, NULL, NULL, '2016-10-22 16:28:24', NULL, 0), - (12, 6, 1, 13, 'RESULTAT NET DE L\'EXERCICE', 1, 0, NULL, NULL, '2016-10-22 16:28:45', NULL, 0), - (13, 6, 1, 14, 'SUBVENTIONS D\'INVESTISSEMENT', 1, 0, NULL, NULL, '2016-10-22 16:29:16', NULL, 0), - (14, 6, 1, 16, 'EMPRUNTS ET DETTES ASSIMILEES', 1, 0, NULL, NULL, '2016-10-22 16:29:41', NULL, 0), - (15, 6, 1, 17, 'DETTES DE CREDIT-BAIL ET CONTRATS ASSIMILES', 1, 0, NULL, NULL, '2016-10-22 16:30:08', NULL, 0), - (16, 6, 1, 18, 'DETTES LIEES A DES PARTICIPATIONS ET COMPTES DE LIAISON DES ETABLISSEMENTS ET SOCIETES EN PARTICIPATION', 1, 0, NULL, NULL, '2016-10-22 16:30:32', NULL, 0), - (17, 6, 1, 19, 'PROVISIONS FINANCIERES POUR RISQUES ET CHARGES', 1, 0, NULL, NULL, '2016-10-22 16:30:49', NULL, 0), - (18, 6, 1, 20, 'CHARGES IMMOBILISEES', 2, 0, NULL, NULL, '2016-10-22 16:31:19', NULL, 0), - (19, 6, 1, 21, 'IMMOBILISATIONS INCORPORELLES', 2, 0, NULL, NULL, '2016-10-22 16:32:58', NULL, 0), - (20, 6, 1, 22, 'TERRAINS', 2, 0, NULL, NULL, '2016-10-22 16:33:24', NULL, 0), - (21, 6, 1, 23, 'BATIMENTS, INSTALLATIONS TECHNIQUES ET AGENCEMENTS', 2, 0, NULL, NULL, '2016-10-22 16:33:44', NULL, 0), - (22, 6, 1, 24, 'MATERIELS', 2, 0, NULL, NULL, '2016-10-22 16:34:05', NULL, 0), - (23, 6, 1, 27, 'AUTRES IMMOBILISATIONS FINANCIERES', 2, 0, NULL, NULL, '2016-10-22 16:34:41', NULL, 0), - (24, 6, 1, 28, 'AMORTISSEMENTS', 2, 0, NULL, NULL, '2016-10-22 16:34:59', NULL, 0), - (25, 6, 1, 29, 'PROVISIONS POUR DEPRECIATIONS', 2, 0, NULL, NULL, '2016-10-22 16:35:16', NULL, 0), - (26, 6, 1, 31, 'MARCHANDISES', 3, 0, NULL, NULL, '2016-10-22 16:35:40', NULL, 0), - (27, 6, 1, 32, 'MATIERES PREMIERES ET FOURNITURES LIEES', 3, 0, NULL, NULL, '2016-10-22 16:36:00', NULL, 0), - (28, 6, 1, 33, 'AUTRES APPROVISIONNEMENTS', 3, 0, NULL, NULL, '2016-10-22 16:36:19', NULL, 0), - (29, 6, 1, 36, 'PRODUITS FINIS', 3, 0, NULL, NULL, '2016-10-22 16:36:39', NULL, 0), - (30, 6, 1, 38, 'STOCKS EN COURS DE ROUTE, EN CONSIGNATION OU EN DÉPÔT', 3, 0, NULL, NULL, '2016-10-22 16:37:19', NULL, 0), - (31, 6, 1, 39, 'DÉPRÉCIATIONS DES STOCKS', 3, 0, NULL, NULL, '2016-10-22 16:37:39', NULL, 0), - (32, 6, 1, 40, 'FOURNISSEURS ET COMPTE RATTACHES', 4, 0, NULL, NULL, '2016-10-22 16:38:02', NULL, 0), - (33, 6, 1, 41, 'CLIENTS ET COMPTE RATTACHES', 4, 0, NULL, NULL, '2016-10-22 16:38:22', NULL, 0), - (34, 6, 1, 42, 'PERSONNEL', 4, 0, NULL, NULL, '2016-10-22 16:38:43', NULL, 0), - (35, 6, 1, 43, 'ORGANISMES SOCIAUX', 4, 0, NULL, NULL, '2016-10-22 16:38:59', NULL, 0), - (36, 6, 1, 44, 'ETAT ET COLLECTIVITES PUBLIQUES', 4, 0, NULL, NULL, '2016-10-22 16:39:20', NULL, 0), - (37, 6, 1, 47, 'DEBITEURS ET CREDITEURS DIVERS', 4, 0, NULL, NULL, '2016-10-22 16:39:45', NULL, 0), - (38, 6, 1, 48, 'CREANCES ET DETTES HORS ACTIVITE ORDINAIRE', 4, 0, NULL, NULL, '2016-10-22 16:39:59', NULL, 0), - (39, 6, 1, 49, 'DEPRECIATION ET RISQUES PROVISIONNES (Tiers)', 4, 0, NULL, NULL, '2016-10-22 16:40:23', NULL, 0), - (40, 6, 1, 51, 'VALEURS A ENCAISSER', 5, 0, NULL, NULL, '2016-10-22 16:40:48', NULL, 0), - (41, 6, 1, 52, 'BANQUES', 5, 0, NULL, NULL, '2016-10-22 16:41:05', NULL, 0), - (42, 6, 1, 53, 'ETABLISSEMENTS FINANCIERS ET ASSIMILES', 5, 0, NULL, NULL, '2016-10-22 16:41:19', NULL, 0), - (43, 6, 1, 56, 'BANQUES, CREDIT DE TRESORERIE ET D\'ESCOMPTE', 5, 0, NULL, NULL, '2016-10-22 16:41:40', NULL, 0), - (44, 6, 1, 57, 'CAISSE', 5, 0, NULL, NULL, '2016-10-22 16:42:13', NULL, 0), - (45, 6, 1, 58, 'REGIES D\'AVANCES, ACCREDITIFS ET VIREMENTS INTERNE', 5, 0, NULL, NULL, '2016-10-22 16:42:34', NULL, 0), - (46, 6, 1, 59, 'DEPRECIATIONS ET RISQUES PROVISIONNES', 5, 0, NULL, NULL, '2016-10-22 16:43:12', NULL, 0), - (47, 6, 1, 60, 'ACHATS ET VARIATIONS DE STOCKS', 6, 0, NULL, NULL, '2016-10-22 16:43:34', NULL, 0), - (48, 6, 1, 61, 'TRANSPORTS', 6, 0, NULL, NULL, '2016-10-22 16:43:57', NULL, 0), - (49, 6, 1, 62, 'SERVICES EXTÉRIEURS A', 6, 0, NULL, NULL, '2016-10-22 16:44:10', NULL, 0), - (50, 6, 1, 63, 'SERVICES EXTÉRIEURS B', 6, 0, NULL, NULL, '2016-10-22 16:44:30', NULL, 0), - (51, 6, 1, 64, 'IMPÔTS ET TAXES', 6, 0, NULL, NULL, '2016-10-22 16:44:49', NULL, 0), - (52, 6, 1, 65, 'AUTRES CHARGES', 6, 0, NULL, NULL, '2016-10-22 16:45:02', NULL, 0), - (53, 6, 1, 66, 'CHARGES DE PERSONNEL', 6, 0, NULL, NULL, '2016-10-22 16:45:18', NULL, 0), - (54, 6, 1, 67, 'FRAIS FINANCIERS ET CHARGES ASSIMILÉES', 6, 0, NULL, NULL, '2016-10-22 16:45:36', NULL, 0), - (55, 6, 1, 68, 'DOTATIONS AUX AMORTISSEMENTS', 6, 0, NULL, NULL, '2016-10-22 16:45:52', NULL, 0), - (56, 6, 1, 69, 'DOTATIONS AUX PROVISIONS', 6, 0, NULL, NULL, '2016-10-22 16:46:07', NULL, 0), - (57, 6, 1, 70, 'VENTES', 7, 0, NULL, NULL, '2016-10-22 16:47:00', NULL, 0), - (58, 6, 1, 71, '71 SUBVENTIONS D\'EXPLOITATION', 7, 0, NULL, NULL, '2016-10-22 16:47:15', NULL, 0), - (59, 6, 1, 72, 'PRODUCTION IMMOBILISÉE', 7, 0, NULL, NULL, '2016-10-22 16:47:29', NULL, 0), - (60, 6, 1, 73, 'VARIATIONS DES STOCKS DE BIENS ET DE SERVICES PRODUITS', 7, 0, NULL, NULL, '2016-10-22 16:47:48', NULL, 0), - (61, 6, 1, 75, 'AUTRES PRODUITS', 7, 0, NULL, NULL, '2016-10-22 16:48:15', NULL, 0), - (62, 6, 1, 77, 'REVENUS FINANCIERS ET PRODUITS ASSIMILÉS', 7, 0, NULL, NULL, '2016-10-22 16:48:31', NULL, 0), - (63, 6, 1, 78, 'TRANSFERTS DE CHARGES', 7, 0, NULL, NULL, '2016-10-22 16:48:49', NULL, 0), - (64, 6, 1, 79, 'REPRISES DE PROVISIONS', 7, 0, NULL, NULL, '2016-10-22 16:49:07', NULL, 0), - (65, 6, 1, 81, 'VALEURS COMPTABLE DES CESSIONS D\'IMMOBILISATIONS', 8, 0, NULL, NULL, '2016-10-22 16:49:36', NULL, 0), - (66, 6, 1, 82, 'PRODUITS DES CESSIONS D\'IMMOBILISATIONS', 8, 0, NULL, NULL, '2016-10-22 16:49:50', NULL, 0), - (67, 6, 1, 83, 'CHARGES HORS ACTIVITES ORDINAIRES', 8, 0, NULL, NULL, '2016-10-22 16:50:03', NULL, 0), - (68, 6, 1, 84, 'PRODUITS HORS ACTIVITES ORDINAIRES', 8, 0, NULL, NULL, '2016-10-22 16:50:22', NULL, 0), - (69, 6, 1, 85, 'DOTATIONS HORS ACTIVITES ORDINAIRES', 8, 0, NULL, NULL, '2016-10-22 16:50:43', NULL, 0), - (70, 6, 1, 86, 'REPRISES HORS ACTIVITES ORDINAIRES', 8, 0, NULL, NULL, '2016-10-22 16:50:57', NULL, 0), - (71, 6, 1, 88, 'SUBVENTIONS D\'EQUILIBRE', 8, 0, NULL, NULL, '2016-10-22 16:51:15', NULL, 0), - (72, 6, 1, 89, 'IMPOTS SUR LE RESULTAT', 8, 0, NULL, NULL, '2016-10-22 16:51:30', NULL, 0), - (73, 6, 1, 101, 'Capital Social', 9, 0, NULL, NULL, '2016-10-22 16:56:20', NULL, 0), - (74, 6, 1, 105, 'Primes liées aux capitaux propres', 9, 0, NULL, NULL, '2016-10-22 16:56:46', NULL, 0), - (75, 6, 1, 106, 'Ecart de réévaluation', 9, 0, NULL, NULL, '2016-10-22 16:57:30', NULL, 0), - (76, 6, 1, 109, 'Actionnaire, Capital souscrit, non appelé', 9, 0, NULL, NULL, '2016-10-22 16:58:03', NULL, 0), - (77, 6, 1, 1013, 'Capital souscrit, appelé, versé, non amorti', 73, 0, NULL, NULL, '2016-10-22 16:59:19', NULL, 0), - (81, 3, 1, 10133000, 'Compte - Capital souscrit, appelé, versé, non amorti', 77, 0, NULL, NULL, '2016-10-22 17:25:29', NULL, 0), - (82, 6, 1, 1052, 'Primes d\'apport', 74, 0, NULL, NULL, '2016-10-22 20:55:08', NULL, 0), - (83, 3, 1, 10521010, 'Compte Primes d\'apport', 82, 0, NULL, NULL, '2016-10-22 20:56:08', NULL, 0), - (84, 6, 1, 1053, 'Primes de fusion', 74, 0, NULL, NULL, '2016-10-22 20:57:27', NULL, 0), - (85, 3, 1, 10531010, 'Compte Primes de fusion', 84, 0, NULL, NULL, '2016-10-22 20:58:15', NULL, 0), - (86, 6, 1, 1054, 'Primes de conversion', 74, 0, NULL, NULL, '2016-10-22 20:59:49', NULL, 0), - (87, 3, 1, 10541010, 'Compte Primes de conversion', 86, 0, NULL, NULL, '2016-10-22 21:00:28', NULL, 0), - (88, 6, 1, 1061, 'Ecart de réévaluation *', 75, 0, NULL, NULL, '2016-10-22 21:02:53', NULL, 0), - (89, 3, 1, 10610000, 'Ecart de réévaluation légal', 88, 0, NULL, NULL, '2016-10-22 21:03:47', NULL, 0), - (90, 6, 1, 1091, 'Actionnaire, Capital souscrit, non appelé *', 76, 0, NULL, NULL, '2016-10-22 21:06:36', NULL, 0), - (91, 3, 1, 10911010, 'Compte Actionnaire, Capital souscrit, non appelé', 90, 0, NULL, NULL, '2016-10-22 21:07:10', NULL, 0), - (92, 6, 1, 111, 'Reserve légale', 10, 0, NULL, NULL, '2016-10-22 23:39:20', NULL, 0), - (93, 6, 1, 1111, 'Reserve légale *', 92, 0, NULL, NULL, '2016-10-22 23:40:17', NULL, 0), - (94, 3, 1, 11110000, 'Compte Reserve légale', 93, 0, NULL, NULL, '2016-10-22 23:41:23', NULL, 0), - (95, 6, 1, 112, 'Reserve statutaires ou contractuelles', 10, 0, NULL, NULL, '2016-10-22 21:37:09', NULL, 0), - (96, 6, 1, 118, 'Autres reserves', 10, 0, NULL, NULL, '2016-10-22 21:37:09', NULL, 0), - (97, 6, 1, 1121, 'Reserve statutaires ou contractuelles *', 95, 0, NULL, NULL, '2016-10-22 21:37:09', NULL, 0), - (98, 6, 1, 1181, 'Autres reserves *', 96, 0, NULL, NULL, '2016-10-22 21:37:09', NULL, 0), - (99, 6, 1, 1188, 'Reserves diverses', 96, 0, NULL, NULL, '2016-10-22 21:37:09', NULL, 0), - (100, 6, 1, 121, 'Report à nouveau créditeur', 11, 0, NULL, NULL, '2016-10-22 21:37:09', NULL, 0), - (101, 6, 1, 129, 'Report à nouveau debiteur', 11, 0, NULL, NULL, '2016-10-22 21:37:09', NULL, 0), - (102, 6, 1, 1211, 'Report à nouveau créditeur *', 100, 0, NULL, NULL, '2016-10-22 21:37:09', NULL, 0), - (103, 6, 1, 1291, 'Perte nette à reporter', 101, 0, NULL, NULL, '2016-10-22 21:37:09', NULL, 0), - (104, 6, 1, 1292, 'Perte-Amortissements réputés différés', 101, 0, NULL, NULL, '2016-10-22 21:37:09', NULL, 0), - (105, 6, 1, 130, 'Résultat en instance d\'affectation', 12, 0, NULL, NULL, '2016-10-22 21:37:09', NULL, 0), - (106, 6, 1, 131, 'Résusltat net : Bénéfice', 12, 0, NULL, NULL, '2016-10-22 21:37:09', NULL, 0), - (107, 6, 1, 139, 'Résultat net: perte', 12, 0, NULL, NULL, '2016-10-22 21:37:09', NULL, 0), - (108, 6, 1, 1301, 'Résultat en instance d\'affectation: Benefice', 105, 0, NULL, NULL, '2016-10-22 21:37:09', NULL, 0), - (109, 6, 1, 1309, 'Résultat en instance d\'affectation: Perte', 105, 0, NULL, NULL, '2016-10-22 21:37:09', NULL, 0), - (111, 6, 1, 1311, 'Résusltat net : Bénéfice *', 106, 0, NULL, NULL, '2016-10-22 21:37:09', NULL, 0), - (112, 6, 1, 1391, 'Résultat net: perte *', 107, 0, NULL, NULL, '2016-10-22 21:37:09', NULL, 0), - (113, 6, 1, 141, 'Subventions d\'équipement', 13, 0, NULL, NULL, '2016-10-22 21:37:09', NULL, 0), - (114, 6, 1, 1411, 'Etat', 113, 0, NULL, NULL, '2016-10-22 21:37:09', NULL, 0), - (115, 6, 1, 1417, 'Entreprises et organismes privés', 113, 0, NULL, NULL, '2016-10-22 21:37:09', NULL, 0), - (116, 6, 1, 1418, 'Autres', 113, 0, NULL, NULL, '2016-10-22 21:37:09', NULL, 0), - (117, 6, 1, 165, 'Depots et Cautionnement recus *', 14, 0, NULL, NULL, '2016-10-22 21:37:09', NULL, 0), - (118, 6, 1, 168, 'Autres emprunts et dettes', 14, 0, NULL, NULL, '2016-10-22 21:37:09', NULL, 0), - (119, 6, 1, 1651, 'Depots', 117, 0, NULL, NULL, '2016-10-22 21:37:09', NULL, 0), - (120, 6, 1, 1652, 'Cautionnement', 117, 0, NULL, NULL, '2016-10-22 21:37:09', NULL, 0), - (121, 6, 1, 1688, 'Autres emprunts et dettes *', 118, 0, NULL, NULL, '2016-10-22 21:37:09', NULL, 0), - (122, 6, 1, 172, 'Emprunts équivalents de crédit-bail immobilier', 15, 0, NULL, NULL, '2016-10-22 21:37:09', NULL, 0), - (123, 6, 1, 186, 'Comptes de liaison charges', 16, 0, NULL, NULL, '2016-10-22 21:37:09', NULL, 0), - (124, 6, 1, 187, 'Comptes de liaison produits', 16, 0, NULL, NULL, '2016-10-22 21:37:09', NULL, 0), - (125, 6, 1, 1861, 'Comptes de liaison charges *', 123, 0, NULL, NULL, '2016-10-22 21:37:09', NULL, 0), - (126, 6, 1, 1871, 'Comptes de liaison produits *', 124, 0, NULL, NULL, '2016-10-22 21:37:09', NULL, 0), - (127, 6, 1, 191, 'Provisions pour litiges', 17, 0, NULL, NULL, '2016-10-22 21:37:09', NULL, 0), - (128, 6, 1, 194, 'Provisions pour pertes de change', 17, 0, NULL, NULL, '2016-10-22 21:37:09', NULL, 0), - (129, 6, 1, 195, 'Provisions pour impôts', 17, 0, NULL, NULL, '2016-10-22 21:37:09', NULL, 0), - (130, 6, 1, 196, 'Provisions pour pensions et obligations similaires', 17, 0, NULL, NULL, '2016-10-22 21:37:09', NULL, 0), - (131, 6, 1, 197, 'Provisions pour charges à repartir sur plusieurs exercices', 17, 0, NULL, NULL, '2016-10-22 21:37:09', NULL, 0), - (132, 6, 1, 198, 'Autres provisions financières pour risques et charges', 17, 0, NULL, NULL, '2016-10-22 21:37:09', NULL, 0), - (133, 6, 1, 1911, 'Provisions pour litiges *', 127, 0, NULL, NULL, '2016-10-22 21:37:09', NULL, 0), - (134, 6, 1, 1941, 'Provisions pour pertes de change *', 128, 0, NULL, NULL, '2016-10-22 21:37:09', NULL, 0), - (135, 6, 1, 1951, 'Provisions pour impôts *', 129, 0, NULL, NULL, '2016-10-22 21:37:09', NULL, 0), - (136, 6, 1, 1961, 'Provisions pour pensions et obligations similaires *', 130, 0, NULL, NULL, '2016-10-22 21:37:09', NULL, 0), - (137, 6, 1, 1971, 'Provisions pour charges à repartir sur plusieurs exercices *', 131, 0, NULL, NULL, '2016-10-22 21:37:09', NULL, 0), - (138, 6, 1, 1981, 'Autres provisions financières pour risques et charges *', 132, 0, NULL, NULL, '2016-10-22 21:37:09', NULL, 0), - (150, 1, 1, 22321000, 'Batiment Hopital', 20, 0, NULL, NULL, '2016-10-23 16:05:34', NULL, 0), - (151, 1, 1, 23131000, 'Batiment Hopital *', 21, 0, NULL, NULL, '2016-10-23 16:05:34', NULL, 0), - (152, 1, 1, 24480040, 'Mobiliers Hopital', 21, 0, NULL, NULL, '2016-10-23 16:05:34', NULL, 0), - (156, 1, 1, 28310010, 'Amortissement Batiments', 24, 0, NULL, NULL, '2016-10-23 16:05:34', NULL, 0), - (160, 6, 1, 311, 'MARCHANDISES A', 26, 0, NULL, NULL, '2016-10-23 16:05:34', NULL, 0), - (161, 6, 1, 3111, 'Medicaments', 160, 0, NULL, NULL, '2016-10-23 16:05:34', NULL, 0), - (162, 1, 1, 31110010, 'Medicaments en comprimes *', 161, 0, NULL, NULL, '2016-10-23 16:05:34', NULL, 0), - (163, 1, 1, 31110011, 'Medicaments en Sirop *', 161, 0, NULL, NULL, '2016-10-23 16:05:34', NULL, 0), - (170, 6, 1, 4011, 'Fournisseurs', 32, 0, NULL, NULL, '2016-10-23 16:05:34', NULL, 0), - (171, 1, 1, 41111000, 'SNEL', 173, 0, NULL, NULL, '2016-10-23 16:05:34', NULL, 0), - (172, 1, 1, 41111001, 'REGIDESO', 173, 0, NULL, NULL, '2016-10-23 16:05:34', NULL, 0), - (173, 6, 1, 4111, 'Client (Groupe Debiteur)', 32, 0, NULL, NULL, '2016-10-23 16:05:34', NULL, 0), - (174, 1, 1, 41111010, 'CHURCH', 173, 0, NULL, NULL, '2016-10-23 16:05:34', NULL, 0), - (175, 1, 1, 41111011, 'NGO', 173, 0, NULL, NULL, '2016-10-23 16:05:34', NULL, 0), - (176, 1, 1, 41111012, 'CASH PAYMENT CLIENT', 173, 0, NULL, NULL, '2016-10-23 16:05:34', NULL, 0), - (177, 1, 1, 41111013, 'GUEST HOUSE', 173, 0, NULL, NULL, '2016-10-23 16:05:34', NULL, 0), - (178, 6, 1, 422, 'REMUNERATION DUE', 34, 0, NULL, NULL, '2016-10-23 16:05:34', NULL, 0), - (179, 1, 1, 42210010, 'Salaires à payer', 178, 0, NULL, NULL, '2016-10-23 16:05:34', NULL, 0), - (180, 6, 1, 521, 'Banques locales', 41, 0, NULL, NULL, '2016-10-23 16:05:34', NULL, 0), - (181, 6, 1, 5211, 'Banques en Franc congolais', 180, 0, NULL, NULL, '2016-10-23 16:05:34', NULL, 0), - (182, 1, 1, 52111010, 'BCDC CDF', 181, 0, NULL, NULL, '2016-10-23 16:05:34', NULL, 0), - (183, 6, 1, 5212, 'Banques locales en Devises', 180, 0, NULL, NULL, '2016-10-23 16:05:34', NULL, 0), - (184, 1, 1, 52121010, 'BCDC USD', 183, 0, NULL, NULL, '2016-10-23 16:05:34', NULL, 0), - (185, 6, 1, 571, 'Caisse HOPITAL', 44, 0, NULL, NULL, '2016-10-23 16:05:34', NULL, 0), - (186, 6, 1, 5711, 'Caisse en franc congolais', 185, 0, NULL, NULL, '2016-10-23 16:05:34', NULL, 0), - (187, 1, 1, 57110010, 'Caisse Principale CDF', 186, 0, NULL, NULL, '2016-10-23 16:05:34', NULL, 0), - (188, 1, 1, 57110011, 'Caisse Auxiliaire CDF', 187, 0, NULL, NULL, '2016-10-23 16:05:34', NULL, 0), - (189, 6, 1, 5712, 'Caisse en devises', 185, 0, NULL, NULL, '2016-10-23 16:05:34', NULL, 0), - (190, 1, 1, 57120010, 'Caisse Principale USD', 189, 0, NULL, NULL, '2016-10-23 16:05:34', NULL, 0), - (191, 1, 1, 57120011, 'Caisse Auxiliaire USD', 189, 0, NULL, NULL, '2016-10-23 16:05:34', NULL, 0), - (192, 6, 1, 585, 'Virement des fonds', 45, 0, NULL, NULL, '2016-10-23 16:05:34', NULL, 0), - (193, 6, 1, 5851, 'Virement des fonds *', 192, 0, NULL, NULL, '2016-10-23 16:05:34', NULL, 0), - (194, 1, 1, 58511010, 'Virement des fonds Caisse Auxiliaire - Caisse Principale USD', 193, 0, NULL, NULL, '2016-10-23 16:05:34', NULL, 0), - (195, 1, 1, 58511011, 'Virement des fonds Caisse Principale - Caisse Auxiliaire USD', 193, 0, NULL, NULL, '2016-10-23 16:05:34', NULL, 0), - (196, 1, 1, 58511012, 'Virement des fonds Banque-Caisse Principale USD', 193, 0, NULL, NULL, '2016-10-23 16:05:34', NULL, 0), - (197, 1, 1, 58511013, 'Virement des fonds Caisse Auxiliaire - Caisse Principale CDF', 193, 0, NULL, NULL, '2016-10-23 16:05:34', NULL, 0), - (198, 1, 1, 58511014, 'Virement des fonds Caisse Principale - Caisse Auxiliaire CDF', 193, 0, NULL, NULL, '2016-10-23 16:05:34', NULL, 0), - (199, 1, 1, 58511015, 'Virement des fonds Banque-Caisse Principale CDF', 193, 0, NULL, NULL, '2016-10-23 16:05:34', NULL, 0), - (200, 6, 1, 601, 'ACHATS DE MARCHANDISES', 47, 0, NULL, NULL, '2016-10-23 16:05:34', NULL, 0), - (201, 5, 1, 60111010, 'Achat Médicaments en comprimés', 200, 0, NULL, NULL, '2016-10-23 16:05:34', NULL, 0), - (202, 5, 1, 60111011, 'Achat Médicaments en Sirop', 200, 0, NULL, NULL, '2016-10-23 16:05:34', NULL, 0), - (203, 5, 1, 60111012, 'Achat Médicaments en crème', 200, 0, NULL, NULL, '2016-10-23 16:05:34', NULL, 0), - (204, 5, 1, 60111013, 'Achat Médicaments en Poudre et Capsul', 200, 0, NULL, NULL, '2016-10-23 16:05:34', NULL, 0), - (205, 5, 1, 60111014, 'Achat Injectables', 200, 0, NULL, NULL, '2016-10-23 16:05:34', NULL, 0), - (206, 5, 1, 60111015, 'Achat Produit de Perfusion', 200, 0, NULL, NULL, '2016-10-23 16:05:34', NULL, 0), - (207, 5, 1, 60111016, 'Achat Produits Ophtamologiques', 200, 0, NULL, NULL, '2016-10-23 16:05:34', NULL, 0), - (208, 6, 1, 603, 'VARIATIONS DES STOCKS DE BIENS ACHETÉS', 47, 0, NULL, NULL, '2016-10-23 16:05:34', NULL, 0), - (209, 5, 1, 60310010, 'Médicaments en comprimés', 208, 0, NULL, NULL, '2016-10-23 16:05:34', NULL, 0), - (210, 5, 1, 60310011, 'Médicaments en Sirop', 208, 0, NULL, NULL, '2016-10-23 16:05:34', NULL, 0), - (211, 5, 1, 60310012, 'Achat Médicaments en crème', 208, 0, NULL, NULL, '2016-10-23 16:05:34', NULL, 0), - (212, 5, 1, 60310013, 'Achat Médicaments en Poudre et Capsul', 208, 0, NULL, NULL, '2016-10-23 16:05:34', NULL, 0), - (213, 5, 1, 60310014, 'Achat Injectables', 208, 0, NULL, NULL, '2016-10-23 16:05:34', NULL, 0), - (214, 5, 1, 60310015, 'Achat Produit de Perfusion', 208, 0, NULL, NULL, '2016-10-23 16:05:34', NULL, 0), - (215, 5, 1, 60310016, 'Achat Produits Ophtamologiques', 208, 0, NULL, NULL, '2016-10-23 16:05:34', NULL, 0), - (216, 6, 1, 605, 'AUTRES ACHATS', 47, 0, NULL, NULL, '2016-10-23 16:05:34', NULL, 0), - (217, 5, 1, 60511010, 'Eau', 216, 0, NULL, NULL, '2016-10-23 16:05:34', NULL, 0), - (218, 5, 1, 60521010, 'Electricité', 216, 0, NULL, NULL, '2016-10-23 16:05:34', NULL, 0), - (219, 6, 1, 661, 'RÉMUNÉRATIONS DIRECTES VERSÉES AU PERSONNEL NATIONAL', 53, 0, NULL, NULL, '2016-10-23 16:05:34', NULL, 0), - (220, 5, 1, 66110011, 'Remunération Personnel', 219, 0, NULL, NULL, '2016-10-23 16:05:34', NULL, 0), - (221, 6, 1, 676, 'PERTES DE CHANGE', 54, 0, NULL, NULL, '2016-10-23 16:05:34', NULL, 0), - (222, 5, 1, 67611010, 'Différences de change', 221, 0, NULL, NULL, '2016-10-23 16:05:34', NULL, 0), - (240, 6, 1, 701, 'VENTES DE MARCHANDISES', 57, 0, NULL, NULL, '2016-10-23 16:05:34', NULL, 0), - (241, 6, 1, 7011, 'Vente des medicaments dans la Region Ohada', 240, 0, NULL, NULL, '2016-10-23 16:05:34', NULL, 0), - (242, 4, 1, 70111010, 'Vente Medicaments en comprimes', 241, 0, NULL, NULL, '2016-10-23 16:05:34', NULL, 0), - (243, 4, 1, 70111011, 'Vente Medicaments en Sirop', 241, 0, NULL, NULL, '2016-10-23 16:05:34', NULL, 0), - (244, 6, 1, 706, 'SERVICES VENDUS', 57, 0, NULL, NULL, '2016-10-23 16:05:34', NULL, 0), - (245, 6, 1, 7061, 'Services vendus dans la Region ohada', 244, 0, NULL, NULL, '2016-10-23 16:05:34', NULL, 0), - (246, 4, 1, 70611010, 'Consultations', 245, 0, NULL, NULL, '2016-10-23 16:05:34', NULL, 0), - (247, 4, 1, 70611011, 'Optique', 245, 0, NULL, NULL, '2016-10-23 16:05:34', NULL, 0), - (248, 4, 1, 70611012, 'Hospitalisation', 245, 0, NULL, NULL, '2016-10-23 16:05:34', NULL, 0), - (249, 4, 1, 70611017, 'Administration', 245, 0, NULL, 1, '2016-10-23 16:05:34', NULL, 0), - (250, 4, 1, 70611036, 'URGENCES', 245, 0, NULL, NULL, '2016-10-23 16:05:34', NULL, 0), - (251, 6, 1, 754, 'PRODUITS DES CESSIONS D IMMOBILISATIONS', 61, 0, NULL, NULL, '2016-10-23 16:05:34', NULL, 0), - (252, 4, 1, 75411010, 'Produits des Cessions d Immobilisations *', 251, 0, NULL, NULL, '2016-10-23 16:05:34', NULL, 0), - (253, 6, 1, 758, 'PRODUITS DIVERS', 61, 0, NULL, NULL, '2016-10-23 16:05:34', NULL, 0), - (254, 6, 1, 7581, 'Jetons de presence et autres remunerations d\'administrateurs', 253, 0, NULL, NULL, '2016-10-23 16:05:34', NULL, 0), - (255, 4, 1, 75811010, 'Jeton de presence', 254, 0, NULL, NULL, '2016-10-23 16:05:34', NULL, 0), - (256, 4, 1, 75811011, 'Autres remunerations d administrateurs', 254, 0, NULL, 1, '2016-10-23 16:05:34', NULL, 0), - (257, 6, 1, 7582, 'Indemnites d\'assurances recues', 253, 0, NULL, NULL, '2016-10-23 16:05:34', NULL, 0), - (258, 4, 1, 75821010, 'Indemnites d\'assurances recues', 257, 0, NULL, NULL, '2016-10-23 16:05:34', NULL, 0), - (259, 6, 1, 7588, 'Autres Produits divers', 253, 0, NULL, NULL, '2016-10-23 16:05:34', NULL, 0), - (260, 4, 1, 75881010, 'Autres revenus', 259, 0, NULL, 1, '2016-10-23 16:05:34', NULL, 0), - (261, 6, 1, 771, 'INTERETS DE PRETS', 62, 0, NULL, NULL, '2016-10-23 16:05:34', NULL, 0), - (262, 4, 1, 77111010, 'Interets de Prets *', 261, 0, NULL, 1, '2016-10-23 16:05:34', NULL, 0), - (264, 6, 1, 773, 'ESCOMPTES OBTENUS', 62, 0, NULL, NULL, '2016-10-23 16:05:34', NULL, 0), - (265, 4, 1, 77311010, 'Escomptes obtenus *', 264, 0, NULL, NULL, '2016-10-23 16:05:34', NULL, 0), - (266, 6, 1, 776, 'GAINS DE CHANGE', 62, 0, NULL, NULL, '2016-10-23 16:05:34', NULL, 0), - (267, 4, 1, 77611010, 'Gain de change *', 266, 0, NULL, 1, '2016-10-23 16:05:34', NULL, 0), - (280, 5, 1, 81111010, 'Compte Immobilisations incorporelles', 65, 0, NULL, NULL, '2016-10-23 16:05:34', NULL, 0), - (281, 5, 1, 81211010, 'Compte Immobilisations corporelles', 65, 0, NULL, NULL, '2016-10-23 16:05:34', NULL, 0), - (282, 5, 1, 81611010, 'Compte Immobilisations financières', 65, 0, NULL, NULL, '2016-10-23 16:05:34', NULL, 0), - (283, 3, 1, 13110001, 'Résusltat de l\'exercise', 111, 0, NULL, NULL, '2017-06-09 12:29:04', NULL, 0), - (284, 1, 1, 40111000, 'SNEL SUPPLIER', 170, 0, NULL, NULL, '2016-10-23 16:05:34', NULL, 0), - (285, 1, 1, 40111001, 'REGIDESO SUPPLIER', 170, 0, NULL, NULL, '2016-10-23 16:05:34', NULL, 0), - (300, 5, 1, 40111002, 'SUPPLIER\'S ACCOUNT 1', 170, 0, NULL, NULL, '2017-11-06 15:07:21', NULL, 0), - (301, 5, 1, 40111003, 'SUPPLIER\'S ACCOUNT 2', 170, 0, NULL, NULL, '2017-11-06 15:07:21', NULL, 0); +INSERT INTO `account` (`id`, `type_id`, `enterprise_id`, `number`, `label`, `parent`, `locked`, `cc_id`, `pc_id`, `created`, `reference_id`) VALUES + (1, 6, 1, 1, 'CLASSE 1: COMPTES DE RESSOURCES DURABLES', 0, 0, NULL, NULL, '2016-10-22 14:37:09', NULL), + (2, 6, 1, 2, 'CLASSE 2: COMPTES D\'ACTIFS IMMOBILISES', 0, 0, NULL, NULL, '2016-10-22 14:39:01', NULL), + (3, 6, 1, 3, 'CLASSE 3: COMPTES DE STOCKS', 0, 0, NULL, NULL, '2016-10-22 14:39:36', NULL), + (4, 6, 1, 4, 'CLASSE 4: COMPTES DE TIERS', 0, 0, NULL, NULL, '2016-10-22 14:40:00', NULL), + (5, 6, 1, 5, 'CLASSE 5: COMPTES DE TRESORERIE', 0, 0, NULL, NULL, '2016-10-22 14:40:26', NULL), + (6, 6, 1, 6, 'CLASSE 6: COMPTES DES CHARGES DES ACTIVITES ORDINAIRES', 0, 0, NULL, NULL, '2016-10-22 14:40:45', NULL), + (7, 6, 1, 7, 'CLASSE 7: COMPTES DES PRODUITS DES ACTIVITES ORDINAIRES', 0, 0, NULL, NULL, '2016-10-22 14:41:12', NULL), + (8, 6, 1, 8, 'CLASSE 8: COMPTES DES AUTRES CHARGES ET DES AUTRES PRODUITS', 0, 0, NULL, NULL, '2016-10-22 14:41:34', NULL), + (9, 6, 1, 10, 'CAPITAL', 1, 0, NULL, NULL, '2016-10-22 16:27:40', NULL), + (10, 6, 1, 11, 'RESERVES', 1, 0, NULL, NULL, '2016-10-22 16:28:02', NULL), + (11, 6, 1, 12, 'REPORT A NOUVEAU', 1, 0, NULL, NULL, '2016-10-22 16:28:24', NULL), + (12, 6, 1, 13, 'RESULTAT NET DE L\'EXERCICE', 1, 0, NULL, NULL, '2016-10-22 16:28:45', NULL), + (13, 6, 1, 14, 'SUBVENTIONS D\'INVESTISSEMENT', 1, 0, NULL, NULL, '2016-10-22 16:29:16', NULL), + (14, 6, 1, 16, 'EMPRUNTS ET DETTES ASSIMILEES', 1, 0, NULL, NULL, '2016-10-22 16:29:41', NULL), + (15, 6, 1, 17, 'DETTES DE CREDIT-BAIL ET CONTRATS ASSIMILES', 1, 0, NULL, NULL, '2016-10-22 16:30:08', NULL), + (16, 6, 1, 18, 'DETTES LIEES A DES PARTICIPATIONS ET COMPTES DE LIAISON DES ETABLISSEMENTS ET SOCIETES EN PARTICIPATION', 1, 0, NULL, NULL, '2016-10-22 16:30:32', NULL), + (17, 6, 1, 19, 'PROVISIONS FINANCIERES POUR RISQUES ET CHARGES', 1, 0, NULL, NULL, '2016-10-22 16:30:49', NULL), + (18, 6, 1, 20, 'CHARGES IMMOBILISEES', 2, 0, NULL, NULL, '2016-10-22 16:31:19', NULL), + (19, 6, 1, 21, 'IMMOBILISATIONS INCORPORELLES', 2, 0, NULL, NULL, '2016-10-22 16:32:58', NULL), + (20, 6, 1, 22, 'TERRAINS', 2, 0, NULL, NULL, '2016-10-22 16:33:24', NULL), + (21, 6, 1, 23, 'BATIMENTS, INSTALLATIONS TECHNIQUES ET AGENCEMENTS', 2, 0, NULL, NULL, '2016-10-22 16:33:44', NULL), + (22, 6, 1, 24, 'MATERIELS', 2, 0, NULL, NULL, '2016-10-22 16:34:05', NULL), + (23, 6, 1, 27, 'AUTRES IMMOBILISATIONS FINANCIERES', 2, 0, NULL, NULL, '2016-10-22 16:34:41', NULL), + (24, 6, 1, 28, 'AMORTISSEMENTS', 2, 0, NULL, NULL, '2016-10-22 16:34:59', NULL), + (25, 6, 1, 29, 'PROVISIONS POUR DEPRECIATIONS', 2, 0, NULL, NULL, '2016-10-22 16:35:16', NULL), + (26, 6, 1, 31, 'MARCHANDISES', 3, 0, NULL, NULL, '2016-10-22 16:35:40', NULL), + (27, 6, 1, 32, 'MATIERES PREMIERES ET FOURNITURES LIEES', 3, 0, NULL, NULL, '2016-10-22 16:36:00', NULL), + (28, 6, 1, 33, 'AUTRES APPROVISIONNEMENTS', 3, 0, NULL, NULL, '2016-10-22 16:36:19', NULL), + (29, 6, 1, 36, 'PRODUITS FINIS', 3, 0, NULL, NULL, '2016-10-22 16:36:39', NULL), + (30, 6, 1, 38, 'STOCKS EN COURS DE ROUTE, EN CONSIGNATION OU EN DÉPÔT', 3, 0, NULL, NULL, '2016-10-22 16:37:19', NULL), + (31, 6, 1, 39, 'DÉPRÉCIATIONS DES STOCKS', 3, 0, NULL, NULL, '2016-10-22 16:37:39', NULL), + (32, 6, 1, 40, 'FOURNISSEURS ET COMPTE RATTACHES', 4, 0, NULL, NULL, '2016-10-22 16:38:02', NULL), + (33, 6, 1, 41, 'CLIENTS ET COMPTE RATTACHES', 4, 0, NULL, NULL, '2016-10-22 16:38:22', NULL), + (34, 6, 1, 42, 'PERSONNEL', 4, 0, NULL, NULL, '2016-10-22 16:38:43', NULL), + (35, 6, 1, 43, 'ORGANISMES SOCIAUX', 4, 0, NULL, NULL, '2016-10-22 16:38:59', NULL), + (36, 6, 1, 44, 'ETAT ET COLLECTIVITES PUBLIQUES', 4, 0, NULL, NULL, '2016-10-22 16:39:20', NULL), + (37, 6, 1, 47, 'DEBITEURS ET CREDITEURS DIVERS', 4, 0, NULL, NULL, '2016-10-22 16:39:45', NULL), + (38, 6, 1, 48, 'CREANCES ET DETTES HORS ACTIVITE ORDINAIRE', 4, 0, NULL, NULL, '2016-10-22 16:39:59', NULL), + (39, 6, 1, 49, 'DEPRECIATION ET RISQUES PROVISIONNES (Tiers)', 4, 0, NULL, NULL, '2016-10-22 16:40:23', NULL), + (40, 6, 1, 51, 'VALEURS A ENCAISSER', 5, 0, NULL, NULL, '2016-10-22 16:40:48', NULL), + (41, 6, 1, 52, 'BANQUES', 5, 0, NULL, NULL, '2016-10-22 16:41:05', NULL), + (42, 6, 1, 53, 'ETABLISSEMENTS FINANCIERS ET ASSIMILES', 5, 0, NULL, NULL, '2016-10-22 16:41:19', NULL), + (43, 6, 1, 56, 'BANQUES, CREDIT DE TRESORERIE ET D\'ESCOMPTE', 5, 0, NULL, NULL, '2016-10-22 16:41:40', NULL), + (44, 6, 1, 57, 'CAISSE', 5, 0, NULL, NULL, '2016-10-22 16:42:13', NULL), + (45, 6, 1, 58, 'REGIES D\'AVANCES, ACCREDITIFS ET VIREMENTS INTERNE', 5, 0, NULL, NULL, '2016-10-22 16:42:34', NULL), + (46, 6, 1, 59, 'DEPRECIATIONS ET RISQUES PROVISIONNES', 5, 0, NULL, NULL, '2016-10-22 16:43:12', NULL), + (47, 6, 1, 60, 'ACHATS ET VARIATIONS DE STOCKS', 6, 0, NULL, NULL, '2016-10-22 16:43:34', NULL), + (48, 6, 1, 61, 'TRANSPORTS', 6, 0, NULL, NULL, '2016-10-22 16:43:57', NULL), + (49, 6, 1, 62, 'SERVICES EXTÉRIEURS A', 6, 0, NULL, NULL, '2016-10-22 16:44:10', NULL), + (50, 6, 1, 63, 'SERVICES EXTÉRIEURS B', 6, 0, NULL, NULL, '2016-10-22 16:44:30', NULL), + (51, 6, 1, 64, 'IMPÔTS ET TAXES', 6, 0, NULL, NULL, '2016-10-22 16:44:49', NULL), + (52, 6, 1, 65, 'AUTRES CHARGES', 6, 0, NULL, NULL, '2016-10-22 16:45:02', NULL), + (53, 6, 1, 66, 'CHARGES DE PERSONNEL', 6, 0, NULL, NULL, '2016-10-22 16:45:18', NULL), + (54, 6, 1, 67, 'FRAIS FINANCIERS ET CHARGES ASSIMILÉES', 6, 0, NULL, NULL, '2016-10-22 16:45:36', NULL), + (55, 6, 1, 68, 'DOTATIONS AUX AMORTISSEMENTS', 6, 0, NULL, NULL, '2016-10-22 16:45:52', NULL), + (56, 6, 1, 69, 'DOTATIONS AUX PROVISIONS', 6, 0, NULL, NULL, '2016-10-22 16:46:07', NULL), + (57, 6, 1, 70, 'VENTES', 7, 0, NULL, NULL, '2016-10-22 16:47:00', NULL), + (58, 6, 1, 71, '71 SUBVENTIONS D\'EXPLOITATION', 7, 0, NULL, NULL, '2016-10-22 16:47:15', NULL), + (59, 6, 1, 72, 'PRODUCTION IMMOBILISÉE', 7, 0, NULL, NULL, '2016-10-22 16:47:29', NULL), + (60, 6, 1, 73, 'VARIATIONS DES STOCKS DE BIENS ET DE SERVICES PRODUITS', 7, 0, NULL, NULL, '2016-10-22 16:47:48', NULL), + (61, 6, 1, 75, 'AUTRES PRODUITS', 7, 0, NULL, NULL, '2016-10-22 16:48:15', NULL), + (62, 6, 1, 77, 'REVENUS FINANCIERS ET PRODUITS ASSIMILÉS', 7, 0, NULL, NULL, '2016-10-22 16:48:31', NULL), + (63, 6, 1, 78, 'TRANSFERTS DE CHARGES', 7, 0, NULL, NULL, '2016-10-22 16:48:49', NULL), + (64, 6, 1, 79, 'REPRISES DE PROVISIONS', 7, 0, NULL, NULL, '2016-10-22 16:49:07', NULL), + (65, 6, 1, 81, 'VALEURS COMPTABLE DES CESSIONS D\'IMMOBILISATIONS', 8, 0, NULL, NULL, '2016-10-22 16:49:36', NULL), + (66, 6, 1, 82, 'PRODUITS DES CESSIONS D\'IMMOBILISATIONS', 8, 0, NULL, NULL, '2016-10-22 16:49:50', NULL), + (67, 6, 1, 83, 'CHARGES HORS ACTIVITES ORDINAIRES', 8, 0, NULL, NULL, '2016-10-22 16:50:03', NULL), + (68, 6, 1, 84, 'PRODUITS HORS ACTIVITES ORDINAIRES', 8, 0, NULL, NULL, '2016-10-22 16:50:22', NULL), + (69, 6, 1, 85, 'DOTATIONS HORS ACTIVITES ORDINAIRES', 8, 0, NULL, NULL, '2016-10-22 16:50:43', NULL), + (70, 6, 1, 86, 'REPRISES HORS ACTIVITES ORDINAIRES', 8, 0, NULL, NULL, '2016-10-22 16:50:57', NULL), + (71, 6, 1, 88, 'SUBVENTIONS D\'EQUILIBRE', 8, 0, NULL, NULL, '2016-10-22 16:51:15', NULL), + (72, 6, 1, 89, 'IMPOTS SUR LE RESULTAT', 8, 0, NULL, NULL, '2016-10-22 16:51:30', NULL), + (73, 6, 1, 101, 'Capital Social', 9, 0, NULL, NULL, '2016-10-22 16:56:20', NULL), + (74, 6, 1, 105, 'Primes liées aux capitaux propres', 9, 0, NULL, NULL, '2016-10-22 16:56:46', NULL), + (75, 6, 1, 106, 'Ecart de réévaluation', 9, 0, NULL, NULL, '2016-10-22 16:57:30', NULL), + (76, 6, 1, 109, 'Actionnaire, Capital souscrit, non appelé', 9, 0, NULL, NULL, '2016-10-22 16:58:03', NULL), + (77, 6, 1, 1013, 'Capital souscrit, appelé, versé, non amorti', 73, 0, NULL, NULL, '2016-10-22 16:59:19', NULL), + (81, 3, 1, 10133000, 'Compte - Capital souscrit, appelé, versé, non amorti', 77, 0, NULL, NULL, '2016-10-22 17:25:29', NULL), + (82, 6, 1, 1052, 'Primes d\'apport', 74, 0, NULL, NULL, '2016-10-22 20:55:08', NULL), + (83, 3, 1, 10521010, 'Compte Primes d\'apport', 82, 0, NULL, NULL, '2016-10-22 20:56:08', NULL), + (84, 6, 1, 1053, 'Primes de fusion', 74, 0, NULL, NULL, '2016-10-22 20:57:27', NULL), + (85, 3, 1, 10531010, 'Compte Primes de fusion', 84, 0, NULL, NULL, '2016-10-22 20:58:15', NULL), + (86, 6, 1, 1054, 'Primes de conversion', 74, 0, NULL, NULL, '2016-10-22 20:59:49', NULL), + (87, 3, 1, 10541010, 'Compte Primes de conversion', 86, 0, NULL, NULL, '2016-10-22 21:00:28', NULL), + (88, 6, 1, 1061, 'Ecart de réévaluation *', 75, 0, NULL, NULL, '2016-10-22 21:02:53', NULL), + (89, 3, 1, 10610000, 'Ecart de réévaluation légal', 88, 0, NULL, NULL, '2016-10-22 21:03:47', NULL), + (90, 6, 1, 1091, 'Actionnaire, Capital souscrit, non appelé *', 76, 0, NULL, NULL, '2016-10-22 21:06:36', NULL), + (91, 3, 1, 10911010, 'Compte Actionnaire, Capital souscrit, non appelé', 90, 0, NULL, NULL, '2016-10-22 21:07:10', NULL), + (92, 6, 1, 111, 'Reserve légale', 10, 0, NULL, NULL, '2016-10-22 23:39:20', NULL), + (93, 6, 1, 1111, 'Reserve légale *', 92, 0, NULL, NULL, '2016-10-22 23:40:17', NULL), + (94, 3, 1, 11110000, 'Compte Reserve légale', 93, 0, NULL, NULL, '2016-10-22 23:41:23', NULL), + (95, 6, 1, 112, 'Reserve statutaires ou contractuelles', 10, 0, NULL, NULL, '2016-10-22 21:37:09', NULL), + (96, 6, 1, 118, 'Autres reserves', 10, 0, NULL, NULL, '2016-10-22 21:37:09', NULL), + (97, 6, 1, 1121, 'Reserve statutaires ou contractuelles *', 95, 0, NULL, NULL, '2016-10-22 21:37:09', NULL), + (98, 6, 1, 1181, 'Autres reserves *', 96, 0, NULL, NULL, '2016-10-22 21:37:09', NULL), + (99, 6, 1, 1188, 'Reserves diverses', 96, 0, NULL, NULL, '2016-10-22 21:37:09', NULL), + (100, 6, 1, 121, 'Report à nouveau créditeur', 11, 0, NULL, NULL, '2016-10-22 21:37:09', NULL), + (101, 6, 1, 129, 'Report à nouveau debiteur', 11, 0, NULL, NULL, '2016-10-22 21:37:09', NULL), + (102, 6, 1, 1211, 'Report à nouveau créditeur *', 100, 0, NULL, NULL, '2016-10-22 21:37:09', NULL), + (103, 6, 1, 1291, 'Perte nette à reporter', 101, 0, NULL, NULL, '2016-10-22 21:37:09', NULL), + (104, 6, 1, 1292, 'Perte-Amortissements réputés différés', 101, 0, NULL, NULL, '2016-10-22 21:37:09', NULL), + (105, 6, 1, 130, 'Résultat en instance d\'affectation', 12, 0, NULL, NULL, '2016-10-22 21:37:09', NULL), + (106, 6, 1, 131, 'Résusltat net : Bénéfice', 12, 0, NULL, NULL, '2016-10-22 21:37:09', NULL), + (107, 6, 1, 139, 'Résultat net: perte', 12, 0, NULL, NULL, '2016-10-22 21:37:09', NULL), + (108, 6, 1, 1301, 'Résultat en instance d\'affectation: Benefice', 105, 0, NULL, NULL, '2016-10-22 21:37:09', NULL), + (109, 6, 1, 1309, 'Résultat en instance d\'affectation: Perte', 105, 0, NULL, NULL, '2016-10-22 21:37:09', NULL), + (111, 6, 1, 1311, 'Résusltat net : Bénéfice *', 106, 0, NULL, NULL, '2016-10-22 21:37:09', NULL), + (112, 6, 1, 1391, 'Résultat net: perte *', 107, 0, NULL, NULL, '2016-10-22 21:37:09', NULL), + (113, 6, 1, 141, 'Subventions d\'équipement', 13, 0, NULL, NULL, '2016-10-22 21:37:09', NULL), + (114, 6, 1, 1411, 'Etat', 113, 0, NULL, NULL, '2016-10-22 21:37:09', NULL), + (115, 6, 1, 1417, 'Entreprises et organismes privés', 113, 0, NULL, NULL, '2016-10-22 21:37:09', NULL), + (116, 6, 1, 1418, 'Autres', 113, 0, NULL, NULL, '2016-10-22 21:37:09', NULL), + (117, 6, 1, 165, 'Depots et Cautionnement recus *', 14, 0, NULL, NULL, '2016-10-22 21:37:09', NULL), + (118, 6, 1, 168, 'Autres emprunts et dettes', 14, 0, NULL, NULL, '2016-10-22 21:37:09', NULL), + (119, 6, 1, 1651, 'Depots', 117, 0, NULL, NULL, '2016-10-22 21:37:09', NULL), + (120, 6, 1, 1652, 'Cautionnement', 117, 0, NULL, NULL, '2016-10-22 21:37:09', NULL), + (121, 6, 1, 1688, 'Autres emprunts et dettes *', 118, 0, NULL, NULL, '2016-10-22 21:37:09', NULL), + (122, 6, 1, 172, 'Emprunts équivalents de crédit-bail immobilier', 15, 0, NULL, NULL, '2016-10-22 21:37:09', NULL), + (123, 6, 1, 186, 'Comptes de liaison charges', 16, 0, NULL, NULL, '2016-10-22 21:37:09', NULL), + (124, 6, 1, 187, 'Comptes de liaison produits', 16, 0, NULL, NULL, '2016-10-22 21:37:09', NULL), + (125, 6, 1, 1861, 'Comptes de liaison charges *', 123, 0, NULL, NULL, '2016-10-22 21:37:09', NULL), + (126, 6, 1, 1871, 'Comptes de liaison produits *', 124, 0, NULL, NULL, '2016-10-22 21:37:09', NULL), + (127, 6, 1, 191, 'Provisions pour litiges', 17, 0, NULL, NULL, '2016-10-22 21:37:09', NULL), + (128, 6, 1, 194, 'Provisions pour pertes de change', 17, 0, NULL, NULL, '2016-10-22 21:37:09', NULL), + (129, 6, 1, 195, 'Provisions pour impôts', 17, 0, NULL, NULL, '2016-10-22 21:37:09', NULL), + (130, 6, 1, 196, 'Provisions pour pensions et obligations similaires', 17, 0, NULL, NULL, '2016-10-22 21:37:09', NULL), + (131, 6, 1, 197, 'Provisions pour charges à repartir sur plusieurs exercices', 17, 0, NULL, NULL, '2016-10-22 21:37:09', NULL), + (132, 6, 1, 198, 'Autres provisions financières pour risques et charges', 17, 0, NULL, NULL, '2016-10-22 21:37:09', NULL), + (133, 6, 1, 1911, 'Provisions pour litiges *', 127, 0, NULL, NULL, '2016-10-22 21:37:09', NULL), + (134, 6, 1, 1941, 'Provisions pour pertes de change *', 128, 0, NULL, NULL, '2016-10-22 21:37:09', NULL), + (135, 6, 1, 1951, 'Provisions pour impôts *', 129, 0, NULL, NULL, '2016-10-22 21:37:09', NULL), + (136, 6, 1, 1961, 'Provisions pour pensions et obligations similaires *', 130, 0, NULL, NULL, '2016-10-22 21:37:09', NULL), + (137, 6, 1, 1971, 'Provisions pour charges à repartir sur plusieurs exercices *', 131, 0, NULL, NULL, '2016-10-22 21:37:09', NULL), + (138, 6, 1, 1981, 'Autres provisions financières pour risques et charges *', 132, 0, NULL, NULL, '2016-10-22 21:37:09', NULL), + (150, 1, 1, 22321000, 'Batiment Hopital', 20, 0, NULL, NULL, '2016-10-23 16:05:34', NULL), + (151, 1, 1, 23131000, 'Batiment Hopital *', 21, 0, NULL, NULL, '2016-10-23 16:05:34', NULL), + (152, 1, 1, 24480040, 'Mobiliers Hopital', 21, 0, NULL, NULL, '2016-10-23 16:05:34', NULL), + (156, 1, 1, 28310010, 'Amortissement Batiments', 24, 0, NULL, NULL, '2016-10-23 16:05:34', NULL), + (160, 6, 1, 311, 'MARCHANDISES A', 26, 0, NULL, NULL, '2016-10-23 16:05:34', NULL), + (161, 6, 1, 3111, 'Medicaments', 160, 0, NULL, NULL, '2016-10-23 16:05:34', NULL), + (162, 1, 1, 31110010, 'Medicaments en comprimes *', 161, 0, NULL, NULL, '2016-10-23 16:05:34', NULL), + (163, 1, 1, 31110011, 'Medicaments en Sirop *', 161, 0, NULL, NULL, '2016-10-23 16:05:34', NULL), + (170, 6, 1, 4011, 'Fournisseurs', 32, 0, NULL, NULL, '2016-10-23 16:05:34', NULL), + (171, 1, 1, 41111000, 'SNEL', 173, 0, NULL, NULL, '2016-10-23 16:05:34', NULL), + (172, 1, 1, 41111001, 'REGIDESO', 173, 0, NULL, NULL, '2016-10-23 16:05:34', NULL), + (173, 6, 1, 4111, 'Client (Groupe Debiteur)', 32, 0, NULL, NULL, '2016-10-23 16:05:34', NULL), + (174, 1, 1, 41111010, 'CHURCH', 173, 0, NULL, NULL, '2016-10-23 16:05:34', NULL), + (175, 1, 1, 41111011, 'NGO', 173, 0, NULL, NULL, '2016-10-23 16:05:34', NULL), + (176, 1, 1, 41111012, 'CASH PAYMENT CLIENT', 173, 0, NULL, NULL, '2016-10-23 16:05:34', NULL), + (177, 1, 1, 41111013, 'GUEST HOUSE', 173, 0, NULL, NULL, '2016-10-23 16:05:34', NULL), + (178, 6, 1, 422, 'REMUNERATION DUE', 34, 0, NULL, NULL, '2016-10-23 16:05:34', NULL), + (179, 1, 1, 42210010, 'Salaires à payer', 178, 0, NULL, NULL, '2016-10-23 16:05:34', NULL), + (180, 6, 1, 521, 'Banques locales', 41, 0, NULL, NULL, '2016-10-23 16:05:34', NULL), + (181, 6, 1, 5211, 'Banques en Franc congolais', 180, 0, NULL, NULL, '2016-10-23 16:05:34', NULL), + (182, 1, 1, 52111010, 'BCDC CDF', 181, 0, NULL, NULL, '2016-10-23 16:05:34', NULL), + (183, 6, 1, 5212, 'Banques locales en Devises', 180, 0, NULL, NULL, '2016-10-23 16:05:34', NULL), + (184, 1, 1, 52121010, 'BCDC USD', 183, 0, NULL, NULL, '2016-10-23 16:05:34', NULL), + (185, 6, 1, 571, 'Caisse HOPITAL', 44, 0, NULL, NULL, '2016-10-23 16:05:34', NULL), + (186, 6, 1, 5711, 'Caisse en franc congolais', 185, 0, NULL, NULL, '2016-10-23 16:05:34', NULL), + (187, 1, 1, 57110010, 'Caisse Principale CDF', 186, 0, NULL, NULL, '2016-10-23 16:05:34', NULL), + (188, 1, 1, 57110011, 'Caisse Auxiliaire CDF', 187, 0, NULL, NULL, '2016-10-23 16:05:34', NULL), + (189, 6, 1, 5712, 'Caisse en devises', 185, 0, NULL, NULL, '2016-10-23 16:05:34', NULL), + (190, 1, 1, 57120010, 'Caisse Principale USD', 189, 0, NULL, NULL, '2016-10-23 16:05:34', NULL), + (191, 1, 1, 57120011, 'Caisse Auxiliaire USD', 189, 0, NULL, NULL, '2016-10-23 16:05:34', NULL), + (192, 6, 1, 585, 'Virement des fonds', 45, 0, NULL, NULL, '2016-10-23 16:05:34', NULL), + (193, 6, 1, 5851, 'Virement des fonds *', 192, 0, NULL, NULL, '2016-10-23 16:05:34', NULL), + (194, 1, 1, 58511010, 'Virement des fonds Caisse Auxiliaire - Caisse Principale USD', 193, 0, NULL, NULL, '2016-10-23 16:05:34', NULL), + (195, 1, 1, 58511011, 'Virement des fonds Caisse Principale - Caisse Auxiliaire USD', 193, 0, NULL, NULL, '2016-10-23 16:05:34', NULL), + (196, 1, 1, 58511012, 'Virement des fonds Banque-Caisse Principale USD', 193, 0, NULL, NULL, '2016-10-23 16:05:34', NULL), + (197, 1, 1, 58511013, 'Virement des fonds Caisse Auxiliaire - Caisse Principale CDF', 193, 0, NULL, NULL, '2016-10-23 16:05:34', NULL), + (198, 1, 1, 58511014, 'Virement des fonds Caisse Principale - Caisse Auxiliaire CDF', 193, 0, NULL, NULL, '2016-10-23 16:05:34', NULL), + (199, 1, 1, 58511015, 'Virement des fonds Banque-Caisse Principale CDF', 193, 0, NULL, NULL, '2016-10-23 16:05:34', NULL), + (200, 6, 1, 601, 'ACHATS DE MARCHANDISES', 47, 0, NULL, NULL, '2016-10-23 16:05:34', NULL), + (201, 5, 1, 60111010, 'Achat Médicaments en comprimés', 200, 0, NULL, NULL, '2016-10-23 16:05:34', NULL), + (202, 5, 1, 60111011, 'Achat Médicaments en Sirop', 200, 0, NULL, NULL, '2016-10-23 16:05:34', NULL), + (203, 5, 1, 60111012, 'Achat Médicaments en crème', 200, 0, NULL, NULL, '2016-10-23 16:05:34', NULL), + (204, 5, 1, 60111013, 'Achat Médicaments en Poudre et Capsul', 200, 0, NULL, NULL, '2016-10-23 16:05:34', NULL), + (205, 5, 1, 60111014, 'Achat Injectables', 200, 0, NULL, NULL, '2016-10-23 16:05:34', NULL), + (206, 5, 1, 60111015, 'Achat Produit de Perfusion', 200, 0, NULL, NULL, '2016-10-23 16:05:34', NULL), + (207, 5, 1, 60111016, 'Achat Produits Ophtamologiques', 200, 0, NULL, NULL, '2016-10-23 16:05:34', NULL), + (208, 6, 1, 603, 'VARIATIONS DES STOCKS DE BIENS ACHETÉS', 47, 0, NULL, NULL, '2016-10-23 16:05:34', NULL), + (209, 5, 1, 60310010, 'Médicaments en comprimés', 208, 0, NULL, NULL, '2016-10-23 16:05:34', NULL), + (210, 5, 1, 60310011, 'Médicaments en Sirop', 208, 0, NULL, NULL, '2016-10-23 16:05:34', NULL), + (211, 5, 1, 60310012, 'Achat Médicaments en crème', 208, 0, NULL, NULL, '2016-10-23 16:05:34', NULL), + (212, 5, 1, 60310013, 'Achat Médicaments en Poudre et Capsul', 208, 0, NULL, NULL, '2016-10-23 16:05:34', NULL), + (213, 5, 1, 60310014, 'Achat Injectables', 208, 0, NULL, NULL, '2016-10-23 16:05:34', NULL), + (214, 5, 1, 60310015, 'Achat Produit de Perfusion', 208, 0, NULL, NULL, '2016-10-23 16:05:34', NULL), + (215, 5, 1, 60310016, 'Achat Produits Ophtamologiques', 208, 0, NULL, NULL, '2016-10-23 16:05:34', NULL), + (216, 6, 1, 605, 'AUTRES ACHATS', 47, 0, NULL, NULL, '2016-10-23 16:05:34', NULL), + (217, 5, 1, 60511010, 'Eau', 216, 0, NULL, NULL, '2016-10-23 16:05:34', NULL), + (218, 5, 1, 60521010, 'Electricité', 216, 0, NULL, NULL, '2016-10-23 16:05:34', NULL), + (219, 6, 1, 661, 'RÉMUNÉRATIONS DIRECTES VERSÉES AU PERSONNEL NATIONAL', 53, 0, NULL, NULL, '2016-10-23 16:05:34', NULL), + (220, 5, 1, 66110011, 'Remunération Personnel', 219, 0, NULL, NULL, '2016-10-23 16:05:34', NULL), + (221, 6, 1, 676, 'PERTES DE CHANGE', 54, 0, NULL, NULL, '2016-10-23 16:05:34', NULL), + (222, 5, 1, 67611010, 'Différences de change', 221, 0, NULL, NULL, '2016-10-23 16:05:34', NULL), + (240, 6, 1, 701, 'VENTES DE MARCHANDISES', 57, 0, NULL, NULL, '2016-10-23 16:05:34', NULL), + (241, 6, 1, 7011, 'Vente des medicaments dans la Region Ohada', 240, 0, NULL, NULL, '2016-10-23 16:05:34', NULL), + (242, 4, 1, 70111010, 'Vente Medicaments en comprimes', 241, 0, NULL, NULL, '2016-10-23 16:05:34', NULL), + (243, 4, 1, 70111011, 'Vente Medicaments en Sirop', 241, 0, NULL, NULL, '2016-10-23 16:05:34', NULL), + (244, 6, 1, 706, 'SERVICES VENDUS', 57, 0, NULL, NULL, '2016-10-23 16:05:34', NULL), + (245, 6, 1, 7061, 'Services vendus dans la Region ohada', 244, 0, NULL, NULL, '2016-10-23 16:05:34', NULL), + (246, 4, 1, 70611010, 'Consultations', 245, 0, NULL, NULL, '2016-10-23 16:05:34', NULL), + (247, 4, 1, 70611011, 'Optique', 245, 0, NULL, NULL, '2016-10-23 16:05:34', NULL), + (248, 4, 1, 70611012, 'Hospitalisation', 245, 0, NULL, NULL, '2016-10-23 16:05:34', NULL), + (249, 4, 1, 70611017, 'Administration', 245, 0, NULL, 1, '2016-10-23 16:05:34', NULL), + (250, 4, 1, 70611036, 'URGENCES', 245, 0, NULL, NULL, '2016-10-23 16:05:34', NULL), + (251, 6, 1, 754, 'PRODUITS DES CESSIONS D IMMOBILISATIONS', 61, 0, NULL, NULL, '2016-10-23 16:05:34', NULL), + (252, 4, 1, 75411010, 'Produits des Cessions d Immobilisations *', 251, 0, NULL, NULL, '2016-10-23 16:05:34', NULL), + (253, 6, 1, 758, 'PRODUITS DIVERS', 61, 0, NULL, NULL, '2016-10-23 16:05:34', NULL), + (254, 6, 1, 7581, 'Jetons de presence et autres remunerations d\'administrateurs', 253, 0, NULL, NULL, '2016-10-23 16:05:34', NULL), + (255, 4, 1, 75811010, 'Jeton de presence', 254, 0, NULL, NULL, '2016-10-23 16:05:34', NULL), + (256, 4, 1, 75811011, 'Autres remunerations d administrateurs', 254, 0, NULL, 1, '2016-10-23 16:05:34', NULL), + (257, 6, 1, 7582, 'Indemnites d\'assurances recues', 253, 0, NULL, NULL, '2016-10-23 16:05:34', NULL), + (258, 4, 1, 75821010, 'Indemnites d\'assurances recues', 257, 0, NULL, NULL, '2016-10-23 16:05:34', NULL), + (259, 6, 1, 7588, 'Autres Produits divers', 253, 0, NULL, NULL, '2016-10-23 16:05:34', NULL), + (260, 4, 1, 75881010, 'Autres revenus', 259, 0, NULL, 1, '2016-10-23 16:05:34', NULL), + (261, 6, 1, 771, 'INTERETS DE PRETS', 62, 0, NULL, NULL, '2016-10-23 16:05:34', NULL), + (262, 4, 1, 77111010, 'Interets de Prets *', 261, 0, NULL, 1, '2016-10-23 16:05:34', NULL), + (264, 6, 1, 773, 'ESCOMPTES OBTENUS', 62, 0, NULL, NULL, '2016-10-23 16:05:34', NULL), + (265, 4, 1, 77311010, 'Escomptes obtenus *', 264, 0, NULL, NULL, '2016-10-23 16:05:34', NULL), + (266, 6, 1, 776, 'GAINS DE CHANGE', 62, 0, NULL, NULL, '2016-10-23 16:05:34', NULL), + (267, 4, 1, 77611010, 'Gain de change *', 266, 0, NULL, 1, '2016-10-23 16:05:34', NULL), + (280, 5, 1, 81111010, 'Compte Immobilisations incorporelles', 65, 0, NULL, NULL, '2016-10-23 16:05:34', NULL), + (281, 5, 1, 81211010, 'Compte Immobilisations corporelles', 65, 0, NULL, NULL, '2016-10-23 16:05:34', NULL), + (282, 5, 1, 81611010, 'Compte Immobilisations financières', 65, 0, NULL, NULL, '2016-10-23 16:05:34', NULL), + (283, 3, 1, 13110001, 'Résusltat de l\'exercise', 111, 0, NULL, NULL, '2017-06-09 12:29:04', NULL), + (284, 1, 1, 40111000, 'SNEL SUPPLIER', 170, 0, NULL, NULL, '2016-10-23 16:05:34', NULL), + (285, 1, 1, 40111001, 'REGIDESO SUPPLIER', 170, 0, NULL, NULL, '2016-10-23 16:05:34', NULL), + (300, 5, 1, 40111002, 'SUPPLIER\'S ACCOUNT 1', 170, 0, NULL, NULL, '2017-11-06 15:07:21', NULL), + (301, 5, 1, 40111003, 'SUPPLIER\'S ACCOUNT 2', 170, 0, NULL, NULL, '2017-11-06 15:07:21', NULL); -- attach gain/loss accounts to the enterprise diff --git a/test/integration/accounts.js b/test/integration/accounts.js index f9fb52a3dd..2f96aad81e 100644 --- a/test/integration/accounts.js +++ b/test/integration/accounts.js @@ -18,11 +18,7 @@ describe('(/accounts) Accounts', () => { cc_id : null, pc_id : null, classe : 4, - is_asset : 0, reference_id : null, - is_brut_link : 0, - is_charge : 0, - is_title : 0, }; const FETCHABLE_ACCOUNT_ID = 117; @@ -31,9 +27,8 @@ describe('(/accounts) Accounts', () => { const NUM_ACCOUNTS = 230; const responseKeys = [ - 'id', 'enterprise_id', 'locked', 'cc_id', 'pc_id', 'created', 'classe', 'is_asset', - 'reference_id', 'is_brut_link', 'is_charge', 'number', - 'label', 'parent', 'type_id', 'is_title', 'type', 'translation_key', + 'id', 'enterprise_id', 'locked', 'cc_id', 'pc_id', 'created', 'classe', + 'reference_id', 'number', 'label', 'parent', 'type_id', 'type', 'translation_key', 'cost_center_text', 'profit_center_text', ];