diff --git a/src/pages/Customer/Card/CustomerCredits.vue b/src/pages/Customer/Card/CustomerCredits.vue
index e8a4c3b48..13bc684b3 100644
--- a/src/pages/Customer/Card/CustomerCredits.vue
+++ b/src/pages/Customer/Card/CustomerCredits.vue
@@ -1,3 +1,154 @@
+
+
- Credits
+
+
+
+
+
+
+ {{ props.value }}
+
+
+
+
+
+
+
+
+
+
+
+ {{ t('New credit') }}
+
+
+
+
+
+
+es:
+ Since: Desde
+ Employee: Empleado
+ Credit: Credito
+ New credit: Nuevo credito
+
diff --git a/src/pages/Customer/ExtendedList/CustomerExtendedList.vue b/src/pages/Customer/ExtendedList/CustomerExtendedList.vue
index caee06d60..65acf78a2 100644
--- a/src/pages/Customer/ExtendedList/CustomerExtendedList.vue
+++ b/src/pages/Customer/ExtendedList/CustomerExtendedList.vue
@@ -485,7 +485,6 @@ const selectCustomerId = (id) => {
};
const selectSalesPersonId = (id) => {
- console.log('selectedSalesPersonId:: ', selectedSalesPersonId.value);
selectedSalesPersonId.value = id;
};
diff --git a/src/pages/Customer/components/CustomerConsigneeEdit.vue b/src/pages/Customer/components/CustomerConsigneeEdit.vue
index ca7dbfde9..43649c58e 100644
--- a/src/pages/Customer/components/CustomerConsigneeEdit.vue
+++ b/src/pages/Customer/components/CustomerConsigneeEdit.vue
@@ -95,7 +95,6 @@ const onDataSaved = () => {
const payload = {
creates: notes.value,
};
- console.log(payload);
axios.post('AddressObservations/crud', payload);
};
diff --git a/src/pages/Customer/components/CustomerCreditCreate.vue b/src/pages/Customer/components/CustomerCreditCreate.vue
new file mode 100644
index 000000000..053f0d18a
--- /dev/null
+++ b/src/pages/Customer/components/CustomerCreditCreate.vue
@@ -0,0 +1,51 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+es:
+ Credit: Crédito
+
diff --git a/src/pages/Customer/components/CustomerNewCustomsAgent.vue b/src/pages/Customer/components/CustomerNewCustomsAgent.vue
index 341b25351..b8b83e763 100644
--- a/src/pages/Customer/components/CustomerNewCustomsAgent.vue
+++ b/src/pages/Customer/components/CustomerNewCustomsAgent.vue
@@ -18,8 +18,6 @@ const initialData = reactive({
});
const onDataSaved = (dataSaved) => {
- console.log('onDataSaved()');
- console.log(dataSaved);
emit('onDataSaved', dataSaved);
};
diff --git a/src/pages/Customer/components/CustomerNoteCreate.vue b/src/pages/Customer/components/CustomerNoteCreate.vue
index 79f6e9576..cea90f975 100644
--- a/src/pages/Customer/components/CustomerNoteCreate.vue
+++ b/src/pages/Customer/components/CustomerNoteCreate.vue
@@ -19,7 +19,6 @@ onMounted(() => {
});
const toCustomerNotes = () => {
- console.log('toCustomerNotes()');
router.push({
name: 'CustomerNotes',
params: {
diff --git a/src/router/modules/customer.js b/src/router/modules/customer.js
index bd404f7ee..fa57682af 100644
--- a/src/router/modules/customer.js
+++ b/src/router/modules/customer.js
@@ -226,13 +226,31 @@ export default {
},
{
path: 'credits',
- name: 'CustomerCredits',
- meta: {
- title: 'credits',
- icon: 'vn:credit',
- },
- component: () =>
- import('src/pages/Customer/Card/CustomerCredits.vue'),
+ name: 'CreditsCard',
+ redirect: { name: 'CustomerCredits' },
+ children: [
+ {
+ path: '',
+ name: 'CustomerCredits',
+ meta: {
+ title: 'credits',
+ icon: 'vn:credit',
+ },
+ component: () =>
+ import('src/pages/Customer/Card/CustomerCredits.vue'),
+ },
+ {
+ path: 'create',
+ name: 'CustomerCreditCreate',
+ meta: {
+ title: 'credit-create',
+ },
+ component: () =>
+ import(
+ 'src/pages/Customer/components/CustomerCreditCreate.vue'
+ ),
+ },
+ ],
},
{
path: 'greuges',