gwm:pullsalespd
This commit is contained in:
parent
d0f71930a6
commit
3524211b68
@ -9,7 +9,11 @@ exports.PullSalesPdData = async (req, res) =>
|
||||
{
|
||||
try
|
||||
{
|
||||
|
||||
GeneralSectionData = await GeneralSection.findOne({ where : { ref_no : req.body.pdid ,case_no :req.body.caseno, is_active : 1 }});
|
||||
if(GeneralSectionData)
|
||||
{
|
||||
res.send({'status':404, 'message': "data already exist." ,'data': "No data" });
|
||||
}else{
|
||||
const tempData =JSON.parse(JSON.stringify(req.body.data));
|
||||
|
||||
var count = 0;
|
||||
@ -146,6 +150,7 @@ exports.PullSalesPdData = async (req, res) =>
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
} catch(err) {
|
||||
res.send({'status':404,message: err.message || "Some error occurred while retrieving data." ,'data': "No data" });
|
||||
|
||||
Loading…
Reference in New Issue
Block a user