deActivateYear:GWM
This commit is contained in:
parent
8645bc8e8f
commit
e2ec6e1b1f
@ -883,6 +883,21 @@ exports.checkProbeStatus = (req, res) => {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// deActivate Financials Year
|
||||||
|
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 }})
|
||||||
|
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"});
|
||||||
|
}
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// this api for other income module
|
// this api for other income module
|
||||||
exports.getFinancialsYears = async (req, res) => {
|
exports.getFinancialsYears = async (req, res) => {
|
||||||
try
|
try
|
||||||
|
|||||||
@ -1054,7 +1054,39 @@ module.exports = app => {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @swagger
|
||||||
|
* /api/deActivateFinancialsYear:
|
||||||
|
* get:
|
||||||
|
* summary: deActivate FinancialsYear data
|
||||||
|
* description: deActivateFinancialsYear
|
||||||
|
* parameters:
|
||||||
|
* - in: query
|
||||||
|
* name: losid
|
||||||
|
* schema:
|
||||||
|
* type: string
|
||||||
|
* required: true
|
||||||
|
* description: losid
|
||||||
|
* example: MW112233
|
||||||
|
* - in: query
|
||||||
|
* name: entityid
|
||||||
|
* schema:
|
||||||
|
* type: integer
|
||||||
|
* required: true
|
||||||
|
* description:
|
||||||
|
* example:
|
||||||
|
* - in: query
|
||||||
|
* name: FY
|
||||||
|
* schema:
|
||||||
|
* type: integer
|
||||||
|
* required: true
|
||||||
|
* description:
|
||||||
|
* example:
|
||||||
|
* responses:
|
||||||
|
* 200:
|
||||||
|
* description: success
|
||||||
|
*/
|
||||||
|
router.get("/deActivateFinancialsYear", financials.deActivateFinancialsYear);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user