-
+
-
- {{ t('Close contract') }}
-
-
+
{{ t('Close contract') }}
+
-
-
-
- {{ t('Since') }}:
-
-
- {{ toDate(item.started) }}
-
-
-
-
- {{ t('To') }}:
-
-
- {{ toDate(item.finished) }}
-
-
+
+
+
-
+
-
-
- {{ t('Credit') }}:
-
-
- {{ item.insurances[0].credit }}
-
-
-
-
- {{ t('Grade') }}:
-
-
- {{ item.insurances[0].grade || '-' }}
-
-
-
-
- {{ t('Date') }}:
-
-
- {{ toDate(item.insurances[0].created) }}
-
-
-
-
- {{
- t('View credits')
- }}
-
+
+
+
+
+
@@ -187,11 +169,12 @@ const updateData = () => {
-
+
{
{{ t('New contract') }}
+
+
+
+
diff --git a/src/pages/Customer/Card/CustomerCreditContractsInsurance.vue b/src/pages/Customer/Card/CustomerCreditContractsInsurance.vue
new file mode 100644
index 000000000..aac195b36
--- /dev/null
+++ b/src/pages/Customer/Card/CustomerCreditContractsInsurance.vue
@@ -0,0 +1,93 @@
+
+
+
+
+
+
+
+es:
+ Created: Fecha creación
+ Grade: Grade
+ Credit: Crédito
+
diff --git a/src/pages/Customer/Card/CustomerFiscalData.vue b/src/pages/Customer/Card/CustomerFiscalData.vue
index f4efd03b6..aa5841ce2 100644
--- a/src/pages/Customer/Card/CustomerFiscalData.vue
+++ b/src/pages/Customer/Card/CustomerFiscalData.vue
@@ -99,7 +99,13 @@ async function acceptPropagate({ isEqualizated }) {
-
+
@@ -111,8 +117,6 @@ async function acceptPropagate({ isEqualizated }) {
option-value="id"
v-model="data.sageTaxTypeFk"
data-cy="sageTaxTypeFk"
- :required="data.isTaxDataChecked"
- :rules="[(val) => validations.required(data.isTaxDataChecked, val)]"
/>
diff --git a/src/pages/Customer/Card/CustomerUnpaid.vue b/src/pages/Customer/Card/CustomerUnpaid.vue
index f76e35821..4041e1efa 100644
--- a/src/pages/Customer/Card/CustomerUnpaid.vue
+++ b/src/pages/Customer/Card/CustomerUnpaid.vue
@@ -50,8 +50,11 @@ const filterClientFindOne = {
>
-
+
diff --git a/src/pages/Customer/Notifications/CustomerNotifications.vue b/src/pages/Customer/Notifications/CustomerNotifications.vue
index 84babe24d..f19434904 100644
--- a/src/pages/Customer/Notifications/CustomerNotifications.vue
+++ b/src/pages/Customer/Notifications/CustomerNotifications.vue
@@ -26,6 +26,7 @@ const columns = computed(() => [
url: 'Clients',
fields: ['id', 'socialName'],
optionLabel: 'socialName',
+ optionValue: 'socialName',
},
},
columnClass: 'expand',
@@ -37,8 +38,11 @@ const columns = computed(() => [
name: 'city',
columnFilter: {
component: 'select',
+ inWhere: true,
attrs: {
url: 'Towns',
+ optionValue: 'name',
+ optionLabel: 'name',
},
},
cardVisible: true,
@@ -94,7 +98,7 @@ const columns = computed(() => [
-
-
-
-
-
+
{
-
+
diff --git a/src/pages/Customer/components/CustomerCreditContractsInsurance.vue b/src/pages/Customer/components/CustomerCreditContractsInsurance.vue
deleted file mode 100644
index 70f7cf046..000000000
--- a/src/pages/Customer/components/CustomerCreditContractsInsurance.vue
+++ /dev/null
@@ -1,63 +0,0 @@
-
-
-
-
-
-
-
-es:
- Created: Fecha creación
- Grade: Grade
- Credit: Crédito
-
diff --git a/src/pages/Customer/components/CustomerFileManagementCreate.vue b/src/pages/Customer/components/CustomerFileManagementCreate.vue
index f33a47bcc..84933ea37 100644
--- a/src/pages/Customer/components/CustomerFileManagementCreate.vue
+++ b/src/pages/Customer/components/CustomerFileManagementCreate.vue
@@ -224,7 +224,7 @@ const toCustomerFileManagement = () => {
{{
`${t(
- 'Allowed content types'
+ 'Allowed content types',
)}: ${allowedContentTypes.join(', ')}`
}}
diff --git a/src/pages/Customer/components/CustomerFileManagementEdit.vue b/src/pages/Customer/components/CustomerFileManagementEdit.vue
index 107f41330..4e53672b4 100644
--- a/src/pages/Customer/components/CustomerFileManagementEdit.vue
+++ b/src/pages/Customer/components/CustomerFileManagementEdit.vue
@@ -200,7 +200,7 @@ const toCustomerFileManagement = () => {
{{
`${t(
- 'Allowed content types'
+ 'Allowed content types',
)}: ${allowedContentTypes.join(', ')}`
}}
diff --git a/src/pages/Customer/components/CustomerNewPayment.vue b/src/pages/Customer/components/CustomerNewPayment.vue
index fb3804d55..eb56f5fd2 100644
--- a/src/pages/Customer/components/CustomerNewPayment.vue
+++ b/src/pages/Customer/components/CustomerNewPayment.vue
@@ -130,20 +130,22 @@ async function onDataSaved(formData, { id }) {
}
}
-async function getSupplierClientReferences(value) {
- if (!value) return (initialData.description = '');
- const params = { bankAccount: value };
- const { data } = await axios(`Clients/getClientOrSupplierReference`, { params });
- if (!data.clientId) {
- initialData.description = t('Supplier Compensation Reference', {
- supplierId: data.supplierId,
- supplierName: data.supplierName,
+async function getSupplierClientReferences(data) {
+ if (!data) return (initialData.description = '');
+ const params = { bankAccount: data.compensationAccount };
+ const { data: reference } = await axios(`Clients/getClientOrSupplierReference`, {
+ params,
+ });
+ if (reference.supplierId) {
+ data.description = t('Supplier Compensation Reference', {
+ supplierId: reference.supplierId,
+ supplierName: reference.supplierName,
});
return;
}
- initialData.description = t('Client Compensation Reference', {
- clientId: data.clientId,
- clientName: data.clientName,
+ data.description = t('Client Compensation Reference', {
+ clientId: reference.clientId,
+ clientName: reference.clientName,
});
}
@@ -222,6 +224,7 @@ async function getAmountPaid() {
clearable
v-model.number="data.amountPaid"
data-cy="paymentAmount"
+ :positive="false"
/>
@@ -251,7 +254,7 @@ async function getAmountPaid() {
:label="t('Compensation account')"
clearable
v-model="data.compensationAccount"
- @blur="getSupplierClientReferences(data.compensationAccount)"
+ @blur="getSupplierClientReferences(data)"
/>
@@ -287,6 +290,9 @@ async function getAmountPaid() {