Reset discards unsaved changes for the selected PriceSlot.
Showing {visibleRowCount} of {totalRowCount}
{isServiceSlot ? 'service rows' : 'products'}
{#if loading}
Loading PriceSlot data...
{:else if $priceSlotsError}
{$priceSlotsError}
{:else if displaySlots.length === 0}
No PriceSlot data from backend.
{:else if isServiceSlot}
{#each serviceHeaders as header}
{header}
{/each}
{#each filteredServiceRows as row, index (`${row.row_index ?? index}-${index}`)}
{#each serviceHeaders as header}
updateServiceCell(row, index, header, event.currentTarget.value)}
/>
{/each}
{/each}
{#if filteredServiceRows.length === 0}
No service rows found.
{/if}
{:else}
ProductCodeProductName [{selectedCountryLanguage}]ProductNameEngPrice
{#each filteredProducts as product, index (`${product.product_code}-${product.row_index ?? index}`)}
{@const productNames = getProductNames(product)}
{product.product_code}
{productNames.local}{productNames.english}
updateProductPrice(product.product_code, event.currentTarget.value)}
/>
{/each}
{#if filteredProducts.length === 0}
No product code found.
{/if}
{/if}
Create PriceSlot
Choose how to adjust base prices before creating a new PriceSlot.
{
if (v) adjustmentMode = v as AdjustmentMode;
applyCreateTemplate();
}}
>
{adjustmentModeLabels[adjustmentMode]}
Increase by Percentage (%)Increase by Fixed AmountDecrease by Percentage (%)Decrease by Fixed Amount