Hide partnumbers column for competitor pricelist (data not linked locally)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -160,13 +160,13 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function itemsColspan() {
|
function itemsColspan() {
|
||||||
return isStockSource() ? 5 : 5;
|
return isWarehouseSource() ? 5 : 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
function toggleWarehouseColumns() {
|
function toggleWarehouseColumns() {
|
||||||
const stock = isStockSource();
|
const stock = isStockSource();
|
||||||
document.getElementById('th-qty').classList.toggle('hidden', true);
|
document.getElementById('th-qty').classList.toggle('hidden', true);
|
||||||
document.getElementById('th-partnumbers').classList.toggle('hidden', !stock);
|
document.getElementById('th-partnumbers').classList.toggle('hidden', !isWarehouseSource());
|
||||||
document.getElementById('th-settings').classList.toggle('hidden', stock);
|
document.getElementById('th-settings').classList.toggle('hidden', stock);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -287,7 +287,7 @@
|
|||||||
<span class="px-2 py-1 text-xs bg-gray-100 rounded">${escapeHtml(item.category || '-')}</span>
|
<span class="px-2 py-1 text-xs bg-gray-100 rounded">${escapeHtml(item.category || '-')}</span>
|
||||||
</td>
|
</td>
|
||||||
<td class="${p} text-sm text-gray-500" title="${escapeHtml(description)}">${escapeHtml(truncatedDesc)}</td>
|
<td class="${p} text-sm text-gray-500" title="${escapeHtml(description)}">${escapeHtml(truncatedDesc)}</td>
|
||||||
${stock ? `<td class="${p} text-sm text-gray-600">${pnHtml}</td>` : ''}
|
${isWarehouseSource() ? `<td class="${p} text-sm text-gray-600">${pnHtml}</td>` : ''}
|
||||||
<td class="${p} whitespace-nowrap text-right font-mono">${priceHtml}</td>
|
<td class="${p} whitespace-nowrap text-right font-mono">${priceHtml}</td>
|
||||||
${!stock ? `<td class="${p} whitespace-nowrap text-sm"><span class="text-xs bg-gray-100 px-2 py-1 rounded">${formatPriceSettings(item)}</span></td>` : ''}
|
${!stock ? `<td class="${p} whitespace-nowrap text-sm"><span class="text-xs bg-gray-100 px-2 py-1 rounded">${formatPriceSettings(item)}</span></td>` : ''}
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
Reference in New Issue
Block a user