fix: refs #7449 translations

This commit is contained in:
Pau Rovira 2025-04-29 08:07:49 +02:00
parent e10abbef92
commit 64decbfdbc
4 changed files with 16 additions and 14 deletions

View File

@ -157,7 +157,7 @@ async function saveAndGo() {
color="primary"
icon="save"
@click="saveAndGo"
data-cy="save-continue-note-button"
data-cy="saveContinueNoteButton"
/>
</Teleport>
<FetchData

View File

@ -78,8 +78,8 @@ const columns = computed(() => [
label: t('Quantity'),
field: ({ sale }) => sale.quantity,
sortable: true,
style: 'padding-right: 20px;',
headerStyle: 'padding-right: 20px;'
style: 'padding-right: 2%;',
headerStyle: 'padding-right: 2%;'
},
{
name: 'claimed',
@ -112,8 +112,8 @@ const columns = computed(() => [
field: ({ sale }) => totalRow(sale),
format: (value) => toCurrency(value),
sortable: true,
style: 'padding-right: 20px;',
headerStyle: 'padding-right: 20px;'
style: 'padding-right: 2%;',
headerStyle: 'padding-right: 2%;'
},
]);
@ -170,13 +170,13 @@ function fillClaimedQuantities() {
}
if (hasChanges) {
quasar.notify({
message: t('Cantidades rellenadas automáticamente'),
type: 'positive',
});
quasar.notify({
message: t('Quantities filled automatically'),
type: 'positive',
});
} else {
quasar.notify({
message: t('No hay cantidades para rellenar'),
message: t('No quantities to fill'),
type: 'info',
});
}
@ -212,7 +212,7 @@ function fillClaimedQuantities() {
<div class="q-pa-md">
<CrudModel
data-key="ClaimLines"
data-key="claimLines"
ref="claimLinesForm"
:go-to="`photos`"
:url="`Claims/${route.params.id}/lines`"
@ -392,6 +392,8 @@ es:
Delete claimed sales: Eliminar ventas reclamadas
Discount updated: Descuento actualizado
Claimed quantity: Cantidad reclamada
Quantities filled automatically: Cantidades rellenadas automáticamente
No quantities to fill: No hay cantidades para rellenar
You are about to remove {count} rows: '
Vas a eliminar <strong>{count}</strong> línea |
Vas a eliminar <strong>{count}</strong> líneas'

View File

@ -18,8 +18,8 @@ describe('ClaimLines', () => {
it('should autofill claimed quantity if 0 or null', () => {
cy.get('thead > tr > .q-table--col-auto-width > .q-checkbox > .q-checkbox__inner > .q-checkbox__bg').click();
cy.get('.q-btn--unelevated').click();
cy.checkNotification('Cantidades rellenadas automáticamente');
cy.checkNotification('Quantities filled automatically');
cy.get('.q-btn--unelevated').click();
cy.checkNotification('No hay cantidades para rellenar');
cy.checkNotification('No quantities to fill');
})
});

View File

@ -12,7 +12,7 @@ describe('ClaimNotes', () => {
.should('not.be.disabled')
.type(message, "{{enter}}");
cy.dataCy("save-continue-note-button").click();
cy.dataCy("saveContinueNoteButton").click();
cy.get(firstNote).should('have.text', message);
});
});