v2.47.1 - Ready to test ISQ query

This commit is contained in:
2022-12-01 13:37:27 -07:00
parent 1515313965
commit 4875b31723
61 changed files with 919 additions and 421 deletions

26
Adaptation/.vscode/psn.js vendored Normal file
View File

@ -0,0 +1,26 @@
// (self.length != 0) ?
// self :
// (getContextData('2', 'cds.PRODUCT', '') == '-') ?
// self :
// getContextData('2', 'cds.PRODUCT', '')
getValue(self, self.length, getContextData('2', 'cds.PRODUCT', ''), $('dcp.CDE5/RsM/Recipe', ''));
function getValue(value, length, product, recipe) {
if (recipe.toUpperCase() === 'SHEET RHO LOW')
return 'Sheet Rho Low';
else if (recipe.toUpperCase() === 'SHEET RHO MID')
return 'Sheet Rho Mid';
else if (recipe.toUpperCase() === 'SHEET RHO HIGH')
return 'Sheet Rho High';
else if (recipe.toUpperCase() === 'SHEET RHO THIN')
return 'Sheet Rho Thin';
else if (recipe.toUpperCase() === 'EPRO LOW')
return 'EPro Low';
else if (recipe.toUpperCase() === 'EPRO HIGH')
return 'EPro High';
else if (length !== 0 || product === '-')
return value;
else
return product;
}