diff --git a/src/components/ui/VnLv.vue b/src/components/ui/VnLv.vue
index b8da70feb..9a17fca05 100644
--- a/src/components/ui/VnLv.vue
+++ b/src/components/ui/VnLv.vue
@@ -4,12 +4,12 @@ import { dashIfEmpty } from 'src/filters';
const $props = defineProps({
label: { type: String, default: null },
- value: { type: [Number, String, Boolean], default: null },
- titleLabel: { type: String, default: null },
- titleValue: { type: [Number, String, Boolean], default: null },
+ value: {
+ type: [String, Boolean],
+ default: null,
+ },
info: { type: String, default: null },
dash: { type: Boolean, default: true },
- ellipsisValue: { type: Boolean, default: true },
});
const isBooleanValue = computed(() => typeof $props.value === 'boolean');
@@ -17,10 +17,10 @@ const isBooleanValue = computed(() => typeof $props.value === 'boolean');
- {{ $props.label }}
+ {{ $props.label }}
-
+
typeof $props.value === 'boolean');
-
diff --git a/src/i18n/es/index.js b/src/i18n/es/index.js
index 83893ece4..7fcd2e9c6 100644
--- a/src/i18n/es/index.js
+++ b/src/i18n/es/index.js
@@ -405,7 +405,7 @@ export default {
pageTitles: {
invoiceIns: 'Fact. recibidas',
list: 'Listado',
- createInvoiceOut: 'Crear fact. recibida',
+ createInvoiceIn: 'Crear fact. recibida',
summary: 'Resumen',
basicData: 'Datos básicos',
vat: 'IVA',
diff --git a/src/pages/InvoiceIn/Card/InvoiceInBasicData.vue b/src/pages/InvoiceIn/Card/InvoiceInBasicData.vue
index 20144d8ca..4572c4c16 100644
--- a/src/pages/InvoiceIn/Card/InvoiceInBasicData.vue
+++ b/src/pages/InvoiceIn/Card/InvoiceInBasicData.vue
@@ -37,6 +37,10 @@ const inputFileRef = ref();
const editDmsRef = ref();
const createDmsRef = ref();
+const requiredFieldRule = (val) => val || t('Required field');
+const dateMask = '####-##-##';
+const fillMask = '_';
+
async function checkFileExists(dmsId) {
if (!dmsId) return;
try {
@@ -212,10 +216,14 @@ async function upsert() {
-
+
@@ -251,7 +259,7 @@ async function upsert() {
transition-show="scale"
transition-hide="scale"
>
-
+
@@ -342,7 +350,7 @@ async function upsert() {
transition-show="scale"
transition-hide="scale"
>
-
+
@@ -373,7 +381,7 @@ async function upsert() {
transition-show="scale"
transition-hide="scale"
>
-
+
@@ -464,7 +472,7 @@ async function upsert() {
option-value="id"
option-label="name"
@input-value="warehousesRef.fetch()"
- :rules="[(val) => val || t('Required field')]"
+ :rules="[requiredFieldRule]"
/>
@@ -564,7 +572,7 @@ async function upsert() {
option-value="id"
option-label="code"
@input-value="companiesRef.fetch()"
- :rules="[(val) => val || t('Required field')]"
+ :rules="[requiredFieldRule]"
/>
@@ -576,7 +584,7 @@ async function upsert() {
option-value="id"
option-label="name"
@input-value="warehousesRef.fetch()"
- :rules="[(val) => val || t('Required field')]"
+ :rules="[requiredFieldRule]"
/>