diff --git a/src/i18n/en/index.js b/src/i18n/en/index.js
index 73cd207a0..863375043 100644
--- a/src/i18n/en/index.js
+++ b/src/i18n/en/index.js
@@ -154,6 +154,7 @@ export default {
customerId: 'Claim ID',
salesPerson: 'Sales person',
credit: 'Credit',
+ risk: 'Risk',
securedCredit: 'Secured credit',
payMethod: 'Pay method',
debt: 'Debt',
diff --git a/src/i18n/es/index.js b/src/i18n/es/index.js
index 931266fd9..e92ab8ce6 100644
--- a/src/i18n/es/index.js
+++ b/src/i18n/es/index.js
@@ -153,6 +153,7 @@ export default {
customerId: 'ID cliente',
salesPerson: 'Comercial',
credit: 'Crédito',
+ risk: 'Riesgo',
securedCredit: 'Crédito asegurado',
payMethod: 'Método de pago',
debt: 'Riesgo',
diff --git a/src/pages/Customer/Card/CustomerContacts.vue b/src/pages/Customer/Card/CustomerContacts.vue
index 35a561268..fffbf6147 100644
--- a/src/pages/Customer/Card/CustomerContacts.vue
+++ b/src/pages/Customer/Card/CustomerContacts.vue
@@ -77,9 +77,20 @@ const onSubmit = async () => {
+
+
+
+
-
+
{
-
-
-
-
- {{ t('Add contact') }}
-
-
-
-
-
-
+
+
+ {{ t('Add contact') }}
+
+
diff --git a/src/pages/Customer/Card/CustomerDescriptor.vue b/src/pages/Customer/Card/CustomerDescriptor.vue
index 807676a06..97bfdefb8 100644
--- a/src/pages/Customer/Card/CustomerDescriptor.vue
+++ b/src/pages/Customer/Card/CustomerDescriptor.vue
@@ -57,7 +57,21 @@ const setData = (entity) => (data.value = useCardDescription(entity.name, entity
/>
-
+
+
+
+
+ {{ t('info') }}
+
+
(data.value = useCardDescription(entity.name, entity
{
"en": {
"ticketList": "Customer ticket list",
- "invoiceOutList": "Customer invoice out list"
+ "invoiceOutList": "Customer invoice out list",
+ "info": "Invoices minus payments plus orders not yet"
},
"es": {
"ticketList": "Listado de tickets del cliente",
- "invoiceOutList": "Listado de facturas del cliente"
+ "invoiceOutList": "Listado de facturas del cliente",
+ "info": "Facturas menos recibos mas pedidos sin facturar"
}
}
diff --git a/src/pages/Customer/Card/CustomerWebAccess.vue b/src/pages/Customer/Card/CustomerWebAccess.vue
index a077ca2fc..1dacba99e 100644
--- a/src/pages/Customer/Card/CustomerWebAccess.vue
+++ b/src/pages/Customer/Card/CustomerWebAccess.vue
@@ -45,16 +45,17 @@ const showChangePasswordDialog = () => {
componentProps: {
id: route.params.id,
userPasswords: userPasswords.value,
- promise: getData,
+ promise: usersPreviewRef.value.fetch(),
},
});
};
-const getData = (data) => {
- active.value = data[0].active;
- email.value = data[0].email;
- name.value = data[0].name;
- user.value = data[0];
+const setInitialData = () => {
+ if (user.value.length) {
+ active.value = user.value[0].active;
+ email.value = user.value[0].email;
+ name.value = user.value[0].name;
+ }
};
const onSubmit = async () => {
@@ -80,7 +81,12 @@ const onSubmit = async () => {
{
+ user = data;
+ setInitialData();
+ }
+ "
auto-load
ref="usersPreviewRef"
url="VnUsers/preview"
@@ -96,9 +102,42 @@ const onSubmit = async () => {
url="UserPasswords"
/>
+
+
+
+
+
+
+
+
-
+
@@ -129,35 +168,6 @@ const onSubmit = async () => {
-
-
-
-
-
-
diff --git a/src/pages/Customer/components/CustomerAddressCreate.vue b/src/pages/Customer/components/CustomerAddressCreate.vue
index f296b71f7..c234e721f 100644
--- a/src/pages/Customer/components/CustomerAddressCreate.vue
+++ b/src/pages/Customer/components/CustomerAddressCreate.vue
@@ -95,6 +95,16 @@ const toCustomerAddress = () => {
@on-data-saved="toCustomerAddress()"
model="client"
>
+
+
+
+
diff --git a/src/pages/Customer/components/CustomerAddressEdit.vue b/src/pages/Customer/components/CustomerAddressEdit.vue
index 799bd6398..b4c839d31 100644
--- a/src/pages/Customer/components/CustomerAddressEdit.vue
+++ b/src/pages/Customer/components/CustomerAddressEdit.vue
@@ -1,7 +1,7 @@
@@ -138,6 +149,16 @@ const onDataSaved = () => {
auto-load
model="client"
>
+
+
+
+
diff --git a/src/pages/Customer/components/CustomerCreditContractsCreate.vue b/src/pages/Customer/components/CustomerCreditContractsCreate.vue
index 40a41030d..d8361faa7 100644
--- a/src/pages/Customer/components/CustomerCreditContractsCreate.vue
+++ b/src/pages/Customer/components/CustomerCreditContractsCreate.vue
@@ -16,8 +16,8 @@ const initialData = reactive({
clientFK: Number(route.params.id),
});
-const onDataSaved = () => {
- router.push({ name: 'CustomerCreditContractsCreate' });
+const toCustomerCreditContracts = () => {
+ router.push({ name: 'CustomerCreditContracts' });
};
@@ -27,8 +27,18 @@ const onDataSaved = () => {
:observe-form-changes="false"
:default-actions="true"
url-create="creditClassifications/createWithInsurance"
- @on-data-saved="onDataSaved()"
+ @on-data-saved="toCustomerCreditContracts()"
>
+
+
+
+
diff --git a/src/pages/Customer/components/CustomerCreditCreate.vue b/src/pages/Customer/components/CustomerCreditCreate.vue
index 053f0d18a..aae6a8c2a 100644
--- a/src/pages/Customer/components/CustomerCreditCreate.vue
+++ b/src/pages/Customer/components/CustomerCreditCreate.vue
@@ -31,6 +31,16 @@ const toCustomerCredits = () => {
:url-update="`/Clients/${route.params.id}`"
@on-data-saved="toCustomerCredits()"
>
+
+
+
+
diff --git a/src/pages/Customer/components/CustomerFileManagementCreate.vue b/src/pages/Customer/components/CustomerFileManagementCreate.vue
index eeddd0d76..6d76c2b72 100644
--- a/src/pages/Customer/components/CustomerFileManagementCreate.vue
+++ b/src/pages/Customer/components/CustomerFileManagementCreate.vue
@@ -26,6 +26,7 @@ const filterFindOne = { where: { code: 'paymentsLaw' } };
const filterCompanies = { order: ['code'] };
const filterWarehouses = { order: ['name'] };
+const inputFileRef = ref();
const client = ref({});
const findOne = ref([]);
const allowedContentTypes = ref([]);
@@ -67,13 +68,15 @@ const saveData = async () => {
params: dms.value,
});
notify('globals.dataSaved', 'positive');
- router.push({ name: 'CustomerFileManagement' });
+ toCustomerFileManagement();
} catch (error) {
notify(error.message, 'negative');
}
};
-const inputFileRef = ref();
+const toCustomerFileManagement = () => {
+ router.push({ name: 'CustomerFileManagement' });
+};
@@ -112,9 +115,31 @@ const inputFileRef = ref();
url="DmsTypes"
/>
-
-
-
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
+
+
+
diff --git a/src/pages/Customer/components/CustomerFileManagementEdit.vue b/src/pages/Customer/components/CustomerFileManagementEdit.vue
index dad8570b5..f1279b938 100644
--- a/src/pages/Customer/components/CustomerFileManagementEdit.vue
+++ b/src/pages/Customer/components/CustomerFileManagementEdit.vue
@@ -22,6 +22,7 @@ const router = useRouter();
const filterCompanies = { order: ['code'] };
const filterWarehouses = { order: ['name'] };
+const inputFileRef = ref();
const allowedContentTypes = ref([]);
const optionsCompanies = ref([]);
const optionsWarehouses = ref([]);
@@ -55,13 +56,15 @@ const saveData = async () => {
});
notify('globals.dataSaved', 'positive');
- router.push({ name: 'CustomerFileManagement' });
+ toCustomerFileManagement();
} catch (error) {
notify(error.message, 'negative');
}
};
-const inputFileRef = ref();
+const toCustomerFileManagement = () => {
+ router.push({ name: 'CustomerFileManagement' });
+};
@@ -90,9 +93,31 @@ const inputFileRef = ref();
url="DmsTypes"
/>
-
-
-
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
+
+
+
diff --git a/src/pages/Customer/components/CustomerGreugeCreate.vue b/src/pages/Customer/components/CustomerGreugeCreate.vue
index d4ea43b6a..a1a37dcad 100644
--- a/src/pages/Customer/components/CustomerGreugeCreate.vue
+++ b/src/pages/Customer/components/CustomerGreugeCreate.vue
@@ -47,6 +47,16 @@ const toCustomerGreuges = () => {
model="client"
url-create="Greuges"
>
+
+
+
+
diff --git a/src/pages/Customer/components/CustomerNoteCreate.vue b/src/pages/Customer/components/CustomerNoteCreate.vue
index 640f6f3a0..04beea47a 100644
--- a/src/pages/Customer/components/CustomerNoteCreate.vue
+++ b/src/pages/Customer/components/CustomerNoteCreate.vue
@@ -35,6 +35,16 @@ const toCustomerNotes = () => {
@on-data-saved="toCustomerNotes()"
url-create="ClientObservations"
>
+
+
+
+
diff --git a/src/pages/Customer/components/CustomerRecoverieCreate.vue b/src/pages/Customer/components/CustomerRecoverieCreate.vue
index d8871e4fe..83c492ea9 100644
--- a/src/pages/Customer/components/CustomerRecoverieCreate.vue
+++ b/src/pages/Customer/components/CustomerRecoverieCreate.vue
@@ -41,6 +41,16 @@ const toCustomerRecoveries = () => {
model="client"
url-create="Recoveries"
>
+
+
+
+
diff --git a/src/pages/Customer/components/CustomerSamplesCreate.vue b/src/pages/Customer/components/CustomerSamplesCreate.vue
index 7eaa05cf2..5b8a31aec 100644
--- a/src/pages/Customer/components/CustomerSamplesCreate.vue
+++ b/src/pages/Customer/components/CustomerSamplesCreate.vue
@@ -94,7 +94,7 @@ const onDataSaved = async ({
recipient,
replyTo,
});
- router.push({ name: 'CustomerSamples' });
+ toCustomerSamples();
};
const getPreview = async () => {
@@ -122,6 +122,10 @@ const getPreview = async () => {
return error;
}
};
+
+const toCustomerSamples = () => {
+ router.push({ name: 'CustomerSamples' });
+};
@@ -151,13 +155,31 @@ const getPreview = async () => {
/>
+
+
+
+
+
@@ -266,34 +288,6 @@ const getPreview = async () => {
/>
-
-
-
-
-
-