- {{ invoiceIn.id }} - {{ invoiceIn.supplier?.name }}
+
+ {{ entity.id }} - {{ entity.supplier?.name }}
-
+
+
+
+
+
+
+
+
@@ -217,26 +235,26 @@ function getLink(param) {
- {{ invoiceIn.supplier?.name }}
-
+ {{ entity.supplier?.name }}
+
@@ -249,19 +267,19 @@ function getLink(param) {
@@ -273,17 +291,18 @@ function getLink(param) {
-
+
- {{ toCurrency(invoiceIn.totals.totalDueDay) }}
+ {{ toCurrency(entity.totals.totalDueDay) }}
-
+
@@ -339,19 +358,17 @@ function getLink(param) {
- {{ toCurrency(invoiceIn.totals.totalTaxableBase) }}
+ {{ toCurrency(entity.totals.totalTaxableBase) }}
- {{
- toCurrency(getTaxTotal(invoiceIn.invoiceInTax))
- }}
+ {{ toCurrency(getTaxTotal(entity.invoiceInTax)) }}
-
+
-
+
@@ -429,4 +446,5 @@ function getLink(param) {
Search invoice: Buscar factura recibida
You can search by invoice reference: Puedes buscar por referencia de la factura
Totals: Totales
+ To book: Contabilizar
diff --git a/src/pages/InvoiceIn/InvoiceInToBook.vue b/src/pages/InvoiceIn/InvoiceInToBook.vue
new file mode 100644
index 000000000..5dce2551a
--- /dev/null
+++ b/src/pages/InvoiceIn/InvoiceInToBook.vue
@@ -0,0 +1,62 @@
+
+
+
+
+
+es:
+ Are you sure you want to book this invoice?: ¿Estás seguro de querer asentar esta factura?
+ It was not able to book the invoice: No se pudo contabilizar la factura
+
diff --git a/test/cypress/integration/invoiceIn/invoiceInDescriptor.spec.js b/test/cypress/integration/invoiceIn/invoiceInDescriptor.spec.js
index 9f5209bdd..85fdc4b0a 100644
--- a/test/cypress/integration/invoiceIn/invoiceInDescriptor.spec.js
+++ b/test/cypress/integration/invoiceIn/invoiceInDescriptor.spec.js
@@ -1,7 +1,7 @@
describe('InvoiceInDescriptor', () => {
const saveDialog = '.q-btn--unelevated > .q-btn__content > .block';
const firstDescritorOpt = '.q-menu > .q-list > :nth-child(1) > .q-item__section';
-
+ const screen = '.q-drawer-container > .fullscreen';
it('should booking and unbooking the invoice properly', () => {
cy.login('developer');
cy.visit(`/#/invoice-in/1/summary?limit=10`);
@@ -10,6 +10,7 @@ describe('InvoiceInDescriptor', () => {
cy.openActionsDescriptor();
cy.get(firstDescritorOpt).click();
cy.get(saveDialog).click();
+ cy.get(screen).click();
cy.get('.q-checkbox').should('have.attr', 'aria-checked', 'true');
cy.openLeftMenu();