Skip to content

Commit

Permalink
fix(reports): add realized_profit report key
Browse files Browse the repository at this point in the history
This commit adds the realized_profit report key to the database
migration file.

Closes #6160.
  • Loading branch information
jniles committed Dec 30, 2021
1 parent 32cbc7a commit 07bad48
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
4 changes: 2 additions & 2 deletions client/src/i18n/en/report.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
"FINANCIAL_SITUATION_EMPLOYEES": "Financial situation of employees",
"INCLUDE_MEDICAL_CARE_EMPLOYEE": "Include medical care provided to the employee",
"LIMIT_TO_TIME_INTERVAL": "Limit to time interval",
"NORMAL_REPORT": "Normal Report",
"NORMAL_REPORT": "Normal Report",
"REPORT": "Employee Standing Report",
"SEE_SITUATION_ALL_EMPLOYEES": "See the overall situation of all employees",
"SUMMARY_REPORT": "Summary report",
Expand Down Expand Up @@ -529,7 +529,7 @@
},
"REALIZED_PROFIT" : {
"TITLE":"Collection on invoices report",
"DESCRIPTION":"This report shows incomes made from invoices with remaining debts",
"DESCRIPTION":"This report shows revenue made from invoices with remaining debts",
"REMAINING" : "Remaining",
"INVOICED" : "Invoiced",
"PAID" : "Paid"
Expand Down
2 changes: 1 addition & 1 deletion client/src/i18n/en/tree.json
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
"PURCHASE" : "Purchase",
"PURCHASE_REGISTRY" : "Purchase Registry",
"PURCHASING" : "Purchasing",
"REALIZED_PROFIT_REPORT": "[Invoicing] Collection on invoices",
"REALIZED_PROFIT_REPORT": "Collection on invoices",
"RECOVERY_CAPACITY_REPORT": "Recovery Capacity",
"REFERENCE_GROUP" : "Reference Group",
"REFERENCE" : "Reference",
Expand Down
2 changes: 1 addition & 1 deletion server/models/bhima.sql
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ INSERT INTO unit VALUES
(246,'Client Debts Report','TREE.CLIENT_DEBTS_REPORT','Client debts report',281,'/reports/client_debts'),
(247,'Client Support Report','TREE.CLIENT_SUPPORT_REPORT','Client support report',281,'/reports/client_support'),
(248,'Analysis of Cashboxes','REPORT.ANALYSIS_AUX_CASHBOXES.TITLE','Analysis of auxiliary cashboxes',281,'/reports/analysis_auxiliary_cashboxes'),
(249,'Realized Profit Report','TREE.REALIZED_PROFIT_REPORT','Realized profit report',281,'/reports/realized_profit'),
(249,'Realized Profit Report','TREE.REALIZED_PROFIT_REPORT','Realized profit report / Collection on Invoicies',281,'/reports/realized_profit'),
(250,'System Usage Statistics','REPORT.SYSTEM_USAGE_STAT.TITLE','System usage statistics',280,'/reports/system_usage_stat'),
(251,'Indexes','TREE.INDEXES','The payroll index',57,'/PAYROLL_INDEX_FOLDER'),
(252,'Staffing indexes management','TREE.STAFFING_INDICES_MANAGEMENT','Staffing indices management',251,'/staffing_indices'),
Expand Down
9 changes: 9 additions & 0 deletions server/models/migrations/next/migrate.sql
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,12 @@ DELETE FROM unit WHERE id IN (220, 221, 222, 223, 230, 231, 232);
* @date: 2021-12-16
*/
ALTER TABLE `exchange_rate` MODIFY `rate` DOUBLE NOT NULL;


/**
* @author: jniles
* @description: add realized_profit report if it doesn't exist
* @date: 2021-12-21
*/
INSERT IGNORE INTO `report` (`report_key`, `title_key`) VALUES
('realized_profit', 'REPORT.REALIZED_PROFIT.TITLE');

0 comments on commit 07bad48

Please sign in to comment.