Compare commits

...

84 Commits

Author SHA1 Message Date
Javier Segarra 07b591f1db Merge branch 'master' into hotfix_newCustomer_SalesPerson 2025-01-20 23:16:52 +00:00
Javier Segarra 50be767941 perf: 6943 remove imports
gitea/salix-front/pipeline/pr-master This commit looks good Details
2024-11-30 01:39:22 +01:00
Javier Segarra 1e27bfef3b Merge branch 'master' into hotfix_newCustomer_SalesPerson 2024-11-29 14:20:28 +01:00
Javier Segarra 1cf6a7b1a9 revert: #6943 remove bad code when merge conflicts
gitea/salix-front/pipeline/pr-master This commit looks good Details
2024-11-29 07:40:52 +01:00
Javier Segarra 0aa43506e3 perf: move lines
gitea/salix-front/pipeline/pr-master This commit looks good Details
2024-11-29 07:35:09 +01:00
Javier Segarra 15be132fbb perf: merge previous conflicts
gitea/salix-front/pipeline/pr-master This commit looks good Details
2024-11-28 22:20:57 +01:00
Javier Segarra 96e32044a6 perf: merge previous conflicts
gitea/salix-front/pipeline/pr-master There was a failure building this commit Details
2024-11-28 20:21:42 +01:00
Javier Segarra 1a6fcea160 Merge branch 'master' into hotfix_newCustomer_SalesPerson
gitea/salix-front/pipeline/pr-master There was a failure building this commit Details
2024-11-28 20:16:53 +01:00
Javier Segarra 64bde73418 perf: #6943 redirect to ticket
gitea/salix-front/pipeline/pr-master This commit looks good Details
2024-11-15 10:51:18 +01:00
Javier Segarra c90087b531 perf: remove commands without use 2024-11-15 10:47:55 +01:00
Javier Segarra f06020bab5 Merge branch 'hotfix_newCustomer_SalesPerson' of https://gitea.verdnatura.es/verdnatura/salix-front into hotfix_newCustomer_SalesPerson 2024-11-15 10:44:31 +01:00
Javier Segarra 111f57a792 perf: remove comments 2024-11-15 10:44:27 +01:00
Javier Segarra 08a4838007 Merge branch 'master' into hotfix_newCustomer_SalesPerson
gitea/salix-front/pipeline/pr-master This commit looks good Details
2024-11-14 21:53:31 +00:00
Javier Segarra de2a926058 feat: move buttons to DescriptorMenu
gitea/salix-front/pipeline/pr-master This commit looks good Details
2024-11-14 11:17:46 +01:00
Javier Segarra 6919eeefc5 Revert "feat: remove button"
This reverts commit 6ac52e0b5f.
2024-11-14 10:56:00 +01:00
Javier Segarra 683edfbf56 Merge branch 'master' into hotfix_newCustomer_SalesPerson
gitea/salix-front/pipeline/pr-master This commit looks good Details
2024-11-14 08:05:41 +00:00
Javier Segarra 775b14ed65 fix: #6943 CustomersummaryTable route click
gitea/salix-front/pipeline/pr-master This commit looks good Details
2024-11-13 13:39:27 +01:00
Javier Segarra 6c9406cfb0 perf: #6943 TicketList
gitea/salix-front/pipeline/pr-master This commit looks good Details
2024-11-13 12:53:37 +01:00
Javier Segarra 6ac52e0b5f feat: remove button
gitea/salix-front/pipeline/pr-master This commit looks good Details
2024-11-13 12:52:12 +01:00
Javier Segarra b2c9a7863c feat: add addressId when createTicket 2024-11-13 12:41:55 +01:00
Javier Segarra 7fbd31bd04 Merge branch 'hotfix_newCustomer_SalesPerson' of https://gitea.verdnatura.es/verdnatura/salix-front into hotfix_newCustomer_SalesPerson
gitea/salix-front/pipeline/pr-master This commit looks good Details
2024-11-13 12:39:39 +01:00
Javier Segarra 47465f589f Merge branch 'master' into hotfix_newCustomer_SalesPerson 2024-11-13 12:39:28 +01:00
Javier Segarra e837988744 Merge branch 'master' into hotfix_newCustomer_SalesPerson
gitea/salix-front/pipeline/pr-master This commit looks good Details
2024-11-13 11:30:03 +00:00
Javier Segarra 367343d2a8 feat: #6943 apply color based on condition
gitea/salix-front/pipeline/pr-master This commit looks good Details
2024-11-13 12:23:42 +01:00
Javier Segarra df662f1dce feat: #6943 apply color based on condition
gitea/salix-front/pipeline/pr-master This commit looks good Details
2024-11-13 12:05:10 +01:00
Javier Segarra c72c8205f1 fix: #6943 createOrder from customer 2024-11-13 11:49:29 +01:00
Javier Segarra 0632b939a1 feat: #6943 OrderList 2024-11-13 10:36:27 +01:00
Javier Segarra 236df82c90 Merge branch 'master' into hotfix_newCustomer_SalesPerson
gitea/salix-front/pipeline/pr-master This commit looks good Details
2024-11-12 14:48:52 +01:00
Javier Segarra 20f794b553 style: reduce padding actions cardDescriptor
gitea/salix-front/pipeline/pr-master There was a failure building this commit Details
2024-11-12 13:54:42 +01:00
Javier Segarra b6a3dfa45a feat: remove cli warnings
gitea/salix-front/pipeline/pr-master This commit looks good Details
2024-11-12 13:30:46 +01:00
Javier Segarra 4f4f7f88e3 feat: remove cli warnings
gitea/salix-front/pipeline/pr-master This commit looks good Details
2024-11-12 13:29:53 +01:00
Javier Segarra 7b91695005 Merge branch 'master' into hotfix_newCustomer_SalesPerson 2024-11-12 12:11:43 +01:00
Javier Segarra 1c3811723e feat: remove appendParams feature
gitea/salix-front/pipeline/pr-master This commit looks good Details
2024-11-08 09:23:26 +01:00
Javier Segarra 987c28e745 test: fix arrayData
gitea/salix-front/pipeline/pr-master This commit looks good Details
2024-10-29 02:38:44 +01:00
Javier Segarra 39963e4ec9 perf: remove required logic for some inputs
gitea/salix-front/pipeline/pr-master There was a failure building this commit Details
2024-10-29 02:30:53 +01:00
Javier Segarra dec2db2baa feat: #6943 minor changes
gitea/salix-front/pipeline/pr-master There was a failure building this commit Details
2024-10-29 01:20:30 +01:00
Javier Segarra c868ac6439 Merge branch 'hotfix_newCustomer_SalesPerson' of https://gitea.verdnatura.es/verdnatura/salix-front into hotfix_newCustomer_SalesPerson
gitea/salix-front/pipeline/pr-master This commit looks good Details
2024-10-29 01:07:38 +01:00
Javier Segarra 82a350c38f feat: filter isDialogOpened 2024-10-29 01:07:34 +01:00
Javier Segarra f8729c29eb Merge branch 'master' into hotfix_newCustomer_SalesPerson
gitea/salix-front/pipeline/pr-master This commit looks good Details
2024-10-28 09:32:56 +00:00
Javier Segarra 007abf307c feat: #6943 composble to get risk 2024-10-28 10:32:27 +01:00
Javier Segarra bf80784dd6 fix: #6943 remove bad code 2024-10-28 10:32:12 +01:00
Javier Segarra cc0235445a Merge branch 'master' into hotfix_newCustomer_SalesPerson
gitea/salix-front/pipeline/pr-master This commit looks good Details
2024-10-25 09:50:34 +02:00
Javier Segarra a617abe042 perf: #6943 change type vnTable.prop 2024-10-25 09:50:01 +02:00
Javier Segarra 858eff6ba3 perf: #6943 remove vnTable.prop 2024-10-25 09:49:47 +02:00
Javier Segarra e9c3b32b8a revert: #6943 change related to keyboard
gitea/salix-front/pipeline/pr-master There was a failure building this commit Details
2024-10-25 00:11:07 +02:00
Javier Segarra e45e7c519b fix: summary 2024-10-23 13:03:12 +02:00
Javier Segarra 2288c527ae feat: #6943 Define new props to handle params in URL
gitea/salix-front/pipeline/pr-master There was a failure building this commit Details
2024-10-22 23:15:13 +02:00
Javier Segarra 5944084576 Merge branch 'master' into hotfix_newCustomer_SalesPerson 2024-10-22 23:00:45 +02:00
Javier Segarra f3d0dd37d2 Merge branch 'master' into hotfix_newCustomer_SalesPerson
gitea/salix-front/pipeline/pr-master This commit looks good Details
2024-10-16 13:43:34 +00:00
Javier Segarra ade288efc3 Merge branch 'master' into hotfix_newCustomer_SalesPerson
gitea/salix-front/pipeline/pr-master This commit looks good Details
2024-10-14 21:28:45 +00:00
Javier Segarra 4296a74be5 fix: refs #6943 CustomerBalance using VnFilter and show all options
gitea/salix-front/pipeline/pr-master This commit looks good Details
2024-10-14 23:25:29 +02:00
Javier Segarra 7bb8330302 feat: refs #6943 add order by id
gitea/salix-front/pipeline/pr-master This commit looks good Details
2024-10-14 14:54:38 +02:00
Javier Segarra 2027e44d17 Merge branch 'master' into hotfix_newCustomer_SalesPerson
gitea/salix-front/pipeline/pr-master This commit looks good Details
2024-10-14 13:48:39 +02:00
Javier Segarra 4914841775 fix: not append url when is summary 2024-10-14 13:48:04 +02:00
Javier Segarra 49ec3d8d4b feat: address with icons 2024-10-14 13:47:47 +02:00
Javier Segarra b4310b1d55 revert: #6942 CustomerBalance changes 2024-10-14 10:15:26 +02:00
Javier Segarra 60a582b692 Merge branch 'master' into hotfix_newCustomer_SalesPerson
gitea/salix-front/pipeline/pr-master This commit looks good Details
2024-10-11 15:27:52 +02:00
Javier Segarra 04b0b501ab revert: push client tests 2024-10-11 15:26:53 +02:00
Javier Segarra 1cafd79d67 fix: customerSummary agencyMode
gitea/salix-front/pipeline/pr-master This commit looks good Details
2024-10-10 16:03:32 +02:00
Javier Segarra f8b8fd0386 test: use specific customer id to test with data
gitea/salix-front/pipeline/pr-master This commit looks good Details
2024-10-10 12:17:23 +02:00
Javier Segarra 186cc2ccfd perf: validation form save/create action 2024-10-10 12:16:59 +02:00
Javier Segarra e550f54314 fix: change type vnput
gitea/salix-front/pipeline/pr-master This commit looks good Details
2024-10-09 00:40:21 +02:00
Javier Segarra 4cc49d8841 Merge branch 'master' into hotfix_newCustomer_SalesPerson
gitea/salix-front/pipeline/pr-master This commit looks good Details
2024-10-09 00:33:58 +02:00
Javier Segarra e455fe4e99 test: create test for all sections 2024-10-09 00:33:13 +02:00
Javier Segarra 81b4e09eba fix: change type vnput 2024-10-08 23:35:41 +02:00
Javier Segarra 594d4b675f perf: quasar cli warnings 2024-10-08 22:26:40 +02:00
Javier Segarra 05f8ae2b05 feat: #refs TicketListrequired fields
gitea/salix-front/pipeline/pr-master This commit looks good Details
2024-10-07 20:37:32 +02:00
Javier Segarra c1f8e9d6a2 feat: #refs VnFilterPanel keyup.enter 2024-10-07 20:37:14 +02:00
Javier Segarra a509a40d3d Merge branch 'master' into hotfix_newCustomer_SalesPerson
gitea/salix-front/pipeline/pr-master This commit looks good Details
2024-10-07 18:19:58 +00:00
Javier Segarra 56dd7b4554 Merge branch 'hotfix_newCustomer_SalesPerson' of https://gitea.verdnatura.es/verdnatura/salix-front into hotfix_newCustomer_SalesPerson
gitea/salix-front/pipeline/pr-master This commit looks good Details
2024-10-04 22:29:18 +02:00
Javier Segarra a3fd69099a revert: #6943 VnTable action 2024-10-04 22:27:11 +02:00
Javier Segarra 9ddd7f9524 Merge branch 'master' into hotfix_newCustomer_SalesPerson
gitea/salix-front/pipeline/pr-master This commit looks good Details
2024-10-04 17:51:08 +00:00
Javier Segarra 043ab6bcea feat: #6943 Change icon 2024-10-04 19:47:46 +02:00
Javier Segarra 3c92b06b8e feat: #6943 Change icon 2024-10-04 14:44:54 +02:00
Javier Segarra d34a7b5839 style: #refs remove commentst
gitea/salix-front/pipeline/pr-master This commit looks good Details
2024-10-04 09:17:48 +02:00
Javier Segarra 01764f4954 style: #refs CardSummary max-height
gitea/salix-front/pipeline/pr-master This commit looks good Details
2024-10-04 09:12:47 +02:00
Javier Segarra 5770c344c8 feat: #6942 Create Ticket or Order with data filtered by clientId
gitea/salix-front/pipeline/pr-master This commit looks good Details
2024-10-04 01:32:11 +02:00
Javier Segarra 0b752cdb0d feat: #6942 Open TicketSale in new tab
gitea/salix-front/pipeline/pr-master This commit looks good Details
2024-10-04 01:27:18 +02:00
Javier Segarra 90610cb832 feat: #6942 CustomerDescriptor
gitea/salix-front/pipeline/pr-master This commit looks good Details
2024-10-04 01:23:27 +02:00
Javier Segarra cbb7bea545 fix: createForm 2024-10-04 00:58:14 +02:00
Javier Segarra 860370019e style: #6321Customer updatees 2024-10-04 00:35:11 +02:00
Javier Segarra 02e7177dee Merge branch 'master' into hotfix_newCustomer_SalesPerson
gitea/salix-front/pipeline/pr-master This commit looks good Details
2024-10-03 23:46:44 +02:00
Javier Segarra aa41f0d826 fix: CustomerList form salesPersons options
gitea/salix-front/pipeline/pr-master This commit looks good Details
2024-10-02 08:38:54 +00:00
Javier Segarra 6c97f5eeb3 fix: CustomerList form salesPersons options
gitea/salix-front/pipeline/pr-master This commit looks good Details
2024-10-02 08:37:03 +00:00
9 changed files with 22 additions and 62 deletions

