From dd1181c17977791268421b005d02dda6223add14 Mon Sep 17 00:00:00 2001 From: sriramv Date: Wed, 26 Jul 2023 16:52:50 +0530 Subject: [PATCH] excel upload:GWM --- app/controllers/excel.controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/excel.controller.js b/app/controllers/excel.controller.js index 17350bd..908f59f 100644 --- a/app/controllers/excel.controller.js +++ b/app/controllers/excel.controller.js @@ -75,7 +75,7 @@ exports.ImportExcelData = async (req, res , filename) => checkIfExist = await Financials.findOne({ raw:true, where: {fy:value.fy,entity_id:value.entity_id,itemid:value.itemid,is_active:1} }).catch(err=>{ logMsg.info(err); }); if(checkIfExist) { - await Financials.update({ "value":value.value},{ where: { id:checkIfExist.id }}).catch(err=>{ logMsg.info(err); }); + await Financials.update({ "value":value.value,"sub_value":value.value},{ where: { id:checkIfExist.id }}).catch(err=>{ logMsg.info(err); }); } else {