diff --git a/src/components/common/VnCurrency.vue b/src/components/common/VnCurrency.vue
index a97eb196a..0466f7e3a 100644
--- a/src/components/common/VnCurrency.vue
+++ b/src/components/common/VnCurrency.vue
@@ -2,7 +2,6 @@
import { computed } from 'vue';
import { useI18n } from 'vue-i18n';
import { useCapitalize } from 'src/composables/useCapitalize';
-import { useValidNumber } from 'src/composables/useValidNumber';
import VnInput from 'src/components/common/VnInput.vue';
const props = defineProps({
@@ -19,15 +18,16 @@ const amount = computed({
return props.modelValue;
},
set(val) {
- emit('update:modelValue', val.replaceAll(',', '.'));
+ emit('update:modelValue', val);
},
});
@@ -35,11 +35,6 @@ const amount = computed({
-
es:
amount: importe
diff --git a/src/composables/useValidNumber.js b/src/composables/useValidNumber.js
deleted file mode 100644
index 32b1aba04..000000000
--- a/src/composables/useValidNumber.js
+++ /dev/null
@@ -1,3 +0,0 @@
-export function useValidNumber(value) {
- return /^(\d|\d+(\.)?\d+)$/.test(value);
-}
diff --git a/src/pages/InvoiceIn/Card/InvoiceInDueDay.vue b/src/pages/InvoiceIn/Card/InvoiceInDueDay.vue
index 48c166191..edfd93a2e 100644
--- a/src/pages/InvoiceIn/Card/InvoiceInDueDay.vue
+++ b/src/pages/InvoiceIn/Card/InvoiceInDueDay.vue
@@ -8,6 +8,7 @@ import { useArrayData } from 'src/composables/useArrayData';
import CrudModel from 'src/components/CrudModel.vue';
import FetchData from 'src/components/FetchData.vue';
import VnSelectFilter from 'src/components/common/VnSelectFilter.vue';
+import VnCurrency from 'src/components/common/VnCurrency.vue';
const route = useRoute();
const { t } = useI18n();
@@ -158,9 +159,9 @@ async function insert() {
-
diff --git a/test/cypress/integration/invoiceIn/invoiceInList.spec.js b/test/cypress/integration/invoiceIn/invoiceInList.spec.js
index b96fd0cf2..ce79dc976 100644
--- a/test/cypress/integration/invoiceIn/invoiceInList.spec.js
+++ b/test/cypress/integration/invoiceIn/invoiceInList.spec.js
@@ -5,10 +5,12 @@ describe('InvoiceInList', () => {
':nth-child(1) > :nth-child(1) > .justify-between > .flex > .q-chip > .q-chip__content';
const firstDetailBtn = '.q-card:nth-child(1) .q-btn:nth-child(2)';
const summaryHeaders = '.summaryBody .header';
+ const screen = '.q-page-container > .q-drawer-container > .fullscreen';
beforeEach(() => {
cy.login('developer');
cy.visit(`/#/invoice-in/list`);
+ cy.get(screen).click();
});
it('should redirect on clicking a invoice', () => {