({
const entriesTableColumns = computed(() => {
return [
{
- label: t('entry.summary.item'),
+ label: t('globals.item'),
field: 'itemFk',
name: 'item',
align: 'left',
},
{
- label: t('entry.summary.quantity'),
+ label: t('globals.quantity'),
field: 'quantity',
name: 'quantity',
align: 'left',
@@ -187,7 +186,7 @@ const entriesTableColumns = computed(() => {
align: 'left',
},
{
- label: t('entry.summary.weight'),
+ label: t('globals.weight'),
field: 'weight',
name: 'weight',
align: 'left',
@@ -212,13 +211,13 @@ const entriesTableColumns = computed(() => {
format: (value) => toCurrency(value),
},
{
- label: t('entry.buys.groupingPrice'),
+ label: t('item.fixedPrice.groupingPrice'),
field: 'price2',
name: 'price2',
align: 'left',
},
{
- label: t('entry.buys.packingPrice'),
+ label: t('item.fixedPrice.packingPrice'),
field: 'price3',
name: 'price3',
align: 'left',
diff --git a/src/pages/Entry/Card/EntryBuysImport.vue b/src/pages/Entry/Card/EntryBuysImport.vue
index 8431e1096..c03b7756f 100644
--- a/src/pages/Entry/Card/EntryBuysImport.vue
+++ b/src/pages/Entry/Card/EntryBuysImport.vue
@@ -35,7 +35,7 @@ const packagingsOptions = ref([]);
const columns = computed(() => [
{
- label: t('entry.buys.item'),
+ label: t('globals.item'),
name: 'item',
field: 'itemFk',
options: lastItemBuysOptions.value,
@@ -56,19 +56,19 @@ const columns = computed(() => [
align: 'left',
},
{
- label: t('entry.buys.packing'),
+ label: t('entry.summary.packing'),
name: 'packing',
field: 'packing',
align: 'left',
},
{
- label: t('entry.buys.grouping'),
+ label: t('entry.summary.grouping'),
name: 'grouping',
field: 'grouping',
align: 'left',
},
{
- label: t('entry.buys.buyingValue'),
+ label: t('entry.summary.buyingValue'),
name: 'buyingValue',
field: 'buyingValue',
align: 'left',
@@ -200,7 +200,7 @@ const redirectToBuysView = () => {
{
-
+
{
-
+
diff --git a/src/pages/Entry/Card/EntrySummary.vue b/src/pages/Entry/Card/EntrySummary.vue
index 62e13551a..d88f19417 100644
--- a/src/pages/Entry/Card/EntrySummary.vue
+++ b/src/pages/Entry/Card/EntrySummary.vue
@@ -84,7 +84,7 @@ const tableColumnComponents = {
const entriesTableColumns = computed(() => {
return [
{
- label: t('entry.summary.quantity'),
+ label: t('globals.quantity'),
field: 'quantity',
name: 'quantity',
align: 'left',
@@ -102,7 +102,7 @@ const entriesTableColumns = computed(() => {
align: 'left',
},
{
- label: t('entry.summary.weight'),
+ label: t('globals.weight'),
field: 'weight',
name: 'weight',
align: 'left',
@@ -188,8 +188,8 @@ const fetchEntryBuys = async () => {
:label="t('entry.summary.currency')"
:value="entry.currency?.name"
/>
-
-
+
+
{
/>
{
/>
{
:disable="true"
/>
diff --git a/src/pages/Entry/EntryBuysTableDialog.vue b/src/pages/Entry/EntryBuysTableDialog.vue
index 23a6a0021..c885c2485 100644
--- a/src/pages/Entry/EntryBuysTableDialog.vue
+++ b/src/pages/Entry/EntryBuysTableDialog.vue
@@ -35,7 +35,7 @@ const entriesTableColumns = computed(() => [
{
align: 'left',
name: 'item',
- label: t('entry.summary.item'),
+ label: t('globals.item'),
field: (row) => row.item.name,
},
{
diff --git a/src/pages/Entry/EntryLatestBuys.vue b/src/pages/Entry/EntryLatestBuys.vue
index 119808176..9f15130c0 100644
--- a/src/pages/Entry/EntryLatestBuys.vue
+++ b/src/pages/Entry/EntryLatestBuys.vue
@@ -40,7 +40,7 @@ const columns = [
},
{
align: 'left',
- label: t('entry.latestBuys.tableVisibleColumns.packing'),
+ label: t('entry.summary.packing'),
name: 'packing',
columnFilter: {
component: 'number',
@@ -49,7 +49,7 @@ const columns = [
},
{
align: 'left',
- label: t('entry.latestBuys.tableVisibleColumns.grouping'),
+ label: t('entry.summary.grouping'),
name: 'grouping',
columnFilter: {
component: 'number',
@@ -58,7 +58,7 @@ const columns = [
},
{
align: 'left',
- label: t('entry.latestBuys.tableVisibleColumns.quantity'),
+ label: t('globals.quantity'),
name: 'quantity',
columnFilter: {
component: 'number',
@@ -67,12 +67,12 @@ const columns = [
},
{
align: 'left',
- label: t('entry.latestBuys.tableVisibleColumns.description'),
+ label: t('globals.description'),
name: 'description',
},
{
align: 'left',
- label: t('entry.latestBuys.tableVisibleColumns.size'),
+ label: t('globals.size'),
name: 'size',
columnFilter: {
component: 'number',
@@ -81,27 +81,27 @@ const columns = [
},
{
align: 'left',
- label: t('entry.latestBuys.tableVisibleColumns.tags'),
+ label: t('globals.tags'),
name: 'tags',
},
{
align: 'left',
- label: t('entry.latestBuys.tableVisibleColumns.type'),
+ label: t('globals.type'),
name: 'type',
},
{
align: 'left',
- label: t('entry.latestBuys.tableVisibleColumns.intrastat'),
+ label: t('globals.intrastat'),
name: 'intrastat',
},
{
align: 'left',
- label: t('entry.latestBuys.tableVisibleColumns.origin'),
+ label: t('globals.origin'),
name: 'origin',
},
{
align: 'left',
- label: t('entry.latestBuys.tableVisibleColumns.weightByPiece'),
+ label: t('globals.weightByPiece'),
name: 'weightByPiece',
columnFilter: {
component: 'number',
@@ -129,7 +129,7 @@ const columns = [
},
{
align: 'left',
- label: t('entry.latestBuys.tableVisibleColumns.buyingValue'),
+ label: t('entry.summary.buyingValue'),
name: 'buyingValue',
columnFilter: {
component: 'number',
@@ -156,7 +156,7 @@ const columns = [
},
{
align: 'left',
- label: t('entry.latestBuys.tableVisibleColumns.packageValue'),
+ label: t('entry.buys.packageValue'),
name: 'packageValue',
columnFilter: {
component: 'number',
@@ -202,7 +202,7 @@ const columns = [
},
{
align: 'left',
- label: t('entry.latestBuys.tableVisibleColumns.weight'),
+ label: t('globals.weight'),
name: 'weight',
columnFilter: {
component: 'number',
@@ -211,7 +211,7 @@ const columns = [
},
{
align: 'left',
- label: t('entry.latestBuys.tableVisibleColumns.packagingFk'),
+ label: t('entry.buys.packagingFk'),
name: 'packagingFk',
columnFilter: {
component: 'number',
diff --git a/src/pages/Entry/EntryList.vue b/src/pages/Entry/EntryList.vue
index a9c25af43..3487f86c0 100644
--- a/src/pages/Entry/EntryList.vue
+++ b/src/pages/Entry/EntryList.vue
@@ -47,14 +47,14 @@ const columns = computed(() => [
},
{
align: 'left',
- label: t('entry.list.tableVisibleColumns.id'),
+ label: t('globals.id'),
name: 'id',
isTitle: true,
cardVisible: true,
},
{
align: 'left',
- label: t('entry.list.tableVisibleColumns.reference'),
+ label: t('globals.reference'),
name: 'reference',
isTitle: true,
component: 'input',
diff --git a/src/pages/Entry/EntryStockBought.vue b/src/pages/Entry/EntryStockBought.vue
index 7ae6901d3..3f0cd2d99 100644
--- a/src/pages/Entry/EntryStockBought.vue
+++ b/src/pages/Entry/EntryStockBought.vue
@@ -99,7 +99,7 @@ const travelDialogRef = ref(false);
const tableRef = ref();
const travel = ref(null);
const userParams = ref({
- dated: Date.vnNew(),
+ dated: Date.vnNew().toJSON(),
});
const filter = ref({
@@ -219,6 +219,7 @@ function round(value) {
data-key="StockBoughts"
url="StockBoughts/getStockBought"
save-url="StockBoughts/crud"
+ search-url="StockBoughts"
order="reserve DESC"
:right-search="false"
:is-editable="true"
diff --git a/src/pages/Entry/EntryStockBoughtDetail.vue b/src/pages/Entry/EntryStockBoughtDetail.vue
index 0fd775ee6..812171825 100644
--- a/src/pages/Entry/EntryStockBoughtDetail.vue
+++ b/src/pages/Entry/EntryStockBoughtDetail.vue
@@ -18,7 +18,7 @@ const $props = defineProps({
required: true,
},
});
-const customUrl = `StockBoughts/getStockBoughtDetail?workerFk=${$props.workerFk}&date=${$props.dated}`;
+const customUrl = `StockBoughts/getStockBoughtDetail?workerFk=${$props.workerFk}&dated=${$props.dated}`;
const columns = [
{
align: 'left',
diff --git a/src/pages/Entry/EntryStockBoughtFilter.vue b/src/pages/Entry/EntryStockBoughtFilter.vue
index 7694cfe6c..e59332064 100644
--- a/src/pages/Entry/EntryStockBoughtFilter.vue
+++ b/src/pages/Entry/EntryStockBoughtFilter.vue
@@ -27,7 +27,7 @@ onMounted(async () => {
@@ -36,12 +36,19 @@ onMounted(async () => {
{{ formatFn(tag.value) }}