Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -45,6 +45,7 @@ export function buildComboKey(row, beden) {
|
||||
export const BEDEN_SCHEMA = [
|
||||
{ key: 'tak', title: 'TAKIM ELBISE', values: ['44','46','48','50','52','54','56','58','60','62','64','66','68','70','72','74'] },
|
||||
{ key: 'ayk', title: 'AYAKKABI', values: ['39','40','41','42','43','44','45'] },
|
||||
{ key: 'ayk_garson', title: 'AYAKKABI GARSON', values: ['22','23','24','25','26','27','28','29','30','31','32','33','34','35','STD'] },
|
||||
{ key: 'yas', title: 'YAS', values: ['2','4','6','8','10','12','14'] },
|
||||
{ key: 'pan', title: 'PANTOLON', values: ['38','40','42','44','46','48','50','52','54','56','58','60','62','64','66','68'] },
|
||||
{ key: 'gom', title: 'GOMLEK', values: ['XS','S','M','L','XL','2XL','3XL','4XL','5XL','6XL','7XL'] },
|
||||
@@ -3442,6 +3443,15 @@ export function detectBedenGroup(bedenList, urunAnaGrubu = '', urunKategori = ''
|
||||
? bedenList.map(v => (v || '').toString().trim().toUpperCase())
|
||||
: [' ']
|
||||
|
||||
const rawAna = (urunAnaGrubu || '').toString().toUpperCase()
|
||||
const rawKat = (urunKategori || '').toString().toUpperCase()
|
||||
const hasGarson = rawAna.includes('GARSON') || rawKat.includes('GARSON') ||
|
||||
rawAna.includes('GARSON') || rawKat.includes('GARSON')
|
||||
const hasAyakkabi = rawAna.includes('AYAKKABI') || rawKat.includes('AYAKKABI') ||
|
||||
rawAna.includes('AYAKKABI') || rawKat.includes('AYAKKABI')
|
||||
if (hasGarson && hasAyakkabi) return 'ayk_garson'
|
||||
if (hasGarson) return 'yas'
|
||||
|
||||
// 🔸 Harfli beden varsa doğrudan "gom" (gömlek/üst giyim)
|
||||
// STD/ONE SIZE aksbir için saklı kalsın.
|
||||
const harfliBedenler = ['XS','S','M','L','XL','2XL','3XL','4XL','5XL','6XL','7XL']
|
||||
|
||||
Reference in New Issue
Block a user