Skip to content

Commit

Permalink
Hide old cost center menu items and reports
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcameron committed Dec 9, 2021
1 parent 889a2b9 commit bb7f8dc
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 6 deletions.
4 changes: 2 additions & 2 deletions client/src/i18n/en/tree.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
"COST_CENTER_MANAGEMENT": "Cost Center Management",
"COST_CENTER_MGMT" : "Cost Center Management",
"COST_CENTER_REPORT": "Cost Center Report",
"COST_CENTER_ACCOUNTS_REPORT": "Cost centers by accounts",
"COST_CENTER_INCOME_EXPENSE_REPORT": "Cost centers income and expense",
"COST_CENTER_ACCOUNTS_REPORT": "Cost Centers by Accounts",
"COST_CENTER_INCOME_EXPENSE_REPORT": "Cost Centers Income and Expense",
"COST_CENTER_ALLOCATION_KEYS" : "Allocation Keys",
"COST_CENTER_ALLOCATION_REGISTRY" : "Allocation Registry",
"CREDITOR_GROUP" : "Creditor Group Management",
Expand Down
6 changes: 3 additions & 3 deletions server/models/bhima.sql
Original file line number Diff line number Diff line change
Expand Up @@ -224,9 +224,9 @@ INSERT INTO `report` (`report_key`, `title_key`) VALUES
('stock_value', 'TREE.STOCK_VALUE'),
('ohada_profit_loss', 'TREE.OHADA_RESULT_ACCOUNT'),
('income_expense_by_year', 'REPORT.PROFIT_AND_LOSS_BY_YEAR'),
('cost_center', 'REPORT.COST_CENTER.TITLE'),
('break_even', 'TREE.BREAK_EVEN_REPORT'),
('break_even_cost_center', 'TREE.BREAK_EVEN_COST_CENTER_REPORT'),
-- ('cost_center', 'REPORT.COST_CENTER.TITLE'),
-- ('break_even', 'TREE.BREAK_EVEN_REPORT'),
-- ('break_even_cost_center', 'TREE.BREAK_EVEN_COST_CENTER_REPORT'),
('indicators_report', 'TREE.INDICATORS_REPORT'),
('visit_report', 'PATIENT_RECORDS.REPORT.VISITS'),
('stock_entry', 'REPORT.STOCK.ENTRY_REPORT'),
Expand Down
16 changes: 15 additions & 1 deletion server/models/migrations/next/migrate.sql
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,24 @@

/*
* @author: jmcameron
* @date: 2021-11-12
* @description: Add new menu item
* @date: 2021-12-11
*/
INSERT IGNORE INTO `unit` VALUES
(305, 'Average Medical Costs Per Patient', 'TREE.AVERAGE_MED_COST_REPORT', 'Report of avg med costs', 282, '/reports/avg_med_costs_per_patient');

INSERT IGNORE INTO `report` (`report_key`, `title_key`) VALUES
('avg_med_costs_per_patient', 'TREE.AVERAGE_MED_COST_REPORT');

/*
* @author: jmcameron
* @description: Hide old cost center menu items
* @date: 2021-12-09
*/
DELETE FROM role_unit WHERE unit_id IN (220, 221, 222, 223, 230, 231, 232);
DELETE FROM report WHERE report_key IN (
'cost_center',
'break_even',
'break_even_cost_center'
);
DELETE FROM unit WHERE id IN (220, 221, 222, 223, 230, 231, 232);

0 comments on commit bb7f8dc

Please sign in to comment.