Merge branch 'master' into 8745-fixCustomer
gitea/salix-front/pipeline/pr-master This commit is unstable
Details
gitea/salix-front/pipeline/pr-master This commit is unstable
Details
This commit is contained in:
commit
6c1218a49c
|
@ -46,6 +46,11 @@ function ticketFilter(invoice) {
|
||||||
<InvoiceOutDescriptorMenu :invoice-out-data="entity" :menu-ref="menuRef" />
|
<InvoiceOutDescriptorMenu :invoice-out-data="entity" :menu-ref="menuRef" />
|
||||||
</template>
|
</template>
|
||||||
<template #body="{ entity }">
|
<template #body="{ entity }">
|
||||||
|
<VnLv
|
||||||
|
v-if="entity.externalRef"
|
||||||
|
:label="t('invoiceOut.externalRef')"
|
||||||
|
:value="entity.externalRef"
|
||||||
|
/>
|
||||||
<VnLv :label="t('invoiceOut.card.issued')" :value="toDate(entity.issued)" />
|
<VnLv :label="t('invoiceOut.card.issued')" :value="toDate(entity.issued)" />
|
||||||
<VnLv :label="t('globals.amount')" :value="toCurrency(entity.amount)" />
|
<VnLv :label="t('globals.amount')" :value="toCurrency(entity.amount)" />
|
||||||
<VnLv v-if="entity.client" :label="t('globals.client')">
|
<VnLv v-if="entity.client" :label="t('globals.client')">
|
||||||
|
|
|
@ -54,6 +54,14 @@ const columns = computed(() => [
|
||||||
name: 'id',
|
name: 'id',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
align: 'left',
|
||||||
|
name: 'issued',
|
||||||
|
label: t('invoiceOut.summary.issued'),
|
||||||
|
component: 'date',
|
||||||
|
format: (row) => toDate(row.issued),
|
||||||
|
columnField: { component: null },
|
||||||
|
},
|
||||||
{
|
{
|
||||||
align: 'left',
|
align: 'left',
|
||||||
name: 'ref',
|
name: 'ref',
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
invoiceOut:
|
invoiceOut:
|
||||||
search: Search invoice
|
search: Search invoice
|
||||||
searchInfo: You can search by invoice reference
|
searchInfo: You can search by invoice reference
|
||||||
|
externalRef: External Ref.
|
||||||
params:
|
params:
|
||||||
id: ID
|
id: ID
|
||||||
company: Company
|
company: Company
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
invoiceOut:
|
invoiceOut:
|
||||||
search: Buscar factura emitida
|
search: Buscar factura emitida
|
||||||
searchInfo: Puedes buscar por referencia de la factura
|
searchInfo: Puedes buscar por referencia de la factura
|
||||||
|
externalRef: Ref. externa
|
||||||
params:
|
params:
|
||||||
id: ID
|
id: ID
|
||||||
company: Empresa
|
company: Empresa
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
<script setup>
|
<script setup>
|
||||||
import { ref, nextTick } from 'vue';
|
import { ref, nextTick, onMounted } from 'vue';
|
||||||
|
import { useRoute } from 'vue-router';
|
||||||
import { useI18n } from 'vue-i18n';
|
import { useI18n } from 'vue-i18n';
|
||||||
import VnInputDate from 'src/components/common/VnInputDate.vue';
|
import VnInputDate from 'src/components/common/VnInputDate.vue';
|
||||||
import FetchData from 'components/FetchData.vue';
|
import FetchData from 'components/FetchData.vue';
|
||||||
|
@ -17,12 +18,12 @@ const maritalStatus = [
|
||||||
{ code: 'M', name: t('Married') },
|
{ code: 'M', name: t('Married') },
|
||||||
{ code: 'S', name: t('Single') },
|
{ code: 'S', name: t('Single') },
|
||||||
];
|
];
|
||||||
async function setAdvancedSummary(data) {
|
|
||||||
const advanced = (await useAdvancedSummary('Workers', data.id)) ?? {};
|
onMounted(async () => {
|
||||||
|
const advanced = await useAdvancedSummary('Workers', useRoute().params.id);
|
||||||
Object.assign(form.value.formData, advanced);
|
Object.assign(form.value.formData, advanced);
|
||||||
await nextTick();
|
nextTick(() => (form.value.hasChanges = false));
|
||||||
if (form.value) form.value.hasChanges = false;
|
});
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
<FetchData
|
<FetchData
|
||||||
|
@ -42,7 +43,6 @@ async function setAdvancedSummary(data) {
|
||||||
:url-update="`Workers/${$route.params.id}`"
|
:url-update="`Workers/${$route.params.id}`"
|
||||||
auto-load
|
auto-load
|
||||||
model="Worker"
|
model="Worker"
|
||||||
@on-fetch="setAdvancedSummary"
|
|
||||||
>
|
>
|
||||||
<template #form="{ data }">
|
<template #form="{ data }">
|
||||||
<VnRow>
|
<VnRow>
|
||||||
|
|
|
@ -19,7 +19,7 @@ function notIsLocations(ifIsFalse, ifIsTrue) {
|
||||||
<template>
|
<template>
|
||||||
<VnCard
|
<VnCard
|
||||||
data-key="Zone"
|
data-key="Zone"
|
||||||
:url="notIsLocations('Zones', undefined)"
|
:url="notIsLocations(`Zones/${route.params.id}`, undefined)"
|
||||||
:descriptor="ZoneDescriptor"
|
:descriptor="ZoneDescriptor"
|
||||||
:filter="filter"
|
:filter="filter"
|
||||||
:filter-panel="notIsLocations(ZoneFilterPanel, undefined)"
|
:filter-panel="notIsLocations(ZoneFilterPanel, undefined)"
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/// <reference types="cypress" />
|
/// <reference types="cypress" />
|
||||||
describe('ClaimAction', () => {
|
describe.skip('ClaimAction', () => {
|
||||||
const claimId = 1;
|
const claimId = 1;
|
||||||
|
|
||||||
const firstRow = 'tbody > :nth-child(1)';
|
const firstRow = 'tbody > :nth-child(1)';
|
||||||
|
|
Loading…
Reference in New Issue