feat: refs # create vnCurrency
gitea/salix-front/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Jorge Penadés 2024-02-06 13:19:56 +01:00
parent 53a08724c3
commit 1883cb79ab
3 changed files with 30 additions and 2 deletions

View File

@ -28,6 +28,7 @@ const columns = computed(() => [
sortable: true,
tabIndex: 1,
align: 'left',
style: 'padding-bottom: 20px',
},
{
name: 'type',
@ -117,6 +118,7 @@ const onSave = (data) => data.deletes && router.push(`/invoice-in/${invoiceId}/s
<template #body-cell-type="{ row, col }">
<QTd>
<VnSelectFilter
class="q-pb-md"
v-model="row[col.model]"
:options="col.options"
:option-value="col.optionValue"
@ -128,6 +130,7 @@ const onSave = (data) => data.deletes && router.push(`/invoice-in/${invoiceId}/s
<template #body-cell-class="{ row, col }">
<QTd>
<VnSelectFilter
class="q-pb-md"
v-model="row[col.model]"
:options="col.options"
:option-value="col.optionValue"
@ -140,6 +143,7 @@ const onSave = (data) => data.deletes && router.push(`/invoice-in/${invoiceId}/s
<template #body-cell-reason="{ row, col }">
<QTd>
<VnSelectFilter
class="q-pb-md"
v-model="row[col.model]"
:options="col.options"
:option-value="col.optionValue"
@ -153,7 +157,7 @@ const onSave = (data) => data.deletes && router.push(`/invoice-in/${invoiceId}/s
</template>
</CrudModel>
</template>
<style scoped></style>
<style lang="scss" scoped></style>
<i18n>
es:
Original invoice: Factura origen

View File

@ -0,0 +1,20 @@
/// <reference types="cypress" />
describe('InvoiceInCorrective', () => {
const createRectificative = '.q-menu > .q-list > :nth-child(4) > .q-item__section';
const rectificativeSection = '.q-drawer-container .q-list > a:nth-child(6)';
it('should create a correcting invoice', () => {
cy.login('developer');
cy.visit(`/#/invoice-in/1/summary?limit=10`);
cy.openLeftMenu();
cy.openActionsDescriptor();
cy.get(createRectificative).click();
cy.clickConfirm();
cy.openLeftMenu();
cy.get(rectificativeSection).click();
cy.get('tbody > tr:visible').should('have.length', 1);
});
});

View File

@ -88,7 +88,7 @@ Cypress.Commands.add('addCard', () => {
});
Cypress.Commands.add('clickConfirm', () => {
cy.waitForElement('.q-dialog__inner > .q-card');
cy.get('.q-card__actions > .q-btn--unelevated > .q-btn__content > .block').click();
cy.get('.q-card > .q-card__actions > .q-btn--standard').click();
});
Cypress.Commands.add('notificationHas', (selector, text) => {
@ -187,4 +187,8 @@ Cypress.Commands.add('validateContent', (selector, expectedValue) => {
Cypress.Commands.add('clickFilterSearchBtn', () => {
cy.get('.q-item__section > .q-btn > .q-btn__content > .q-icon').click();
});
Cypress.Commands.add('openActionsDescriptor', () => {
cy.get('.descriptor > .header > .q-btn').click();
});
// registerCommands();