`;
if (value.maxOrderQty_at > 0 || value.maxOrderQty_de > 0) {
html += `
Bestell Limit
${value.maxOrderQty_at} Stück
${value.maxOrderQty_de} Stück
`;
}
if (price_compare) {
var diff_at = numform(value[price_compare]-value.price_at);
var diff_de = numform(value[price_compare]-value.price_de);
html += `
Preisdifferenz
€ ${diff_at}
€ ${diff_de}
`;
}
var hide_bestseller = '';
var lager_span = '';
if (value.pab_init == 0 ) {
hide_bestseller = ' d-none';
lager_span = 'style="grid-column: 1/span 2;"';
}
html +=`
Bestseller
`;
if (value.bestseller_at == value.bestseller_de) {
if (value.bestseller_at == 1) {
html += ` ja`;
} else {
html += ` nein`;
}
} else {
if (value.bestseller_at == 1) {
html += `
ja `;
} else {
html += `
nein `;
}
if (value.bestseller_de == 1) {
html += `
ja`;
} else {
html += `
nein`;
}
}
html += `
Lagernd
`;
if (value.pab_init == 0 ) {
html += ` nicht bei PAB gelistet`;
}
else if (value.inStock_at == value.inStock_de && value.archiv_at == value.archiv_de) {
if (value.inStock_at == 1 && value.archiv_at == 0) {
html += ` ja`;
} else if (value.archiv_at == 1) {
html += ` archiviert`;
} else {
html += ` nein`;
}
} else {
if (value.inStock_at == 1 && value.archiv_at == 0) {
html += `
ja `;
} else if (value.archiv_at == 1) {
html += ` archiviert`;
} else {
html += `
nein `;
}
if (value.inStock_de == 1 && value.archiv_de) {
html += `
ja`;
} else if (value.archiv_de == 1) {
html += ` archiviert`;
} else {
html += `
nein`;
}
}
html += `