excel upload:GWM
This commit is contained in:
parent
d543b09a4f
commit
dd1181c179
@ -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
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user