diff --git a/src/components/LeftMenu.vue b/src/components/LeftMenu.vue
index 0dfcc812e..51e99808b 100644
--- a/src/components/LeftMenu.vue
+++ b/src/components/LeftMenu.vue
@@ -70,7 +70,7 @@ function getRoutes() {
(route) => toLowerCamel(route.name) === item.module
);
if (!moduleDef) continue;
- if (!role.isEmployee()) continue;
+ // if (!role.isEmployee()) continue;
item.children = [];
addChildren(item.module, moduleDef, item.children);
diff --git a/src/composables/useRole.js b/src/composables/useRole.js
index 485687f16..d1a6d6ef3 100644
--- a/src/composables/useRole.js
+++ b/src/composables/useRole.js
@@ -28,7 +28,7 @@ export function useRole() {
return false;
}
function isEmployee() {
- return !hasAny(['employee']);
+ return hasAny(['employee']);
}
return {
diff --git a/src/pages/Entry/EntryBuysTableDialog.vue b/src/pages/Entry/EntryBuysTableDialog.vue
index c8056e6ac..4cec9a04b 100644
--- a/src/pages/Entry/EntryBuysTableDialog.vue
+++ b/src/pages/Entry/EntryBuysTableDialog.vue
@@ -17,6 +17,8 @@ import { useQuasar } from 'quasar';
import { toCurrency } from 'src/filters';
import axios from 'axios';
import useNotify from 'src/composables/useNotify.js';
+import { usePrintService } from 'composables/usePrintService';
+const { openReport } = usePrintService();
const quasar = useQuasar();
const route = useRoute();
@@ -31,18 +33,14 @@ const $props = defineProps({
},
});
const rowsSelected = ref([]);
+const entityId = computed(() => $props.id || route.params.id);
const entriesTableColumns = computed(() => [
{
align: 'left',
name: 'item',
label: t('entry.summary.item'),
- field: 'itemFk',
- format: (row) => row.item.name,
- // component: 'fetchedTags',
- // attrs: {
- // item: (row) => row.item,
- // },
+ field: (row) => row.item.name,
},
{
align: 'left',
@@ -90,8 +88,7 @@ const entriesTableColumns = computed(() => [
align: 'left',
name: 'buyingValue',
label: t('entry.summary.buyingValue'),
- field: 'buyingValue',
- format: ({ buyingValue }) => toCurrency(buyingValue),
+ field: ({ buyingValue }) => toCurrency(buyingValue),
},
{
align: 'left',
@@ -109,20 +106,9 @@ const entriesTableColumns = computed(() => [
align: 'left',
name: 'import',
label: t('entry.summary.import'),
- format: (row) => toCurrency(row.buyingValue * row.quantity),
+ field: (row) => toCurrency(row.buyingValue * row.quantity),
},
]);
-
-import { useArrayData } from 'src/composables/useArrayData';
-import VnTable from 'src/components/VnTable/VnTable.vue';
-
-const arrayData = useArrayData('EntryBuys');
-const { store } = arrayData;
-
-const entityId = computed(() => $props.id || route.params.id);
-// import EntryBuysTable from './EntryBuysTable.vue';
-store.userParams = {};
-onBeforeMount(() => {});
@@ -142,28 +128,49 @@ onBeforeMount(() => {});
-
-
+
+
+
+
+
+
+
+ {{ col.value }}
+
+
+
+
+
@@ -181,4 +188,5 @@ onBeforeMount(() => {});
es:
+ Print buys: Imprimir compras
diff --git a/src/pages/Entry/EntryList.vue b/src/pages/Entry/EntryList.vue
index c6c99a651..0933eb88a 100644
--- a/src/pages/Entry/EntryList.vue
+++ b/src/pages/Entry/EntryList.vue
@@ -125,7 +125,7 @@ const printBuys = (rowId) => {
type="submit"
/>
{
es:
+ Print buys: Imprimir compras
Inventory entry: Es inventario
Virtual entry: Es una redada
Search entries: Buscar entradas