fix: refs #8441 update unassign invoice functionality and notifications
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
ef797a3675
commit
b8be248af9
|
@ -79,9 +79,13 @@ const columns = computed(() => [
|
|||
]);
|
||||
|
||||
async function unassignInvoice(id) {
|
||||
await axios.delete(`VehicleInvoiceIns/${id}`);
|
||||
notify(t('globals.dataSaved'), 'positive');
|
||||
tableRef.value.reload();
|
||||
try {
|
||||
await axios.delete(`VehicleInvoiceIns/${id}`);
|
||||
notify(t('vehicle.ticket.invoiceUnlinked'), 'positive');
|
||||
tableRef.value.reload();
|
||||
} catch (e) {
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
|
|
|
@ -21,5 +21,6 @@ vehicle:
|
|||
ticket:
|
||||
assignedInvoices: Assigned Invoices
|
||||
assignInvoice: Assign invoice
|
||||
invoiceUnlinked: Invoice unlinked
|
||||
unassignInvoice: Unassign invoice
|
||||
unassignInvoiceConfirmation: This invoice will be unassigned from this vehicle! Continue anyway?
|
||||
|
|
|
@ -21,5 +21,6 @@ vehicle:
|
|||
ticket:
|
||||
assignedInvoices: Facturas vinculadas
|
||||
assignInvoice: Vincular factura
|
||||
invoiceUnlinked: Factura desvinculada
|
||||
unassignInvoice: Desvincular factura
|
||||
unassignInvoiceConfirmation: Esta factura se desvinculará de este vehículo! ¿Continuar de todas formas?
|
||||
|
|
|
@ -17,7 +17,7 @@ route:
|
|||
clientFk: Id cliente
|
||||
countryFk: Pais
|
||||
warehouseFk: Almacén
|
||||
shipped: Fecha preparación
|
||||
shipped: F. preparación
|
||||
agencyModeName: Agencia Ruta
|
||||
agencyAgreement: Agencia Acuerdo
|
||||
issued: F. emisión
|
||||
|
@ -58,6 +58,6 @@ route:
|
|||
routeFk: Id ruta
|
||||
country: País
|
||||
clientFk: Id cliente
|
||||
shipped: Fecha preparación
|
||||
shipped: F. preparación
|
||||
viewCmr: Ver CMR
|
||||
downloadCmrs: Descargar CMRs
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
describe.only('Vehicle Invoice In', () => {
|
||||
describe('Vehicle Invoice In', () => {
|
||||
const selectors = {
|
||||
firstRowSupplier: 'tr:first-child > .expand > .no-padding > .link',
|
||||
firstRowInvoice:
|
||||
|
@ -42,7 +42,7 @@ describe.only('Vehicle Invoice In', () => {
|
|||
it('Should unassign an invoice', () => {
|
||||
cy.dataCy(selectors.unassignBtn).last().click();
|
||||
cy.clickConfirm();
|
||||
cy.checkNotification('Data saved');
|
||||
cy.checkNotification('Invoice unlinked');
|
||||
});
|
||||
|
||||
describe('Supplier pop-ups', () => {
|
||||
|
|
Loading…
Reference in New Issue