View File

@ -220,9 +220,6 @@ const makeRequest = async () => {
class="cursor-pointer"
@click="rotateLeft()"
>
<!-- <QTooltip class="no-pointer-events">
{{ t('Rotate left') }}
</QTooltip> -->
</QIcon>
<div>
<div ref="photoContainerRef" />
@ -234,9 +231,6 @@ const makeRequest = async () => {
class="cursor-pointer"
@click="rotateRight()"
>
<!-- <QTooltip class="no-pointer-events">
{{ t('Rotate right') }}
</QTooltip> -->
</QIcon>
</div>
@ -265,7 +259,6 @@ const makeRequest = async () => {
class="cursor-pointer q-mr-sm"
@click="openInputFile()"
>
<!-- <QTooltip>{{ t('globals.selectFile') }}</QTooltip> -->
</QIcon>
<QIcon name="info" class="cursor-pointer">
<QTooltip>{{

View File

@ -14,8 +14,8 @@ import dashOrCurrency from './dashOrCurrency';
import getDifferences from './getDifferences';
import getUpdatedValues from './getUpdatedValues';
import getParamWhere from './getParamWhere';
import parsePhone from './parsePhone';
import isDialogOpened from './isDialogOpened';
import parsePhone from './parsePhone';
export {
getUpdatedValues,

View File

@ -114,6 +114,7 @@ const debtWarning = computed(() => {
>
<QTooltip>{{ t('customer.card.webAccountInactive') }}</QTooltip>
</QIcon>
<QIcon
v-if="entity.debt > entity.credit"
name="vn:risk"
@ -175,6 +176,7 @@ const debtWarning = computed(() => {
>
<QTooltip>{{ t('Customer ticket list') }}</QTooltip>
</QBtn>
<QBtn
:to="{
name: 'InvoiceOutList',
@ -186,6 +188,7 @@ const debtWarning = computed(() => {
>
<QTooltip>{{ t('Customer invoice out list') }}</QTooltip>
</QBtn>
<QBtn
:to="{
name: 'AccountSummary',

View File

@ -2,8 +2,6 @@
import { computed, ref } from 'vue';
import { useRoute } from 'vue-router';
import { useI18n } from 'vue-i18n';
import VnUserLink from 'src/components/ui/VnUserLink.vue';
import { toCurrency, toPercentage, toDate, dashOrCurrency } from 'src/filters';
import CardSummary from 'components/ui/CardSummary.vue';
import VnLv from 'src/components/ui/VnLv.vue';
@ -26,6 +24,7 @@ const $props = defineProps({
const entityId = computed(() => $props.id || route.params.id);
const customer = computed(() => summary.value.entity);
const summary = ref();
const defaulterAmount = computed(() => customer.value.defaulters[0]?.amount);
const balanceDue = computed(() => {
const amount = defaulterAmount.value;
@ -38,11 +37,11 @@ const balanceDue = computed(() => {
const balanceDueWarning = computed(() => (defaulterAmount.value ? 'negative' : ''));
const claimRate = computed(() => {
return customer.value.claimsRatio?.claimingRate ?? 0;
return customer.value.claimsRatio.claimingRate;
});
const priceIncreasingRate = computed(() => {
return customer.value.claimsRatio?.priceIncreasing ?? 0 / 100;
return customer.value.claimsRatio.priceIncreasing / 100;
});
const debtWarning = computed(() => {
@ -56,11 +55,6 @@ const creditWarning = computed(() => {
return tooMuchInsurance || noCreditInsurance ? 'negative' : '';
});
const sumRisk = ({ clientRisks }) => {
let total = clientRisks.reduce((acc, { amount }) => acc + amount, 0);
return total;
};
</script>
<template>
@ -106,13 +100,7 @@ const sumRisk = ({ clientRisks }) => {
<VnLv
:label="t('customer.summary.salesPerson')"
:value="entity?.salesPersonUser?.name"
>
<template #value>
<VnUserLink
:name="entity.salesPersonUser?.name"
:worker-id="entity.salesPersonFk"
/> </template
></VnLv>
/>
<VnLv
:label="t('customer.summary.contactChannel')"
:value="entity?.contactChannel?.name"
@ -152,7 +140,7 @@ const sumRisk = ({ clientRisks }) => {
:url="`#/customer/${entityId}/fiscal-data`"
:text="t('customer.summary.fiscalData')"
/>
<VnRow class="block">
<VnRow>
<VnLv
:label="t('customer.summary.isEqualizated')"
:value="entity.isEqualizated"
@ -161,6 +149,8 @@ const sumRisk = ({ clientRisks }) => {
:label="t('customer.summary.isActive')"
:value="entity.isActive"
/>
</VnRow>
<VnRow>
<VnLv
:label="t('customer.summary.verifiedData')"
:value="entity.isTaxDataChecked"
@ -169,6 +159,8 @@ const sumRisk = ({ clientRisks }) => {
:label="t('customer.summary.hasToInvoice')"
:value="entity.hasToInvoice"
/>
</VnRow>
<VnRow>
<VnLv
:label="t('customer.summary.notifyByEmail')"
:value="entity.isToBeMailed"
@ -187,7 +179,7 @@ const sumRisk = ({ clientRisks }) => {
/>
<VnLv :label="t('customer.summary.bankAccount')" :value="entity.iban" />
<VnLv :label="t('customer.summary.dueDay')" :value="entity.dueDay" />
<VnRow class="q-mt-sm block">
<VnRow class="q-mt-sm" wrap>
<VnLv :label="t('customer.summary.hasLcr')" :value="entity.hasLcr" />
<VnLv
:label="t('customer.summary.hasCoreVnl')"
@ -202,7 +194,7 @@ const sumRisk = ({ clientRisks }) => {
</QCard>
<QCard class="vn-one" v-if="entity.defaultAddress">
<VnTitle
:url="`#/customer/${entityId}/address`"
:url="`#/customer/${entityId}/consignees`"
:text="t('customer.summary.consignee')"
/>
<VnLv
@ -267,7 +259,7 @@ const sumRisk = ({ clientRisks }) => {
<VnTitle
target="_blank"
:url="`${grafanaUrl}/d/40buzE4Vk/comportamiento-pagos-clientes?orgId=1&var-clientFk=${entityId}`"
:text="t('customer.summary.payMethodFk')"
:text="t('customer.summary.financialData')"
icon="vn:grafana"
/>
<VnLv
@ -293,7 +285,7 @@ const sumRisk = ({ clientRisks }) => {
<VnLv
:label="t('customer.summary.balance')"
:value="toCurrency(sumRisk(entity)) || toCurrency(0)"
:value="toCurrency(entity.sumRisk) || toCurrency(0)"
:info="t('customer.summary.balanceInfo')"
/>

View File

@ -67,6 +67,7 @@ const columns = computed(() => [
fields: ['id', 'name'],
where: { role: 'salesPerson' },
optionFilter: 'firstName',
useLike: false,
},
create: false,
columnField: {

View File

@ -185,13 +185,12 @@ const getItemPackagingType = (ticketSales) => {
:columns="columns"
:without-header="true"
auto-load
:row-click="rowClick"
redirect="ticket"
order="shipped DESC, id"
:disable-option="{ card: true, table: true }"
class="full-width"
:disable-infinite-scroll="true"
:search-url="false"
redirect="ticket"
>
<template #column-nickname="{ row }">
<span class="link" @click.stop>

View File

@ -2,7 +2,7 @@
import { ref } from 'vue';
import { useRoute } from 'vue-router';
import { useI18n } from 'vue-i18n';
import VnInputNumber from 'components/common/VnInputNumber.vue';
import FormModelPopup from 'components/FormModelPopup.vue';
import VnRow from 'components/ui/VnRow.vue';
import VnInput from 'src/components/common/VnInput.vue';
@ -43,13 +43,13 @@ const attendersOptions = ref([]);
/>
</VnRow>
<VnRow>
<VnInput
<VnInputNumber
v-model="data.quantity"
:label="t('basicData.quantity')"
type="number"
min="1"
/>
<VnInput
<VnInputNumber
v-model="data.price"
:label="t('basicData.price')"
type="number"

View File

@ -285,8 +285,6 @@ const fetchAddresses = async (formData) => {
});
addressesOptions.value = data;
addressesOptions.value = data;
const { defaultAddress } = selectedClient.value;
formData.addressId = defaultAddress.id;
};

View File

@ -307,32 +307,6 @@ Cypress.Commands.add('clickButtonsDescriptor', (id) => {
.click();
});
Cypress.Commands.add('openActionDescriptor', (opt) => {
cy.openActionsDescriptor();
const listItem = '[role="menu"] .q-list .q-item';
cy.contains(listItem, opt).click();
1;
});
Cypress.Commands.add('clickButtonsDescriptor', (id) => {
cy.get(`.actions > .q-card__actions> .q-btn:nth-child(${id})`)
.invoke('removeAttr', 'target')
.click();
});
Cypress.Commands.add('openActionDescriptor', (opt) => {
cy.openActionsDescriptor();
const listItem = '[role="menu"] .q-list .q-item';
cy.contains(listItem, opt).click();
1;
});
Cypress.Commands.add('clickButtonsDescriptor', (id) => {
cy.get(`.actions > .q-card__actions> .q-btn:nth-child(${id})`)
.invoke('removeAttr', 'target')
.click();
});
Cypress.Commands.add('openUserPanel', () => {
cy.get(
'.column > .q-avatar > .q-avatar__content > .q-img > .q-img__container > .q-img__image'