GWM
This commit is contained in:
parent
e2ec6e1b1f
commit
028bc768c0
@ -887,8 +887,8 @@ exports.checkProbeStatus = (req, res) => {
|
||||
exports.deActivateFinancialsYear = async (req, res) => {
|
||||
try
|
||||
{
|
||||
await Entityfinyear.upadte({is_active : 0},{where : {losid: req.query.losid , entityid : req.query.entityid,FY: req.query.FY }});
|
||||
await Financials.upadte({is_active : 0},{where : { entity_id : req.query.entityid,fy: req.query.FY }})
|
||||
await Entityfinyear.update({is_active : 0},{where : {losid: req.query.losid , entityid : req.query.entityid,FY: req.query.FY }});
|
||||
await Financials.update({is_active : 0},{where : { entity_id : req.query.entityid,fy: req.query.FY }})
|
||||
res.send({'status':200,"message": "success." ,'data': "No data"});
|
||||
} catch(err) {
|
||||
res.send({'status':404,message: err.message || "Some error occurred while inserting statements." ,'data': "No data"});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user