refactor: refs #8441 update notification messages for unlinking invoices
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details

This commit is contained in:
Jose Antonio Tubau 2025-03-27 14:29:05 +01:00
parent ea3a2c28cc
commit 99322a39e4
4 changed files with 9 additions and 5 deletions

View File

@ -81,10 +81,10 @@ const columns = computed(() => [
async function unassignInvoice(id) {
try {
await axios.delete(`VehicleInvoiceIns/${id}`);
notify(t('vehicle.ticket.invoiceUnlinked'), 'positive');
notify(t('vehicle.ticket.unlinkedInvoice'), 'positive');
tableRef.value.reload();
} catch (e) {
throw e;
notify('route.errors.invoiceUnlinked', 'negative');
}
}
</script>

View File

@ -21,6 +21,8 @@ vehicle:
ticket:
assignedInvoices: Assigned Invoices
assignInvoice: Assign invoice
invoiceUnlinked: Invoice unlinked
unlinkedInvoice: Unlinked invoice
unassignInvoice: Unassign invoice
unassignInvoiceConfirmation: This invoice will be unassigned from this vehicle! Continue anyway?
errors:
invoiceUnlinked: Error occurred while unlinking invoice

View File

@ -21,6 +21,8 @@ vehicle:
ticket:
assignedInvoices: Facturas vinculadas
assignInvoice: Vincular factura
invoiceUnlinked: Factura desvinculada
unlinkedInvoice: Factura desvinculada
unassignInvoice: Desvincular factura
unassignInvoiceConfirmation: Esta factura se desvinculará de este vehículo! ¿Continuar de todas formas?
errors:
invoiceUnlinked: Se ha producido un error al desvincular la factura

View File

@ -44,7 +44,7 @@ describe('Vehicle Invoice In', () => {
it('Should unassign an invoice', () => {
cy.dataCy(selectors.unassignBtn).should('be.visible').last().click();
cy.clickConfirm();
cy.checkNotification('Invoice unlinked');
cy.checkNotification('Unlinked invoice');
});
describe('Supplier pop-ups', () => {