add structure for fetching member practice summary from backend

This commit is contained in:
Bilal Catic
2019-08-05 12:06:18 +02:00
parent df1266c51c
commit 72d06f53f5
7 changed files with 50 additions and 3 deletions

View File

@@ -1,7 +1,7 @@
'use strict';
const { getMappingsFromDatabase, fetchOffices, fetchResources, saveNewMappingToDatabase } = require('../services/officeRnD/resources');
const { getAllIncidents } = require('../services/integration/reports');
const { getAllIncidents, getMemberPracticeSummaryReport } = require('../services/integration/reports');
const { getMembersFeesForDateRange } = require('../services/integration/invoiceIntegration');
const { deleteFeesFromORD, addFeesToORD } = require('../services/officeRnD/fees');
const { checkBookingChanges } = require('../services/integration/checkBookingChange');
@@ -126,6 +126,16 @@ const checkProcessingStatus = (req, res) => {
});
};
const getPracticeSummaryReport = (req, res) => {
getMemberPracticeSummaryReport()
.then(() => {
res.send();
})
.catch((error) => {
res.status(500).send(error);
});
};
module.exports = {
getKnownOfficeResourceMappings,
addNewMapping,
@@ -133,4 +143,5 @@ module.exports = {
getMemberIncidents,
addFees,
checkProcessingStatus,
getPracticeSummaryReport,
};