add route and controller for invoice integration

This commit is contained in:
Bilal Catic
2019-07-16 11:22:40 +02:00
parent ac1c82c16b
commit 5a6bc3cc6f
2 changed files with 22 additions and 1 deletions

View File

@@ -65,9 +65,22 @@ const getMemberIncidents = (req, res) => {
});
};
const addFees = (req, res) => {
const memberIds = req.body && req.body.memberIds ? req.body.memberIds : null;
const fromDate = req.body && req.body.fromDate ? req.body.fromDate : null;
const toDate = req.body && req.body.toDate ? req.body.toDate : null;
if (fromDate && toDate){
send();
}else{
res.status(400).send('Member ID missing');
}
};
module.exports = {
getKnownOfficeResourceMappings,
addNewMapping,
getAllIncidentsController,
getMemberIncidents,
addFees,
};