-
+
+
+
+ {{ t('Booked trucks') }}:
+
- {{ t('Booked trucks') + ': ' + travel[0]?.m3 }}
+ {{ travel[0]?.m3 }}
+
+
+
+
+
+
+
+
{
:create="{
urlCreate: 'StockBoughts',
title: t('Reserve some space'),
- onDataSaved: () => {
- tableRef.reload();
- fetchDataRef.reload();
- },
+ onDataSaved: () => tableRef.reload(),
formInitialData: {
workerFk: user.id,
dated: Date.vnNow(),
@@ -214,17 +219,14 @@ const setUserParams = async ({ dated }) => {
{{ row?.worker?.user?.name }}
-
-
+ 0
-
diff --git a/src/pages/Entry/EntryStockBoughtDetail.vue b/src/pages/Entry/EntryStockBoughtDetail.vue
index b9420af718..6d9227ad23 100644
--- a/src/pages/Entry/EntryStockBoughtDetail.vue
+++ b/src/pages/Entry/EntryStockBoughtDetail.vue
@@ -14,7 +14,7 @@ const $props = defineProps({
required: true,
},
dated: {
- type: String,
+ type: Date,
required: true,
},
});
@@ -63,34 +63,46 @@ const columns = [
];
-
-
-
-
- {{ row?.entryFk }}
-
-
-
-
-
- {{ row?.itemName }}
-
-
-
-
+
+
+
+
+
+ {{ row?.entryFk }}
+
+
+
+
+
+ {{ row?.itemName }}
+
+
+
+
+
+
es:
Buyer: Comprador
diff --git a/src/pages/Entry/EntryStockBoughtFilter.vue b/src/pages/Entry/EntryStockBoughtFilter.vue
index aaf9e7a5b3..7694cfe6c4 100644
--- a/src/pages/Entry/EntryStockBoughtFilter.vue
+++ b/src/pages/Entry/EntryStockBoughtFilter.vue
@@ -1,11 +1,9 @@
- (companiesOptions = data)"
- auto-load
- />
@@ -52,13 +39,25 @@ onMounted(async () => {
-
+
+ en:
+ params:
+ dated: Date
+ workerFk: Worker
es:
Date: Fecha
+ params:
+ dated: Date
+ workerFk: Trabajador
diff --git a/test/cypress/integration/entry/stockBought.spec.js b/test/cypress/integration/entry/stockBought.spec.js
index a18e2bd2e2..b93afa520a 100644
--- a/test/cypress/integration/entry/stockBought.spec.js
+++ b/test/cypress/integration/entry/stockBought.spec.js
@@ -1,15 +1,13 @@
describe('EntryStockBought', () => {
- const reserveField = 'input[name="reserve"]';
beforeEach(() => {
cy.viewport(1920, 1080);
cy.login('buyer');
- cy.visit(
- `/#/entry/stock-Bought?table={"filter":"{}","dated":"2000-12-31T23:00:00.000Z"}`
- );
+ cy.visit(`/#/entry/stock-Bought`);
});
it('Should edit the reserved space', () => {
+ cy.get('.q-field__native.q-placeholder').should('have.value', '01/01/2001');
cy.get('tBody > tr').its('length').should('eq', 2);
- cy.get(reserveField).type('10{enter}');
+ cy.get('input[name="reserve"]').type('10{enter}');
cy.get('button[title="Save"]').click();
cy.get('.q-notification__message').should('have.text', 'Data saved');
});
@@ -33,4 +31,11 @@ describe('EntryStockBought', () => {
'warningNo data available'
);
});
+ it('Should edit travel m3 and refresh', () => {
+ cy.get('.vn-row > div > .q-btn > .q-btn__content > .q-icon').click();
+ cy.get('input[aria-label="m3"]').clear();
+ cy.get('input[aria-label="m3"]').type('60');
+ cy.get('.q-mt-lg > .q-btn--standard > .q-btn__content > .block').click();
+ cy.get('.vn-row > div > :nth-child(2)').should('have.text', '60');
+ });
});