excel upload:GWM

This commit is contained in:
sriramv 2023-07-26 16:52:50 +05:30
parent d543b09a4f
commit dd1181c179

View File

@ -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); }); 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) 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 else
{ {