diff --git a/src/components/VnTable/VnTable.vue b/src/components/VnTable/VnTable.vue
index 6c77d44df..1708f9b6c 100644
--- a/src/components/VnTable/VnTable.vue
+++ b/src/components/VnTable/VnTable.vue
@@ -65,6 +65,10 @@ const $props = defineProps({
type: Boolean,
default: false,
},
+ disableInfiniteScroll: {
+ type: Boolean,
+ default: false,
+ },
hasSubToolbar: {
type: Boolean,
default: true,
@@ -335,11 +339,13 @@ defineExpose({
emit('onFetch', ...args)"
:search-url="searchUrl"
- :disable-infinite-scroll="isTableMode"
+ :disable-infinite-scroll="
+ $attrs['disableInfiniteScroll'] ? isTableMode : disableInfiniteScroll
+ "
@save-changes="reload"
:has-sub-toolbar="$attrs['hasSubToolbar'] ?? isEditable"
:auto-load="hasParams || $attrs['auto-load']"
@@ -486,11 +492,7 @@ defineExpose({
:icon="btn.icon"
class="q-px-sm"
flat
- :class="
- btn.isPrimary
- ? 'text-primary-light'
- : 'color-vn-text '
- "
+ :class="'text-primary-light'"
:style="`visibility: ${
(btn.show && btn.show(row)) ?? true
? 'visible'
diff --git a/src/i18n/locale/en.yml b/src/i18n/locale/en.yml
index 0c0ede5f7..7bb4dcd64 100644
--- a/src/i18n/locale/en.yml
+++ b/src/i18n/locale/en.yml
@@ -375,6 +375,7 @@ customer:
averageInvoiced: Average invoiced
claimRate: Claming rate
risk: Risk
+ maximumRisk: Solunion's maximum risk
riskInfo: Invoices minus payments plus orders not yet invoiced
credit: Credit
creditInfo: Company's maximum risk
diff --git a/src/i18n/locale/es.yml b/src/i18n/locale/es.yml
index e4392627c..bc0934e6d 100644
--- a/src/i18n/locale/es.yml
+++ b/src/i18n/locale/es.yml
@@ -373,6 +373,8 @@ customer:
priceIncreasingRate: Ratio de incremento de precio
averageInvoiced: Facturación media
claimRate: Ratio de reclamaciones
+ maximumRisk: Riesgo máximo asumido por Solunion
+
risk: Riesgo
riskInfo: Facturas menos recibos mas pedidos sin facturar
credit: Crédito
diff --git a/src/pages/Customer/Card/CustomerSummary.vue b/src/pages/Customer/Card/CustomerSummary.vue
index 15bf19b48..cee8b7c0a 100644
--- a/src/pages/Customer/Card/CustomerSummary.vue
+++ b/src/pages/Customer/Card/CustomerSummary.vue
@@ -2,6 +2,8 @@
import { computed, ref, onMounted } from 'vue';
import { useRoute } from 'vue-router';
import { useI18n } from 'vue-i18n';
+import VnUserLink from 'src/components/ui/VnUserLink.vue';
+
import { toCurrency, toPercentage, toDate } from 'src/filters';
import CardSummary from 'components/ui/CardSummary.vue';
import { getUrl } from 'src/composables/getUrl';
@@ -40,11 +42,11 @@ const balanceDue = computed(() => {
const balanceDueWarning = computed(() => (balanceDue.value ? 'negative' : ''));
const claimRate = computed(() => {
- return customer.value.claimsRatio.claimingRate;
+ return customer.value.claimsRatio?.claimingRate ?? 0;
});
const priceIncreasingRate = computed(() => {
- return customer.value.claimsRatio.priceIncreasing / 100;
+ return customer.value.claimsRatio?.priceIncreasing ?? 0 / 100;
});
const debtWarning = computed(() => {
@@ -91,7 +93,13 @@ const creditWarning = computed(() => {
+ >
+
+
{
:url="`#/customer/${entityId}/fiscal-data`"
:text="t('customer.summary.fiscalData')"
/>
-
+
{
:label="t('customer.summary.isActive')"
:value="entity.isActive"
/>
-
-
+
{
:label="t('customer.summary.hasToInvoice')"
:value="entity.hasToInvoice"
/>
-
-
+
{
/>
-
+
{
:value="toCurrency(entity?.mana?.mana)"
/>
@@ -236,7 +243,6 @@ const creditWarning = computed(() => {
:value="toCurrency(entity?.averageInvoiced?.invoiced)"
/>
@@ -262,12 +268,10 @@ const creditWarning = computed(() => {
/>
-
{
:value="entity.recommendedCredit"
/>
-
+
diff --git a/src/pages/Customer/components/CustomerSummaryTable.vue b/src/pages/Customer/components/CustomerSummaryTable.vue
index c25870fd8..da310934d 100644
--- a/src/pages/Customer/components/CustomerSummaryTable.vue
+++ b/src/pages/Customer/components/CustomerSummaryTable.vue
@@ -1,22 +1,25 @@
- (rows = data)"
- auto-load
url="Tickets"
- />
-
-
-
-
-
-
-
-
- {{ props.value }}
-
-
-
-
-
- {{ props.value }}
-
-
-
-
-
- {{ props.value }}
-
-
-
-
- {{ props.value }}
-
-
-
-
- {{ props.value }}
-
-
-
-
- {{ toCurrency(props.value) }}
-
- {{ toCurrency(props.value) }}
-
-
-
-
-
-
-
+ :columns="columns"
+ search-url="tickets"
+ :without-header="true"
+ auto-load
+ order="shipped DESC, id"
+ limit="5"
+ >
+
+
+ {{ row.nickname }}
+
+
+
+
+
+ {{ row.ticketFk }}
+
+
+
+
+
+
+ {{ row.routeFk }}
+
+
+
+
+
+
+ {{ toCurrency(row.totalWithVat) }}
+
+ {{ toCurrency(row.totalWithVat) }}
+
+
+
+
+ {{ row.invoiceOut.ref }}
+
+
+
+
+ {{ row?.ticketState?.state.name }}
+
+ {{ row?.ticketState?.state.name }}
+
+
+
+ {{ toDateFormat(row.shipped) }}
+
+ {{ toDateFormat(row.shipped) }}
+
+
diff --git a/src/pages/Customer/components/CustomerSummaryTableActions.vue b/src/pages/Customer/components/CustomerSummaryTableActions.vue
deleted file mode 100644
index 154a37d22..000000000
--- a/src/pages/Customer/components/CustomerSummaryTableActions.vue
+++ /dev/null
@@ -1,52 +0,0 @@
-
-
-
-
- {{ id }}
-
-
- {{ t('Go to lines') }}
-
-
-
-
- {{ t('Preview') }}
-
-
-
-
-
-
-es:
- Go to lines: Ir a lineas
- Preview: Vista previa
-