Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -479,7 +479,15 @@ function resolvePhotoDim3(item, secondColorDisplay = '') {
|
||||
}
|
||||
|
||||
function resolvePhotoDim1ID(item) {
|
||||
const candidates = [item?.ItemDim1Code, item?.itemDim1Code, item?.ITEMDIM1CODE, item?.Beden]
|
||||
const candidates = [
|
||||
item?.PhotoDim1ID,
|
||||
item?.photoDim1ID,
|
||||
item?.Dim1ID,
|
||||
item?.dim1ID,
|
||||
item?.ColorID,
|
||||
item?.colorID,
|
||||
item?.RenkID
|
||||
]
|
||||
for (const value of candidates) {
|
||||
const s = String(value || '').trim()
|
||||
if (/^\d+$/.test(s)) return s
|
||||
@@ -488,7 +496,15 @@ function resolvePhotoDim1ID(item) {
|
||||
}
|
||||
|
||||
function resolvePhotoDim3ID(item) {
|
||||
const candidates = [item?.ItemDim3Code, item?.itemDim3Code, item?.ITEMDIM3CODE, item?.Renk2]
|
||||
const candidates = [
|
||||
item?.PhotoDim3ID,
|
||||
item?.photoDim3ID,
|
||||
item?.Dim3ID,
|
||||
item?.dim3ID,
|
||||
item?.SecondColorID,
|
||||
item?.secondColorID,
|
||||
item?.Renk2ID
|
||||
]
|
||||
for (const value of candidates) {
|
||||
const s = String(value || '').trim()
|
||||
if (/^\d+$/.test(s)) return s
|
||||
|
||||
Reference in New Issue
Block a user