Merge branch 'master' of bitbucket.org:venbainformationtechnology/smc_cet_salespd_backend

This commit is contained in:
sriramv 2022-05-26 13:11:39 +05:30
commit a49daa3c39
5 changed files with 5138 additions and 27 deletions

View File

@ -127,7 +127,7 @@ exports.PullSalesPdPhotographsData = async (req, res) =>
.then((successData)=>{logMsg.info("Photograph insert success ,PdId= "+PdId);})
.catch((err)=>{ logMsg.info("Photograph insert failed ,PdId= "+PdId+" ERROR : "+err);});
// responce to FE
setTimeout(() => {
setTimeout(() => {
res.send({'status':200,'message':"success",'data':"No data"});
}, 300);

View File

@ -1,4 +1,4 @@
const { sequelize, Test , GeneralSection ,FundRequirement , DetailsOfKeyShareHolder , BreifOfBusiness , FinancialInformation , PropertyInformationn , FinalRemarks , OfficerDetails , Photograph , InstitutionDetail , ProductInformation} = require('../models')
const { sequelize, Test , GeneralSection ,FundRequirement , DetailsOfKeyShareHolder , BreifOfBusiness , FinancialInformation , PropertyInformation , FinalRemarks , OfficerDetails , Photograph , InstitutionDetail , ProductInformation} = require('../models')
const { logMsg } = require('../services/logger.js');
@ -38,7 +38,7 @@ exports.SalesPd = async (req, res) =>
if (keys == 'section3') { Object.assign(values, { pd_id: storeId.pd_id }); await DetailsOfKeyShareHolder.create( values) };
if (keys == 'section4') { Object.assign(values, { pd_id: storeId.pd_id }); await BreifOfBusiness.create( values) };
if (keys == 'section5') { Object.assign(values, { pd_id: storeId.pd_id }); await FinancialInformation.create( values) };
if (keys == 'section6') { Object.assign(values, { pd_id: storeId.pd_id }); await PropertyInformationn.create( values) };
if (keys == 'section6') { Object.assign(values, { pd_id: storeId.pd_id }); await PropertyInformation.create( values) };
if (keys == 'section7') { Object.assign(values, { pd_id: storeId.pd_id }); await FinalRemarks.create( values) };
if (keys == 'section8') { Object.assign(values, { pd_id: storeId.pd_id }); await OfficerDetails.create( values) };
// if (keys == 'section9') { Object.assign(values, { pd_id: storeId.pd_id }); await Photograph.create( values) };
@ -53,7 +53,7 @@ exports.SalesPd = async (req, res) =>
if (keys == 'section3') { Object.assign(values, { pd_id: storeId.pd_id }); await DetailsOfKeyShareHolder.create( values) };
if (keys == 'section4') { Object.assign(values, { pd_id: storeId.pd_id }); await BreifOfBusiness.create( values) };
if (keys == 'section5') { Object.assign(values, { pd_id: storeId.pd_id }); await FinancialInformation.create( values) };
if (keys == 'section6') { Object.assign(values, { pd_id: storeId.pd_id }); await PropertyInformationn.create( values) };
if (keys == 'section6') { Object.assign(values, { pd_id: storeId.pd_id }); await PropertyInformation.create( values) };
if (keys == 'section7') { Object.assign(values, { pd_id: storeId.pd_id }); await FinalRemarks.create( values) };
if (keys == 'section8') { Object.assign(values, { pd_id: storeId.pd_id }); await OfficerDetails.create( values) };
// if (keys == 'section9') { Object.assign(values, { pd_id: storeId.pd_id }); await Photograph.create( values) };
@ -63,7 +63,7 @@ exports.SalesPd = async (req, res) =>
if (len == count - 1 )
{
var resData = await GeneralSection.findAll({ where : { pd_id : storeId.pd_id , is_active : 1 },
include : [ {model: FundRequirement }, {model: DetailsOfKeyShareHolder }, {model: DetailsOfKeyShareHolder }, {model: BreifOfBusiness }, {model: FinancialInformation }, {model: PropertyInformationn }, {model: FinalRemarks }, {model: OfficerDetails }, {model: Photograph }, {model: InstitutionDetail }, {model: ProductInformation }]
include : [ {model: FundRequirement }, {model: DetailsOfKeyShareHolder }, {model: DetailsOfKeyShareHolder }, {model: BreifOfBusiness }, {model: FinancialInformation }, {model: PropertyInformation }, {model: FinalRemarks }, {model: OfficerDetails }, {model: Photograph }, {model: InstitutionDetail }, {model: ProductInformation }]
})
res.send(resData)
}

5155
package-lock.json generated

File diff suppressed because it is too large Load Diff

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB