Compare commits

...

19 Commits

Author SHA1 Message Date
Guillermo Bonet c43f8f8af4 Merge branch 'test' into dev
gitea/salix-front/pipeline/head This commit looks good Details
2025-04-13 09:37:09 +02:00
Jon Elias 6976569c42 Merge pull request 'Hotfix: SummaryProblems' (!1699) from Hotfix-TicketSummaryAddress into master
gitea/salix-front/pipeline/head This commit looks good Details
Reviewed-on: #1699
Reviewed-by: Javi Gallego <jgallego@verdnatura.es>
2025-04-10 14:57:06 +00:00
Jon Elias 02b7afb9ec Merge branch 'Hotfix-TicketSummaryAddress' of https://gitea.verdnatura.es/verdnatura/salix-front into Hotfix-TicketSummaryAddress
gitea/salix-front/pipeline/pr-master This commit looks good Details
2025-04-10 16:13:59 +02:00
Jon Elias 3027d579cf perf: deleted !important 2025-04-10 16:13:57 +02:00
Jon Elias 9e74a4a3f8 Merge branch 'master' into Hotfix-TicketSummaryAddress
gitea/salix-front/pipeline/pr-master This commit looks good Details
2025-04-10 13:44:53 +00:00
Jon Elias 6b6118c66c fix: fixed recommended credit not showing correctly
gitea/salix-front/pipeline/pr-master There was a failure building this commit Details
2025-04-10 15:03:03 +02:00
Javier Segarra 31451a86ed fix: 'shippedDate' filter
gitea/salix-front/pipeline/head This commit looks good Details
2025-04-10 14:59:52 +02:00
Jon Elias b54bb22967 perf: english translation 2025-04-10 14:59:12 +02:00
Jon Elias db1f5e3083 perf: tooltip
gitea/salix-front/pipeline/pr-master Build queued... Details
2025-04-10 14:57:46 +02:00
Jon Elias 2be108c897 fix: ticket client address
gitea/salix-front/pipeline/pr-master This commit is unstable Details
2025-04-10 14:54:41 +02:00
Jon Elias 0e5e092450 fix: ticket address and fixed CustomerSummary height fields 2025-04-10 14:53:25 +02:00
Javier Segarra 5e0f0caa2e Merge pull request 'fix: update phone number VnTable.Card and CustomerBalance checkbox' (!1696) from hotfix_customer_minorchanges into master
gitea/salix-front/pipeline/head This commit looks good Details
Reviewed-on: #1696
Reviewed-by: Javi Gallego <jgallego@verdnatura.es>
2025-04-10 11:22:38 +00:00
Javier Segarra 0b6ba8fc5e Merge branch 'master' into hotfix_customer_minorchanges
gitea/salix-front/pipeline/pr-master This commit looks good Details
2025-04-10 10:26:06 +00:00
Javier Segarra 954c5a3bad fix: update phone number component handling
gitea/salix-front/pipeline/pr-master This commit looks good Details
2025-04-10 12:11:10 +02:00
Jon Elias 629af07502 Merge pull request 'fix: allow description field autogrow' (!1692) from Hotfix-TicketNotesDescription into master
gitea/salix-front/pipeline/head This commit looks good Details
Reviewed-on: #1692
Reviewed-by: Alex Moreno <alexm@verdnatura.es>
2025-04-09 10:27:08 +00:00
Jon Elias bc6ce826ce feat: prevent default with enter
gitea/salix-front/pipeline/pr-master This commit looks good Details
2025-04-09 12:06:22 +02:00
Jon Elias f3de8ecb73 fix: allow description field autogrow
gitea/salix-front/pipeline/pr-master This commit looks good Details
2025-04-09 11:08:51 +02:00
Alex Moreno 3f01436d02 Merge pull request 'fix(VnLog): update filter to include originFk and improve sorting in VnLogFilter' (!1690) from hotFix_vnLogFilter_changeId into master
gitea/salix-front/pipeline/head This commit looks good Details
Reviewed-on: #1690
2025-04-09 06:44:56 +00:00
Alex Moreno c47cb05cbd fix(VnLog): update filter to include originFk and improve sorting in VnLogFilter
gitea/salix-front/pipeline/pr-master This commit looks good Details
2025-04-09 08:23:38 +02:00
12 changed files with 47 additions and 31 deletions

View File

@ -68,7 +68,6 @@ const filter = {
},
},
],
where: { and: [{ originFk: route.params.id }] },
};
const paginate = ref();
@ -267,13 +266,6 @@ onMounted(() => {
onUnmounted(() => {
stateStore.rightDrawer = false;
});
watch(
() => router.currentRoute.value.params.id,
() => {
applyFilter();
},
);
</script>
<template>
<VnPaginate
@ -281,6 +273,7 @@ watch(
:data-key
:url="dataKey + 's'"
:user-filter="filter"
:filter="{ where: { and: [{ originFk: route.params.id }] } }"
:skeleton="false"
auto-load
@on-fetch="setLogTree"

View File

@ -39,7 +39,7 @@ const checkboxOptions = ref([
{ name: 'select', label: 'Accesses', selected: false },
]);
const columns = computed(() => [
{ name: 'changedModelValue' },
{ name: 'changedModelValue', orderBy: 'id' },
{ name: 'changedModel' },
{ name: 'userType', orderBy: false },
{ name: 'userFk' },

View File

@ -6,6 +6,7 @@ import { computed } from 'vue';
const $props = defineProps({
label: { type: String, default: null },
tooltip: { type: String, default: null },
value: {
type: [String, Boolean, Number],
default: null,
@ -40,7 +41,10 @@ const val = computed(() => $props.value);
<template v-else>
<div v-if="label || $slots.label" class="label">
<slot name="label">
<span style="color: var(--vn-label-color)">{{ label }}</span>
<QTooltip v-if="tooltip">{{ tooltip }}</QTooltip>
<span style="color: var(--vn-label-color)">
{{ label }}
</span>
</slot>
</div>
<div class="value" v-if="value || $slots.value">

View File

@ -131,6 +131,7 @@ const columns = computed(() => [
name: 'isConciliate',
label: t('Conciliated'),
cardVisible: true,
component: 'checkbox',
},
{
align: 'left',

View File

@ -208,7 +208,8 @@ const sumRisk = ({ clientRisks }) => {
:text="t('customer.summary.consignee')"
/>
<VnLv
:label="t('customer.summary.addressName')"
:tooltip="t('customer.summary.addressName')"
:label="t('customer.summary.addressNameAbbr')"
:value="entity.defaultAddress.nickname"
/>
<VnLv
@ -252,7 +253,8 @@ const sumRisk = ({ clientRisks }) => {
/>
<VnLv
v-if="entity.claimsRatio"
:label="t('customer.summary.priceIncreasingRate')"
:tooltip="t('customer.summary.priceIncreasingRate')"
:label="t('customer.summary.priceIncreasingRateAbbr')"
:value="toPercentage(priceIncreasingRate)"
/>
<VnLv
@ -261,7 +263,8 @@ const sumRisk = ({ clientRisks }) => {
/>
<VnLv
v-if="entity.claimsRatio"
:label="t('customer.summary.claimRate')"
:label="t('customer.summary.claimRateAbbr')"
:tooltip="t('customer.summary.claimRate')"
:value="toPercentage(claimRate)"
/>
</QCard>
@ -318,8 +321,9 @@ const sumRisk = ({ clientRisks }) => {
/>
<VnLv
:label="t('customer.summary.recommendCredit')"
:value="entity.recommendedCredit"
:label="t('customer.summary.recommendCreditAbbr')"
:tooltip="t('customer.summary.recommendCredit')"
:value="toCurrency(entity.recommendedCredit)"
/>
</QCard>
<QCard class="vn-max">

View File

@ -111,14 +111,11 @@ const columns = computed(() => [
component: 'number',
},
columnField: {
component: null,
after: {
component: markRaw(VnLinkPhone),
attrs: ({ model }) => {
return {
'phone-number': model,
};
},
component: markRaw(VnLinkPhone),
attrs: ({ model }) => {
return {
'phone-number': model,
};
},
},
},

View File

@ -42,14 +42,17 @@ customer:
hasCoreVnl: Has core VNL
hasB2BVnl: Has B2B VNL
addressName: Address name
addressNameAbbr: A. Name
addressCity: City
username: Username
webAccess: Web access
totalGreuge: Total greuge
mana: Mana
priceIncreasingRate: Price increasing rate
priceIncreasingRateAbbr: Price inc. rate
averageInvoiced: Average invoiced
claimRate: Claming rate
claimRateAbbr: Claim. rate
payMethodFk: Billing data
risk: Risk
maximumRisk: Solunion's maximum risk
@ -68,6 +71,7 @@ customer:
descriptorInfo: Invoices minus payments plus orders not yet
rating: Rating
recommendCredit: Recommended credit
recommendCreditAbbr: Rec. credit
goToLines: Go to lines
basicData:
socialName: Fiscal name

View File

@ -42,14 +42,17 @@ customer:
hasCoreVnl: Recibido core VNL
hasB2BVnl: Recibido B2B VNL
addressName: Nombre de la dirección
addressNameAbbr: N. Dirección
addressCity: Ciudad
username: Usuario
webAccess: Acceso web
totalGreuge: Greuge total
mana: Maná
priceIncreasingRate: Ratio de incremento de precio
priceIncreasingRateAbbr: R. Inc. Precio
averageInvoiced: Facturación media
claimRate: Ratio de reclamaciones
claimRateAbbr: R. Reclamaciones
maximumRisk: Riesgo máximo asumido por Solunion
payMethodFk: Forma de pago
risk: Riesgo
@ -68,6 +71,7 @@ customer:
descriptorInfo: Facturas menos recibos mas pedidos sin facturar
rating: Clasificación
recommendCredit: Crédito recomendado
recommendCreditAbbr: Cr. Recomendado
goToLines: Ir a líneas
basicData:
socialName: Nombre fiscal

View File

@ -38,7 +38,9 @@ function handleDelete(row) {
ticketNotesCrudRef.value.remove([row]);
}
async function handleSave() {
async function handleSave(e) {
if (e.shiftKey && e.key === 'Enter') return;
e.preventDefault();
if (!isSaving.value) {
isSaving.value = true;
await ticketNotesCrudRef.value?.saveChanges();
@ -70,7 +72,7 @@ async function handleSave() {
<div
v-for="(row, index) in rows"
:key="index"
class="q-mb-md row items-center q-gutter-x-md"
class="q-mb-md row q-gutter-x-md"
>
<VnSelect
:label="t('ticketNotes.observationType')"
@ -86,7 +88,8 @@ async function handleSave() {
:label="t('basicData.description')"
v-model="row.description"
class="col"
@keyup.enter="handleSave"
@keydown.enter.stop="handleSave"
autogrow
data-cy="ticketNotesDescription"
/>
<QIcon

View File

@ -241,6 +241,7 @@ onMounted(async () => {
:value="`${entity.address?.nickname} #${entity.address?.id}`"
/>
<VnLv
class="white-space-normal"
:label="t('ticket.summary.consigneeStreet')"
:value="formattedAddress"
/>
@ -524,4 +525,7 @@ onMounted(async () => {
.grafana {
color: $primary-light;
}
.white-space-normal :deep(.value span) {
white-space: normal;
}
</style>

View File

@ -273,6 +273,7 @@ en:
orderFk: Order
from: From
shipped: Shipped
shippedDate: Shipped date
to: To
stateFk: State
groupedStates: Grouped State
@ -300,6 +301,7 @@ es:
orderFk: Pedido
from: Desde
shipped: F. envío
shippedDate: F. envío
to: Hasta
stateFk: Estado
groupedStates: Estado agrupado

View File

@ -113,13 +113,13 @@ const columns = computed(() => [
},
{
align: 'left',
name: 'shippedDate',
name: 'shipped',
cardVisible: true,
label: t('ticketList.shipped'),
columnFilter: {
component: 'date',
},
format: ({ shippedDate }) => toDate(shippedDate),
format: ({ shipped }) => toDate(shipped),
},
{
align: 'left',
@ -477,7 +477,7 @@ function setReference(data) {
prefix="card"
:array-data-props="{
url: 'Tickets/filter',
order: ['shippedDate DESC', 'shippedHour ASC', 'zoneLanding ASC', 'id'],
order: ['shipped DESC', 'shippedHour ASC', 'zoneLanding ASC', 'id'],
exprBuilder,
}"
>
@ -515,10 +515,10 @@ function setReference(data) {
<DepartmentDescriptorProxy :id="row.departmentFk" />
</span>
</template>
<template #column-shippedDate="{ row }">
<template #column-shipped="{ row }">
<span v-if="getDateColor(row.shipped)">
<QChip :class="getDateColor(row.shipped)" dense square>
{{ toDate(row.shippedDate) }}
{{ toDate(row.shipped) }}
</QChip>
</span>
</template>