diff --git a/src/components/common/VnCard.vue b/src/components/common/VnCard.vue
index 03a7ce7da..a7fe651ad 100644
--- a/src/components/common/VnCard.vue
+++ b/src/components/common/VnCard.vue
@@ -8,7 +8,6 @@ import VnSubToolbar from '../ui/VnSubToolbar.vue';
import VnSearchbar from 'components/ui/VnSearchbar.vue';
import LeftMenu from 'components/LeftMenu.vue';
import RightMenu from 'components/common/RightMenu.vue';
-
const props = defineProps({
dataKey: { type: String, required: true },
baseUrl: { type: String, default: undefined },
@@ -74,7 +73,7 @@ if (props.baseUrl) {
-
+
diff --git a/src/pages/InvoiceIn/Card/InvoiceInDueDay.vue b/src/pages/InvoiceIn/Card/InvoiceInDueDay.vue
index 7dbd0fe9e..62beb88ad 100644
--- a/src/pages/InvoiceIn/Card/InvoiceInDueDay.vue
+++ b/src/pages/InvoiceIn/Card/InvoiceInDueDay.vue
@@ -18,6 +18,7 @@ const { notify } = useNotify();
const { t } = useI18n();
const arrayData = useArrayData();
const invoiceIn = computed(() => arrayData.store.data);
+const currency = computed(() => invoiceIn.value?.currency?.code);
const rowsSelected = ref([]);
const banks = ref([]);
@@ -139,9 +140,9 @@ const getTotalAmount = (rows) => rows.reduce((acc, { amount }) => acc + +amount,
rows.reduce((acc, { amount }) => acc + +amount,
- {{
- toCurrency(getTotalAmount(rows), invoiceIn.currency.code)
- }}
+ {{ toCurrency(getTotalAmount(rows), currency) }}
@@ -208,11 +207,9 @@ const getTotalAmount = (rows) => rows.reduce((acc, { amount }) => acc + +amount,
:label="t('Foreign value')"
class="full-width"
:class="{
- 'no-pointer-events': !isNotEuro(
- invoiceIn.currency.code
- ),
+ 'no-pointer-events': !isNotEuro(currency),
}"
- :disable="!isNotEuro(invoiceIn.currency.code)"
+ :disable="!isNotEuro(currency)"
v-model="props.row.foreignValue"
clearable
clear-icon="close"
diff --git a/src/pages/InvoiceIn/Card/InvoiceInVat.vue b/src/pages/InvoiceIn/Card/InvoiceInVat.vue
index 4dac5058e..34b0b64bd 100644
--- a/src/pages/InvoiceIn/Card/InvoiceInVat.vue
+++ b/src/pages/InvoiceIn/Card/InvoiceInVat.vue
@@ -242,11 +242,12 @@ const formatOpt = (row, { model, options }, prop) => {
+ {{ currency }}
{
@@ -361,12 +362,10 @@ const formatOpt = (row, { model, options }, prop) => {
{
:label="t('Foreign value')"
class="full-width"
:class="{
- 'no-pointer-events': !isNotEuro(
- invoiceIn.currency.code
- ),
+ 'no-pointer-events': !isNotEuro(currency),
}"
- :disable="!isNotEuro(invoiceIn.currency.code)"
+ :disable="!isNotEuro(currency)"
v-model="props.row.foreignValue"
/>
diff --git a/src/pages/Shelving/Card/ShelvingForm.vue b/src/pages/Shelving/Card/ShelvingForm.vue
index dd1c4e4a2..46a54350c 100644
--- a/src/pages/Shelving/Card/ShelvingForm.vue
+++ b/src/pages/Shelving/Card/ShelvingForm.vue
@@ -1,6 +1,6 @@
-
+
{
auto-load
/>