tango-app-api-store-builder 1.0.0-beta-7 → 1.0.0-beta-8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -374,7 +374,7 @@ export async function getStoreDetails( req, res ) {
|
|
|
374
374
|
}
|
|
375
375
|
}
|
|
376
376
|
|
|
377
|
-
export async function
|
|
377
|
+
export async function storeLayout( req, res ) {
|
|
378
378
|
try {
|
|
379
379
|
let idList = req.body.id.map( ( item ) => new mongoose.Types.ObjectId( item ) );
|
|
380
380
|
let query = { _id: { $in: req.body.id } };
|
|
@@ -586,7 +586,7 @@ export async function fixtureShelfProduct( req, res ) {
|
|
|
586
586
|
let productComplianceDetails = await planoComplianceService.find( query );
|
|
587
587
|
let product = [];
|
|
588
588
|
productDetails.forEach( ( item ) => {
|
|
589
|
-
let data = { ...item._doc, status: 'missing' };
|
|
589
|
+
let data = { ...item._doc, status: 'missing', rfId: '' };
|
|
590
590
|
let getPosition = productMappingDetails.find( ( ele ) => ele.productId.toString() == item._id.toString() );
|
|
591
591
|
let findCompliance = productComplianceDetails.find( ( ele ) => {
|
|
592
592
|
if ( planoDetails.productResolutionLevel == 'L4' && getPosition ) {
|
|
@@ -598,6 +598,7 @@ export async function fixtureShelfProduct( req, res ) {
|
|
|
598
598
|
if ( findCompliance ) {
|
|
599
599
|
data.status = findCompliance.compliance;
|
|
600
600
|
}
|
|
601
|
+
data.rfId = getPosition.rfId;
|
|
601
602
|
product.push( data );
|
|
602
603
|
} );
|
|
603
604
|
data.products = product;
|
|
@@ -12,7 +12,7 @@ storeBuilderRouter
|
|
|
12
12
|
.post( '/updateFloor', isAllowedSessionHandler, validate( validateDtos.updateFloor ), storeBuilderController.updateFloor )
|
|
13
13
|
.post( '/uploadBulkStore', isAllowedSessionHandler, storeBuilderController.uploadBulkStore )
|
|
14
14
|
.post( '/uploadFile', isAllowedSessionHandler, storeBuilderController.uploadFile )
|
|
15
|
-
.post( '/
|
|
15
|
+
.post( '/storeLayout', isAllowedSessionHandler, validate( validateDtos.storeList ), storeBuilderController.storeLayout )
|
|
16
16
|
.post( '/storeDetails', isAllowedSessionHandler, validate( validateDtos.storeDetails ), storeBuilderController.getStoreDetails )
|
|
17
17
|
.delete( '/deleteStoreLayout/:id', isAllowedSessionHandler, validate( validateDtos.deleteStoreLayout ), storeBuilderController.deleteStoreLayout )
|
|
18
18
|
.post( '/removeFile', isAllowedSessionHandler, storeBuilderController.deleteFile )
|