diff --git a/src/composables/useCau.js b/src/composables/useCau.js
index a71300464..43bfc5180 100644
--- a/src/composables/useCau.js
+++ b/src/composables/useCau.js
@@ -11,7 +11,7 @@ export async function useCau(res, message) {
const { config, headers, request, status, statusText, data } = res || {};
const { params, url, method, signal, headers: confHeaders } = config || {};
const { message: resMessage, code, name } = data?.error || {};
- delete confHeaders.Authorization;
+ delete confHeaders?.Authorization;
const additionalData = {
path: location.hash,
diff --git a/src/css/app.scss b/src/css/app.scss
index 0c5dc97fa..994ae7ff1 100644
--- a/src/css/app.scss
+++ b/src/css/app.scss
@@ -335,3 +335,7 @@ input::-webkit-inner-spin-button {
border: 1px solid;
box-shadow: 0 4px 6px #00000000;
}
+
+.containerShrinked {
+ width: 80%;
+}
diff --git a/src/pages/Customer/components/CustomerAddressEdit.vue b/src/pages/Customer/components/CustomerAddressEdit.vue
index af1b9c160..f852c160a 100644
--- a/src/pages/Customer/components/CustomerAddressEdit.vue
+++ b/src/pages/Customer/components/CustomerAddressEdit.vue
@@ -233,7 +233,7 @@ function handleLocation(data, location) {
postcode: data.postalCode,
city: data.city,
province: data.province,
- country: data.province.country,
+ country: data.province?.country,
}"
@update:model-value="(location) => handleLocation(data, location)"
>
diff --git a/src/pages/Customer/components/CustomerNewPayment.vue b/src/pages/Customer/components/CustomerNewPayment.vue
index 7f45cd7db..8f61bac89 100644
--- a/src/pages/Customer/components/CustomerNewPayment.vue
+++ b/src/pages/Customer/components/CustomerNewPayment.vue
@@ -114,7 +114,7 @@ function onBeforeSave(data) {
if (isCash.value && shouldSendEmail.value && !data.email)
return notify(t('There is no assigned email for this client'), 'negative');
- data.bankFk = data.bankFk.id;
+ data.bankFk = data.bankFk?.id;
return data;
}
@@ -189,7 +189,7 @@ async function getAmountPaid() {
:url-create="urlCreate"
:mapper="onBeforeSave"
@on-data-saved="onDataSaved"
- :prevent-submit="true"
+ prevent-submit
>
diff --git a/src/pages/InvoiceOut/Card/InvoiceOutDescriptorMenu.vue b/src/pages/InvoiceOut/Card/InvoiceOutDescriptorMenu.vue
index eb72563e1..1fd9f3e92 100644
--- a/src/pages/InvoiceOut/Card/InvoiceOutDescriptorMenu.vue
+++ b/src/pages/InvoiceOut/Card/InvoiceOutDescriptorMenu.vue
@@ -103,7 +103,7 @@ const refundInvoice = async (withWarehouse) => {
t('refundInvoiceSuccessMessage', {
refundTicket: data[0].id,
}),
- 'positive'
+ 'positive',
);
};
@@ -124,6 +124,13 @@ const showRefundInvoiceForm = () => {
},
});
};
+
+const showExportationLetter = () => {
+ openReport(`InvoiceOuts/${$props.invoiceOutData.ref}/exportation-pdf`, {
+ recipientId: $props.invoiceOutData.client.id,
+ refFk: $props.invoiceOutData.ref,
+ });
+};
@@ -172,7 +179,7 @@ const showRefundInvoiceForm = () => {
t('Confirm deletion'),
t('Are you sure you want to delete this invoice?'),
deleteInvoice,
- redirectToInvoiceOutList
+ redirectToInvoiceOutList,
)
"
>
@@ -185,7 +192,7 @@ const showRefundInvoiceForm = () => {
openConfirmationModal(
'',
t('Are you sure you want to book this invoice?'),
- bookInvoice
+ bookInvoice,
)
"
>
@@ -198,7 +205,7 @@ const showRefundInvoiceForm = () => {
openConfirmationModal(
t('Generate PDF invoice document'),
t('Are you sure you want to generate/regenerate the PDF invoice?'),
- generateInvoicePdf
+ generateInvoicePdf,
)
"
>
@@ -226,6 +233,14 @@ const showRefundInvoiceForm = () => {
{{ t('Create a single ticket with all the content of the current invoice') }}
+
+ {{ t('Show CITES letter') }}
+
@@ -255,7 +270,7 @@ es:
Create a single ticket with all the content of the current invoice: Crear un ticket único con todo el contenido de la factura actual
refundInvoiceSuccessMessage: Se ha creado el siguiente ticket de abono {refundTicket}
The email can't be empty: El email no puede estar vacío
-
+ Show CITES letter: Ver carta CITES
en:
refundInvoiceSuccessMessage: The following refund ticket have been created {refundTicket}
diff --git a/src/pages/InvoiceOut/InvoiceOutFilter.vue b/src/pages/InvoiceOut/InvoiceOutFilter.vue
index cdc9f037a..648b8e4e6 100644
--- a/src/pages/InvoiceOut/InvoiceOutFilter.vue
+++ b/src/pages/InvoiceOut/InvoiceOutFilter.vue
@@ -22,7 +22,7 @@ const states = ref();
- {{ t(`params.${tag.label}`) }}:
+ {{ t(`invoiceOut.params.${tag.label}`) }}:
{{ formatFn(tag.value) }}
@@ -84,15 +84,6 @@ const states = ref();
/>
-
-
-
-
-
-
-
-en:
- params:
- search: Contains
- clientFk: Customer
- fi: FI
- amount: Amount
- min: Min
- max: Max
- hasPdf: Has PDF
- issued: Issued
- created: Created
- dued: Dued
-es:
- params:
- search: Contiene
- clientFk: Cliente
- fi: CIF
- amount: Importe
- min: Min
- max: Max
- hasPdf: Tiene PDF
- issued: Emitida
- created: Creada
- dued: Vencida
- Customer ID: ID cliente
- FI: CIF
- Amount: Importe
- Has PDF: Tiene PDF
- Issued: Fecha emisión
- Created: Fecha creación
- Dued: Fecha vencimiento
-
diff --git a/src/pages/InvoiceOut/InvoiceOutList.vue b/src/pages/InvoiceOut/InvoiceOutList.vue
index c7d7ba9f4..873ab030f 100644
--- a/src/pages/InvoiceOut/InvoiceOutList.vue
+++ b/src/pages/InvoiceOut/InvoiceOutList.vue
@@ -71,14 +71,6 @@ const columns = computed(() => [
inWhere: true,
},
},
- {
- align: 'left',
- name: 'issued',
- label: t('invoiceOut.summary.issued'),
- component: 'date',
- format: (row) => toDate(row.issued),
- columnField: { component: null },
- },
{
align: 'left',
name: 'clientFk',
diff --git a/src/pages/InvoiceOut/InvoiceOutNegativeBases.vue b/src/pages/InvoiceOut/InvoiceOutNegativeBases.vue
index 135eb9aca..b062678a0 100644
--- a/src/pages/InvoiceOut/InvoiceOutNegativeBases.vue
+++ b/src/pages/InvoiceOut/InvoiceOutNegativeBases.vue
@@ -10,6 +10,8 @@ import CustomerDescriptorProxy from '../Customer/Card/CustomerDescriptorProxy.vu
import TicketDescriptorProxy from '../Ticket/Card/TicketDescriptorProxy.vue';
import WorkerDescriptorProxy from '../Worker/Card/WorkerDescriptorProxy.vue';
import VnInputDate from 'components/common/VnInputDate.vue';
+import InvoiceOutNegativeBasesFilter from './InvoiceOutNegativeBasesFilter.vue';
+import RightMenu from 'src/components/common/RightMenu.vue';
const { t } = useI18n();
const tableRef = ref();
@@ -97,16 +99,19 @@ const columns = computed(() => [
align: 'left',
name: 'isActive',
label: t('invoiceOut.negativeBases.active'),
+ component: 'checkbox',
},
{
align: 'left',
name: 'hasToInvoice',
label: t('invoiceOut.negativeBases.hasToInvoice'),
+ component: 'checkbox',
},
{
align: 'left',
- name: 'hasVerifiedData',
+ name: 'isTaxDataChecked',
label: t('invoiceOut.negativeBases.verifiedData'),
+ component: 'checkbox',
},
{
align: 'left',
@@ -142,7 +147,7 @@ const downloadCSV = async () => {
await invoiceOutGlobalStore.getNegativeBasesCsv(
userParams.from,
userParams.to,
- filterParams
+ filterParams,
);
};
@@ -154,6 +159,11 @@ const downloadCSV = async () => {
+
+
+
+
+
{
auto-load
:is-editable="false"
:use-model="true"
+ :right-search="false"
>
diff --git a/src/pages/InvoiceOut/InvoiceOutNegativeBasesFilter.vue b/src/pages/InvoiceOut/InvoiceOutNegativeBasesFilter.vue
index 6ceec61e4..cd9836bb7 100644
--- a/src/pages/InvoiceOut/InvoiceOutNegativeBasesFilter.vue
+++ b/src/pages/InvoiceOut/InvoiceOutNegativeBasesFilter.vue
@@ -2,9 +2,10 @@
import { useI18n } from 'vue-i18n';
import VnFilterPanel from 'src/components/ui/VnFilterPanel.vue';
-import VnInput from 'src/components/common/VnInput.vue';
import VnInputDate from 'components/common/VnInputDate.vue';
import VnInputNumber from 'src/components/common/VnInputNumber.vue';
+import VnSelect from 'src/components/common/VnSelect.vue';
+import VnSelectWorker from 'src/components/common/VnSelectWorker.vue';
const { t } = useI18n();
const props = defineProps({
@@ -24,11 +25,11 @@ const props = defineProps({
>
- {{ t(`params.${tag.label}`) }}:
+ {{ t(`invoiceOut.params.${tag.label}`) }}:
{{ formatFn(tag.value) }}
-
+
-
+ v-model="params.company"
+ option-label="code"
+ option-value="code"
+ dense
+ outlined
+ rounded
+ @update:model-value="searchFn()"
+ >
+
+
+
+
+ {{ scope.opt?.code }}
+
+
+ {{ `#${scope.opt?.id}` }}
+
+
+
+
+
-
-
-
-
-
-
-
+ option-label="name"
+ option-value="name"
+ outlined
+ dense
+ rounded
+ @update:model-value="searchFn()"
+ >
+
+
+
+
+ {{ scope.opt?.name }}
+
+
+ {{ `#${scope.opt?.id}` }}
+
+
+
+
+
-
@@ -90,15 +123,18 @@ const props = defineProps({
v-model="params.amount"
:label="t('globals.amount')"
is-outlined
+ :positive="false"
/>
-
diff --git a/src/pages/InvoiceOut/locale/en.yml b/src/pages/InvoiceOut/locale/en.yml
index ee6ba57e6..9dd31d186 100644
--- a/src/pages/InvoiceOut/locale/en.yml
+++ b/src/pages/InvoiceOut/locale/en.yml
@@ -4,7 +4,7 @@ invoiceOut:
params:
company: Company
country: Country
- clientId: Client ID
+ clientId: Client
clientSocialName: Client
taxableBase: Base
ticketFk: Ticket
@@ -12,6 +12,18 @@ invoiceOut:
hasToInvoice: Has to invoice
hasVerifiedData: Verified data
workerName: Worker
+ isTaxDataChecked: Verified data
+ amount: Amount
+ clientFk: Client
+ companyFk: Company
+ created: Created
+ dued: Dued
+ customsAgentFk: Custom Agent
+ ref: Reference
+ fi: FI
+ min: Min
+ max: Max
+ hasPdf: Has PDF
card:
issued: Issued
customerCard: Customer card
@@ -53,7 +65,7 @@ invoiceOut:
active: Active
hasToInvoice: Has to Invoice
verifiedData: Verified Data
- comercial: Commercial
+ comercial: Sales person
errors:
downloadCsvFailed: CSV download failed
invoiceOutModule:
diff --git a/src/pages/InvoiceOut/locale/es.yml b/src/pages/InvoiceOut/locale/es.yml
index a059ce18d..79ceb4aa8 100644
--- a/src/pages/InvoiceOut/locale/es.yml
+++ b/src/pages/InvoiceOut/locale/es.yml
@@ -4,7 +4,7 @@ invoiceOut:
params:
company: Empresa
country: País
- clientId: ID del cliente
+ clientId: Cliente
clientSocialName: Cliente
taxableBase: Base
ticketFk: Ticket
@@ -12,6 +12,18 @@ invoiceOut:
hasToInvoice: Debe facturar
hasVerifiedData: Datos verificados
workerName: Comercial
+ isTaxDataChecked: Datos comprobados
+ amount: Importe
+ clientFk: Cliente
+ companyFk: Empresa
+ created: Creada
+ dued: Vencida
+ customsAgentFk: Agente aduanas
+ ref: Referencia
+ fi: CIF
+ min: Min
+ max: Max
+ hasPdf: Tiene PDF
card:
issued: Fecha emisión
customerCard: Ficha del cliente
diff --git a/src/pages/Route/Card/RouteDescriptor.vue b/src/pages/Route/Card/RouteDescriptor.vue
index b6d0ba8c4..503cd1941 100644
--- a/src/pages/Route/Card/RouteDescriptor.vue
+++ b/src/pages/Route/Card/RouteDescriptor.vue
@@ -6,6 +6,8 @@ import VnLv from 'components/ui/VnLv.vue';
import { dashIfEmpty, toDate } from 'src/filters';
import RouteDescriptorMenu from 'pages/Route/Card/RouteDescriptorMenu.vue';
import filter from './RouteFilter.js';
+import useCardDescription from 'src/composables/useCardDescription';
+import axios from 'axios';
const $props = defineProps({
id: {
@@ -16,7 +18,6 @@ const $props = defineProps({
});
const route = useRoute();
-const { t } = useI18n();
const zone = ref();
const zoneId = ref();
const entityId = computed(() => {
@@ -50,9 +51,9 @@ onMounted(async () => {
width="lg-width"
>
-
-
-
+
+
+
-
- {{ t('futureTickets.noVerified') }}
-
-
-
-
- {{ t('futureTickets.purchaseRequest') }}
-
-
-
-
- {{ t('ticketSale.noVisible') }}
-
-
-
-
- {{ t('futureTickets.clientFrozen') }}
-
-
-
-
- {{ t('futureTickets.risk') }}: {{ row.risk }}
-
-
-
-
- {{ t('futureTickets.componentLack') }}
-
-
-
-
- {{ t('futureTickets.rounding') }}
-
-
+
diff --git a/src/pages/Travel/ExtraCommunity.vue b/src/pages/Travel/ExtraCommunity.vue
index dee9d923a..ac46caa44 100644
--- a/src/pages/Travel/ExtraCommunity.vue
+++ b/src/pages/Travel/ExtraCommunity.vue
@@ -2,6 +2,7 @@
import { onMounted, ref, computed, watch } from 'vue';
import { QBtn } from 'quasar';
import { useI18n } from 'vue-i18n';
+import { useRoute } from 'vue-router';
import SupplierDescriptorProxy from 'src/pages/Supplier/Card/SupplierDescriptorProxy.vue';
import TravelDescriptorProxy from 'src/pages/Travel/Card/TravelDescriptorProxy.vue';
@@ -22,6 +23,8 @@ import VnPopup from 'src/components/common/VnPopup.vue';
const stateStore = useStateStore();
const { t } = useI18n();
const { openReport } = usePrintService();
+const route = useRoute();
+const tableParams = ref();
const shippedFrom = ref(Date.vnNew());
const landedTo = ref(Date.vnNew());
@@ -143,7 +146,7 @@ const columns = computed(() => [
sortable: true,
},
{
- label: t('globals.pageTitles.supplier'),
+ label: t('extraCommunity.cargoShip'),
field: 'cargoSupplierNickname',
name: 'cargoSupplierNickname',
align: 'left',
@@ -171,7 +174,7 @@ const columns = computed(() => [
? value.reduce((sum, entry) => {
return sum + (entry.invoiceAmount || 0);
}, 0)
- : 0
+ : 0,
),
},
{
@@ -200,7 +203,7 @@ const columns = computed(() => [
sortable: true,
},
{
- label: t('kg'),
+ label: t('extraCommunity.kg'),
field: 'kg',
name: 'kg',
align: 'left',
@@ -208,7 +211,7 @@ const columns = computed(() => [
sortable: true,
},
{
- label: t('physicKg'),
+ label: t('extraCommunity.physicKg'),
field: 'loadedKg',
name: 'loadedKg',
align: 'left',
@@ -232,7 +235,7 @@ const columns = computed(() => [
sortable: true,
},
{
- label: t('shipped'),
+ label: t('extraCommunity.shipped'),
field: 'shipped',
name: 'shipped',
align: 'left',
@@ -249,7 +252,7 @@ const columns = computed(() => [
sortable: true,
},
{
- label: t('landed'),
+ label: t('extraCommunity.landed'),
field: 'landed',
name: 'landed',
align: 'left',
@@ -258,7 +261,7 @@ const columns = computed(() => [
format: (value) => toDate(value),
},
{
- label: t('notes'),
+ label: t('extraCommunity.notes'),
field: '',
name: 'notes',
align: 'center',
@@ -284,7 +287,7 @@ watch(
if (!arrayData.store.data) return;
onStoreDataChange();
},
- { deep: true, immediate: true }
+ { deep: true, immediate: true },
);
const openReportPdf = () => {
@@ -451,13 +454,24 @@ const getColor = (percentage) => {
for (const { value, className } of travelKgPercentages.value)
if (percentage > value) return className;
};
+
+const filteredEntries = (entries) => {
+ if (!tableParams?.value?.entrySupplierFk) return entries;
+ return entries?.filter(
+ (entry) => entry.supplierFk === tableParams?.value?.entrySupplierFk,
+ );
+};
+
+watch(route, () => {
+ tableParams.value = JSON.parse(route.query.table);
+});
@@ -521,7 +535,7 @@ const getColor = (percentage) => {
? tableColumnComponents[col.name].event(
rows[props.rowIndex][col.field],
col.field,
- props.rowIndex
+ props.rowIndex,
)
: {}
"
@@ -546,7 +560,7 @@ const getColor = (percentage) => {
},
{
link: ['id', 'cargoSupplierNickname'].includes(
- col.name
+ col.name,
),
},
]"
@@ -564,9 +578,8 @@ const getColor = (percentage) => {
-
{
name="warning"
color="negative"
size="md"
- :title="t('requiresInspection')"
+ :title="t('extraCommunity.requiresInspection')"
>
@@ -709,24 +722,3 @@ const getColor = (percentage) => {
width: max-content;
}
-
-en:
- searchExtraCommunity: Search for extra community shipping
- kg: BI. KG
- physicKg: Phy. KG
- shipped: W. shipped
- landed: W. landed
- requiresInspection: Requires inspection
- BIP: Boder Inspection Point
- notes: Notes
-es:
- searchExtraCommunity: Buscar por envío extra comunitario
- kg: KG Bloq.
- physicKg: KG físico
- shipped: F. envío
- landed: F. llegada
- notes: Notas
- Open as PDF: Abrir como PDF
- requiresInspection: Requiere inspección
- BIP: Punto de Inspección Fronteriza
-
diff --git a/src/pages/Travel/ExtraCommunityFilter.vue b/src/pages/Travel/ExtraCommunityFilter.vue
index b22574632..29d342334 100644
--- a/src/pages/Travel/ExtraCommunityFilter.vue
+++ b/src/pages/Travel/ExtraCommunityFilter.vue
@@ -79,7 +79,7 @@ warehouses();
- {{ t(`params.${tag.label}`) }}:
+ {{ t(`extraCommunity.filter.${tag.label}`) }}:
{{ formatFn(tag.value) }}
@@ -92,7 +92,7 @@ warehouses();
@@ -103,7 +103,7 @@ warehouses();
+
+
+
+
+
-
-
-en:
- params:
- id: Id
- reference: Reference
- totalEntries: Total entries
- agencyModeFk: Agency
- warehouseInFk: Warehouse In
- warehouseOutFk: Warehouse Out
- shippedFrom: Shipped from
- landedTo: Landed to
- cargoSupplierFk: Supplier
- continent: Continent out
-es:
- params:
- id: Id
- reference: Referencia
- totalEntries: Ent. totales
- agencyModeFk: Agencia
- warehouseInFk: Alm. entrada
- warehouseOutFk: Alm. salida
- shippedFrom: Llegada desde
- landedTo: Llegada hasta
- cargoSupplierFk: Proveedor
- continent: Cont. Salida
-
diff --git a/src/pages/Travel/locale/en.yml b/src/pages/Travel/locale/en.yml
new file mode 100644
index 000000000..ddef66f2f
--- /dev/null
+++ b/src/pages/Travel/locale/en.yml
@@ -0,0 +1,22 @@
+extraCommunity:
+ cargoShip: Cargo ship
+ searchExtraCommunity: Search for extra community shipping
+ kg: BI. KG
+ physicKg: Phy. KG
+ shipped: W. shipped
+ landed: W. landed
+ requiresInspection: Requires inspection
+ BIP: Boder Inspection Point
+ notes: Notes
+ filter:
+ id: Id
+ reference: Reference
+ totalEntries: Total entries
+ agencyModeFk: Agency
+ warehouseInFk: Warehouse In
+ warehouseOutFk: Warehouse Out
+ shippedFrom: Shipped from
+ landedTo: Landed to
+ cargoSupplierFk: Cargo supplier
+ continent: Continent out
+ entrySupplierFk: Supplier
diff --git a/src/pages/Travel/locale/es.yml b/src/pages/Travel/locale/es.yml
new file mode 100644
index 000000000..1542d8892
--- /dev/null
+++ b/src/pages/Travel/locale/es.yml
@@ -0,0 +1,23 @@
+extraCommunity:
+ cargoShip: Carguera
+ searchExtraCommunity: Buscar por envío extra comunitario
+ kg: KG Bloq.
+ physicKg: KG físico
+ shipped: F. envío
+ landed: F. llegada
+ notes: Notas
+ Open as PDF: Abrir como PDF
+ requiresInspection: Requiere inspección
+ BIP: Punto de Inspección Fronteriza
+ filter:
+ id: Id
+ reference: Referencia
+ totalEntries: Ent. totales
+ agencyModeFk: Agencia
+ warehouseInFk: Alm. entrada
+ warehouseOutFk: Alm. salida
+ shippedFrom: Llegada desde
+ landedTo: Llegada hasta
+ cargoSupplierFk: Carguera
+ continent: Cont. Salida
+ entrySupplierFk: Proveedor
diff --git a/src/pages/Zone/Card/ZoneBasicData.vue b/src/pages/Zone/Card/ZoneBasicData.vue
index b38d2749b..03013f011 100644
--- a/src/pages/Zone/Card/ZoneBasicData.vue
+++ b/src/pages/Zone/Card/ZoneBasicData.vue
@@ -25,7 +25,7 @@ const setFilteredAddresses = (data) => {
@on-fetch="(data) => (validAddresses = data)"
/>
-
+
{
:label="t('Name')"
clearable
v-model="data.name"
+ :required="true"
/>
@@ -83,7 +84,7 @@ const setFilteredAddresses = (data) => {
type="number"
min="0"
/>
-
+
@@ -92,7 +93,7 @@ const setFilteredAddresses = (data) => {
:label="t('Price')"
type="number"
min="0"
- required="true"
+ :required="true"
clearable
/>
{
:label="t('Price optimum')"
type="number"
min="0"
- required="true"
+ :required="true"
clearable
/>
diff --git a/src/pages/Zone/Card/ZoneCalendar.vue b/src/pages/Zone/Card/ZoneCalendar.vue
deleted file mode 100644
index e69de29bb..000000000
diff --git a/src/pages/Zone/ZoneFilterPanel.vue b/src/pages/Zone/ZoneFilterPanel.vue
index 3a35527ab..bbe12189a 100644
--- a/src/pages/Zone/ZoneFilterPanel.vue
+++ b/src/pages/Zone/ZoneFilterPanel.vue
@@ -38,7 +38,12 @@ const agencies = ref([]);
-
+
@@ -53,6 +58,7 @@ const agencies = ref([]);
dense
outlined
rounded
+ data-cy="zoneFilterPanelAgencySelect"
>
diff --git a/src/pages/Zone/ZoneList.vue b/src/pages/Zone/ZoneList.vue
index 1fa539c91..a82bbb285 100644
--- a/src/pages/Zone/ZoneList.vue
+++ b/src/pages/Zone/ZoneList.vue
@@ -65,7 +65,6 @@ const tableFilter = {
const columns = computed(() => [
{
- align: 'left',
name: 'id',
label: t('list.id'),
chip: {
@@ -75,6 +74,8 @@ const columns = computed(() => [
columnFilter: {
inWhere: true,
},
+ columnClass: 'shrink-column',
+ component: 'number',
},
{
align: 'left',
@@ -106,7 +107,6 @@ const columns = computed(() => [
format: (row, dashIfEmpty) => dashIfEmpty(row?.agencyMode?.name),
},
{
- align: 'left',
name: 'price',
label: t('list.price'),
cardVisible: true,
@@ -114,9 +114,11 @@ const columns = computed(() => [
columnFilter: {
inWhere: true,
},
+ columnClass: 'shrink-column',
+ component: 'number',
},
{
- align: 'left',
+ align: 'center',
name: 'hour',
label: t('list.close'),
cardVisible: true,
@@ -129,6 +131,7 @@ const columns = computed(() => [
label: t('list.addressFk'),
cardVisible: true,
columnFilter: false,
+ columnClass: 'expand',
},
{
align: 'right',
@@ -177,67 +180,73 @@ function formatRow(row) {
-
-
- {{ dashIfEmpty(formatRow(row)) }}
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+ {{ dashIfEmpty(formatRow(row)) }}
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -245,3 +254,20 @@ es:
Search zone: Buscar zona
You can search zones by id or name: Puedes buscar zonas por id o nombre
+
+
diff --git a/src/pages/Zone/ZoneUpcoming.vue b/src/pages/Zone/ZoneUpcoming.vue
index c74ae6078..adcdfbc04 100644
--- a/src/pages/Zone/ZoneUpcoming.vue
+++ b/src/pages/Zone/ZoneUpcoming.vue
@@ -56,7 +56,7 @@ onMounted(() => weekdayStore.initStore());
-
+
{
+ const agency = 'inhouse pickup';
beforeEach(() => {
cy.viewport(1280, 720);
cy.login('developer');
@@ -6,11 +7,15 @@ describe('ZoneList', () => {
});
it('should filter by agency', () => {
- cy.get('input[aria-label="Agency"]').type('{downArrow}{enter}');
+ cy.dataCy('zoneFilterPanelNameInput').type('{downArrow}{enter}');
});
it('should open the zone summary', () => {
- cy.get('input[aria-label="Name"]').type('zone refund');
- cy.get('.q-scrollarea__content > .q-btn--standard > .q-btn__content').click();
+ cy.dataCy('zoneFilterPanelAgencySelect').type(agency);
+ cy.get('.q-menu .q-item').contains(agency).click();
+ cy.get(':nth-child(1) > [data-col-field="agencyModeFk"]').should(
+ 'include.text',
+ agency,
+ );
});
});