Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(reports): remove stock changes report #7160

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion client/src/modules/reports/reports.routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ angular.module('bhima.routes')
'recovery_capacity',
'rumer_report',
'satisfaction_rate_report',
'stock_changes',
'stock_consumption_graph_report',
'stock_entry',
'stock_exit',
Expand Down
1 change: 0 additions & 1 deletion server/config/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -897,7 +897,6 @@ exports.configure = function configure(app) {
app.get('/reports/stock/lost', stockReports.lostStockReport);
app.get('/reports/stock/movement_report', stockReports.movementReport);
app.get('/reports/stock/expiration_report', stockReports.expirationReport);
app.get('/reports/stock/changes', stockReports.stockChangesReport);

app.get('/reports/stock/lots', stockReports.stockLotsReport);
app.get('/reports/stock/movements', stockReports.stockMovementsReport);
Expand Down
2 changes: 0 additions & 2 deletions server/controllers/stock/reports/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ const stockValue = require('./stock/value');
const stockAssignmentReceipt = require('./stock/assignment/stock_assign.receipt');
const stockAssignReport = require('./stock/assignment/stock_assign.registry');
const stockRequisitionReceipt = require('../requisition/requisition.receipt');
const stockChangesReport = require('./stock/stock_changes/stock_changes');
const lotBarcodeReceipt = require('./stock/lot_barcode/lot_barcode');

/**
Expand Down Expand Up @@ -167,7 +166,6 @@ exports.purchasePrices = require('./purchase_prices');

exports.lotBarcodeReceipt = lotBarcodeReceipt;
exports.lostStockReport = lostStockReport;
exports.stockChangesReport = stockChangesReport;
exports.stockAdjustmentReceipt = stockAdjustmentReceipt;
exports.stockExitAggregateConsumptionReceipt = stockExitAggregateConsumptionReceipt;

Expand Down

This file was deleted.

3 changes: 0 additions & 3 deletions server/models/bhima.sql
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,6 @@ INSERT INTO unit VALUES
(289, 'Stock Expiration report','TREE.STOCK_EXPIRATION_REPORT','Stock expiration report', 282,'/reports/stock_expiration_report'),
(290, '[SETTINGS] Settings', 'TREE.STOCK_SETTINGS', 'Stock Settings', 160, '/stock/setting'),
(291, 'Stock Dashboard', 'TREE.STOCK_DASHBOARD','Stock Dashboard', 160,'/stock/dashboard'),
(292, 'Stock Changes Report', 'REPORT.STOCK_CHANGES.TITLE', 'Stock Changes Report', 282, '/reports/stock_changes'),
(293, 'Aggregated consumption','TREE.AGGREGATED_STOCK_CONSUMPTION','Aggregated consumption', 160,'/stock/aggregated_consumption'),
(294, 'Duplicate Lots','TREE.DUPLICATE_LOTS','The stock lots duplicates list', 160,'/stock/lots/duplicates'),
(295, 'Rumer report','TREE.RUMER_REPORT','The rumer reports', 282,'/reports/rumer_report'),
Expand Down Expand Up @@ -243,7 +242,6 @@ INSERT IGNORE INTO `report` (`report_key`, `title_key`) VALUES
('recovery_capacity', 'REPORT.RECOVERY_CAPACITY.TITLE'),
('rumer_report', 'REPORT.RUMER.TITLE'),
('satisfaction_rate_report', 'TREE.SATISFACTION_RATE_REPORT'),
('stock_changes', 'REPORT.STOCK_CHANGES.TITLE'),
('stock_consumption_graph_report', 'REPORT.STOCK_CONSUMPTION_GRAPH_REPORT.TITLE'),
('stock_entry', 'REPORT.STOCK.ENTRY_REPORT'),
('stock_exit', 'REPORT.STOCK.EXIT_REPORT'),
Expand Down Expand Up @@ -585,4 +583,3 @@ VALUES
(15, 'REAM', 1),
(16, 'SACK', 1),
(17, 'SET', 1);

7 changes: 6 additions & 1 deletion server/models/migrations/next/migrate.sql
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
/* v1.28.x */

-- remove references to stock_changes report
DELETE FROM unit WHERE `path` = '/reports/stock_changes';
DELETE FROM report where `report_key` = 'stock_changes';

/**
* @author: lomamech
* @description: Payroll Hospital general model #7000
Expand All @@ -18,4 +23,4 @@ INSERT INTO unit VALUES
CALL add_column_if_missing('employee', 'title_employee_id', 'TINYINT(1) NOT NULL DEFAULT 0');
ALTER TABLE `employee` ADD CONSTRAINT `employee__title_employee` FOREIGN KEY (`title_employee_id`) REFERENCES `title_employee` (`id`);

CALL add_column_if_missing('enterprise_setting', 'percentage_fixed_bonus', 'TINYINT(3) UNSIGNED NOT NULL DEFAULT 100');
CALL add_column_if_missing('enterprise_setting', 'percentage_fixed_bonus', 'TINYINT(3) UNSIGNED NOT NULL DEFAULT 100');