feat: refs # create vnCurrency
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
This commit is contained in:
parent
53a08724c3
commit
1883cb79ab
|
@ -28,6 +28,7 @@ const columns = computed(() => [
|
||||||
sortable: true,
|
sortable: true,
|
||||||
tabIndex: 1,
|
tabIndex: 1,
|
||||||
align: 'left',
|
align: 'left',
|
||||||
|
style: 'padding-bottom: 20px',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'type',
|
name: 'type',
|
||||||
|
@ -117,6 +118,7 @@ const onSave = (data) => data.deletes && router.push(`/invoice-in/${invoiceId}/s
|
||||||
<template #body-cell-type="{ row, col }">
|
<template #body-cell-type="{ row, col }">
|
||||||
<QTd>
|
<QTd>
|
||||||
<VnSelectFilter
|
<VnSelectFilter
|
||||||
|
class="q-pb-md"
|
||||||
v-model="row[col.model]"
|
v-model="row[col.model]"
|
||||||
:options="col.options"
|
:options="col.options"
|
||||||
:option-value="col.optionValue"
|
: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 }">
|
<template #body-cell-class="{ row, col }">
|
||||||
<QTd>
|
<QTd>
|
||||||
<VnSelectFilter
|
<VnSelectFilter
|
||||||
|
class="q-pb-md"
|
||||||
v-model="row[col.model]"
|
v-model="row[col.model]"
|
||||||
:options="col.options"
|
:options="col.options"
|
||||||
:option-value="col.optionValue"
|
: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 }">
|
<template #body-cell-reason="{ row, col }">
|
||||||
<QTd>
|
<QTd>
|
||||||
<VnSelectFilter
|
<VnSelectFilter
|
||||||
|
class="q-pb-md"
|
||||||
v-model="row[col.model]"
|
v-model="row[col.model]"
|
||||||
:options="col.options"
|
:options="col.options"
|
||||||
:option-value="col.optionValue"
|
:option-value="col.optionValue"
|
||||||
|
@ -153,7 +157,7 @@ const onSave = (data) => data.deletes && router.push(`/invoice-in/${invoiceId}/s
|
||||||
</template>
|
</template>
|
||||||
</CrudModel>
|
</CrudModel>
|
||||||
</template>
|
</template>
|
||||||
<style scoped></style>
|
<style lang="scss" scoped></style>
|
||||||
<i18n>
|
<i18n>
|
||||||
es:
|
es:
|
||||||
Original invoice: Factura origen
|
Original invoice: Factura origen
|
||||||
|
|
|
@ -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);
|
||||||
|
});
|
||||||
|
});
|
|
@ -88,7 +88,7 @@ Cypress.Commands.add('addCard', () => {
|
||||||
});
|
});
|
||||||
Cypress.Commands.add('clickConfirm', () => {
|
Cypress.Commands.add('clickConfirm', () => {
|
||||||
cy.waitForElement('.q-dialog__inner > .q-card');
|
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) => {
|
Cypress.Commands.add('notificationHas', (selector, text) => {
|
||||||
|
@ -187,4 +187,8 @@ Cypress.Commands.add('validateContent', (selector, expectedValue) => {
|
||||||
Cypress.Commands.add('clickFilterSearchBtn', () => {
|
Cypress.Commands.add('clickFilterSearchBtn', () => {
|
||||||
cy.get('.q-item__section > .q-btn > .q-btn__content > .q-icon').click();
|
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();
|
// registerCommands();
|
||||||
|
|
Loading…
Reference in New Issue