feat(ops): Ville column in overpriced-internet report (sort + filter by city)

Adds a sortable 'Ville' column (field city) to the report. Quasar's default
filter scans all columns, so the existing search box now matches city too.
Street address caption drops the now-redundant city (keeps postal code).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
louispaulb 2026-06-01 22:44:34 -04:00
parent 105b0b2a51
commit bde7a5ef67

View File

@ -111,7 +111,7 @@
<template #body-cell-address="props">
<q-td :props="props">
<div>{{ props.row.address1 || '—' }}</div>
<div class="text-caption text-grey-7">{{ props.row.city }} {{ props.row.zip }}</div>
<div class="text-caption text-grey-7">{{ props.row.zip }}</div>
</q-td>
</template>
@ -221,6 +221,7 @@ const segmentOptions = [
const columns = [
{ name: 'client', label: 'Client', field: 'client_name', align: 'left', sortable: true },
{ name: 'address', label: 'Adresse de service', field: 'address1', align: 'left', sortable: true },
{ name: 'city', label: 'Ville', field: 'city', align: 'left', sortable: true },
{ name: 'net_internet', label: 'Net Internet /mois', field: 'net_internet', align: 'right', sortable: true },
{ name: 'gross', label: 'Brut', field: 'gross', align: 'right', sortable: true, format: v => formatMoney(v) },
{ name: 'discounts', label: 'Rabais actifs', field: 'discounts', align: 'right', sortable: true },