diff --git a/src/pages/Entry/MyEntries.vue b/src/pages/Entry/MyEntries.vue
new file mode 100644
index 000000000..d4b73b479
--- /dev/null
+++ b/src/pages/Entry/MyEntries.vue
@@ -0,0 +1,124 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ You can search by entry reference: Puedes buscar por referencia de la entrada
+
diff --git a/src/router/modules/entry.js b/src/router/modules/entry.js
index 67fc41824..4f5f05231 100644
--- a/src/router/modules/entry.js
+++ b/src/router/modules/entry.js
@@ -11,7 +11,7 @@ export default {
component: RouterView,
redirect: { name: 'EntryMain' },
menus: {
- main: ['EntryList', 'EntryLatestBuys'],
+ main: ['EntryList', 'MyEntries', 'EntryLatestBuys'],
card: ['EntryBasicData', 'EntryBuys', 'EntryNotes', 'EntryDms', 'EntryLog'],
},
children: [
@@ -30,6 +30,15 @@ export default {
},
component: () => import('src/pages/Entry/EntryList.vue'),
},
+ {
+ path: 'my',
+ name: 'MyEntries',
+ meta: {
+ title: 'labeler',
+ icon: 'sell',
+ },
+ component: () => import('src/pages/Entry/MyEntries.vue'),
+ },
{
path: 'create',
name: 'EntryCreate',
diff --git a/test/cypress/integration/entry/myEntry.spec.js b/test/cypress/integration/entry/myEntry.spec.js
new file mode 100644
index 000000000..8edd3a11c
--- /dev/null
+++ b/test/cypress/integration/entry/myEntry.spec.js
@@ -0,0 +1,20 @@
+describe('EntryMy when is supplier', () => {
+ beforeEach(() => {
+ cy.viewport(1920, 1080);
+ cy.login('supplier');
+ cy.visit(`/#/entry/my`, {
+ onBeforeLoad(win) {
+ cy.stub(win, 'open');
+ },
+ });
+ cy.waitForElement('.q-page', 6000);
+ });
+
+ it('should open buyLabel when is supplier', () => {
+ cy.get(
+ '[to="/null/2"] > .q-card > .column > .q-btn > .q-btn__content > .q-icon'
+ ).click();
+ cy.get('.q-card__actions > .q-btn').click();
+ cy.window().its('open').should('be.called');
+ });
+});