refactor: refs #8441 update notification messages for unlinking invoices
gitea/salix-front/pipeline/pr-dev There was a failure building this commit
Details
gitea/salix-front/pipeline/pr-dev There was a failure building this commit
Details
This commit is contained in:
parent
ea3a2c28cc
commit
99322a39e4
|
@ -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>
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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', () => {
|
||||
|
|
Loading…
Reference in New Issue