tango-app-api-store-builder 1.0.45 → 1.0.47
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
|
@@ -1929,9 +1929,6 @@ export async function getPlanoRevisionById( req, res ) {
|
|
|
1929
1929
|
},
|
|
1930
1930
|
];
|
|
1931
1931
|
let complianceStatus = await planoComplianceService.aggregate( complianceQuery );
|
|
1932
|
-
if ( shelf.shelfType == 'tray' ) {
|
|
1933
|
-
shelf.productPerShelf = shelf.productPerShelf * shelf.trayRows;
|
|
1934
|
-
}
|
|
1935
1932
|
shelf.compliance = complianceStatus?.[0]?.status.length ? ( ( complianceStatus?.[0]?.status?.length < shelf.productPerShelf ) || complianceStatus?.[0]?.status?.includes( 'misplaced' ) ) ? 'improper' : 'proper' : 'improper';
|
|
1936
1933
|
return shelf;
|
|
1937
1934
|
} ) );
|
|
@@ -1973,9 +1970,6 @@ export async function getPlanoRevisionById( req, res ) {
|
|
|
1973
1970
|
},
|
|
1974
1971
|
];
|
|
1975
1972
|
let complianceStatus = await planoComplianceService.aggregate( complianceQuery );
|
|
1976
|
-
if ( shelf.shelfType == 'tray' ) {
|
|
1977
|
-
shelf.productPerShelf = shelf.productPerShelf * shelf.trayRows;
|
|
1978
|
-
}
|
|
1979
1973
|
shelf.compliance = complianceStatus?.[0]?.status.length ? ( ( complianceStatus?.[0]?.status?.length < shelf.productPerShelf ) || complianceStatus?.[0]?.status?.includes( 'misplaced' ) ) ? 'improper' : 'proper' : 'improper';
|
|
1980
1974
|
return shelf;
|
|
1981
1975
|
} ) );
|
|
@@ -1088,8 +1088,7 @@ export async function getVmLibList( req, res ) {
|
|
|
1088
1088
|
let getMapppedFixtureDetails = await storeFixtureService.find( { fixtureConfigId: { $in: getMappedTemplates.map( ( temp ) => temp._id ) } } );
|
|
1089
1089
|
|
|
1090
1090
|
let data = {
|
|
1091
|
-
|
|
1092
|
-
templateId: getMappedTemplates.map( ( temp ) => ele?._id ),
|
|
1091
|
+
templateId: getMappedTemplates.map( ( temp ) => temp?._id ),
|
|
1093
1092
|
planoId: getMapppedFixtureDetails.map( ( plano ) => plano.planoId ),
|
|
1094
1093
|
planoStatus: 'incomplete',
|
|
1095
1094
|
status: 'inactive',
|
|
@@ -2867,9 +2867,6 @@ export async function storeFixturesv2( req, res ) {
|
|
|
2867
2867
|
},
|
|
2868
2868
|
];
|
|
2869
2869
|
let complianceStatus = await planoComplianceService.aggregate( complianceQuery );
|
|
2870
|
-
if ( shelf.shelfType == 'tray' ) {
|
|
2871
|
-
shelf.productPerShelf = shelf.productPerShelf * shelf.trayRows;
|
|
2872
|
-
}
|
|
2873
2870
|
const compliance = complianceStatus?.[0]?.status?.length ? ( ( complianceStatus?.[0]?.status?.length < shelf.productPerShelf ) || complianceStatus?.[0]?.status.includes( 'misplaced' ) ) ? 'improper' : 'proper' : 'improper';
|
|
2874
2871
|
|
|
2875
2872
|
const vmCount = await planoMappingService.count( { fixtureId: fixture._id, shelfId: shelf._id, type: 'vm' } );
|
|
@@ -3000,9 +2997,6 @@ export async function storeFixturesv2( req, res ) {
|
|
|
3000
2997
|
},
|
|
3001
2998
|
];
|
|
3002
2999
|
let complianceStatus = await planoComplianceService.aggregate( complianceQuery );
|
|
3003
|
-
if ( shelf.shelfType == 'tray' ) {
|
|
3004
|
-
shelf.productPerShelf = shelf.productPerShelf * shelf.trayRows;
|
|
3005
|
-
}
|
|
3006
3000
|
const compliance = complianceStatus?.[0]?.status.length ? ( ( complianceStatus?.[0]?.status?.length < shelf.productPerShelf ) || complianceStatus?.[0]?.status?.includes( 'misplaced' ) ) ? 'improper' : 'proper' : 'improper';
|
|
3007
3001
|
|
|
3008
3002
|
|