#8225 use VnMoreOptions #1194

Merged
jon merged 11 commits from 8225-UseSameMoreOptions into dev 2025-01-13 09:17:18 +00:00
7 changed files with 26 additions and 21 deletions
Showing only changes of commit 413d567ffb - Show all commits

View File

@ -52,7 +52,6 @@ onMounted(async () => {
<AccountDescriptorMenu :entity-id="entityId" />
</template>
<template #before>
<!-- falla id :id="entityId.value" collection="user" size="160x160" -->
<VnImg :id="entityId" collection="user" resolution="520x520" class="photo">
jon marked this conversation as resolved Outdated

esto?

esto?
<template #error>
<div

View File

@ -9,6 +9,7 @@ import VnConfirm from 'src/components/ui/VnConfirm.vue';
import VnChangePassword from 'src/components/common/VnChangePassword.vue';
import useNotify from 'src/composables/useNotify.js';
import useHasAccount from 'src/composables/useHasAccount.js';
import VnInputPassword from 'src/components/common/VnInputPassword.vue';
const $props = defineProps({
entityId: {
@ -97,7 +98,7 @@ async function sync() {
<QTooltip>{{ t('account.card.actions.sync.tooltip') }}</QTooltip>
</QIcon></QCheckbox
>
jon marked this conversation as resolved Outdated

porque se quita?

porque se quita?
<QInput
<VnInputPassword
v-if="shouldSyncPassword"
:label="t('login.password')"
v-model="syncPassword"

View File

@ -22,7 +22,7 @@ const entityId = computed(() => $props.id || +currentRoute.value.params.id);
const totalAmount = ref();
const config = ref();
const cplusRectificationTypes = ref([]);
const siiTypeInvoiceOuts = ref([]);
const siiTypeInvoiceIns = ref([]);
jon marked this conversation as resolved Outdated

si el archivo es invoiceIn es extraño aquí un out

si el archivo es invoiceIn es extraño aquí un out
const invoiceCorrectionTypes = ref([]);
const filter = {
@ -144,9 +144,9 @@ const createInvoiceInCorrection = async () => {
auto-load
/>
<FetchData
url="SiiTypeInvoiceOuts"
url="SiiTypeInvoiceIns"
jon marked this conversation as resolved Outdated

es correcto el outs?

es correcto el outs?
:where="{ code: { like: 'R%' } }"
@on-fetch="(data) => (siiTypeInvoiceOuts = data)"
@on-fetch="(data) => (siiTypeInvoiceIns = data)"
auto-load
/>
<FetchData
@ -248,7 +248,7 @@ const createInvoiceInCorrection = async () => {
<VnSelect
:label="`${useCapitalize(t('globals.class'))}`"
v-model="correctionFormData.invoiceClass"
:options="siiTypeInvoiceOuts"
:options="siiTypeInvoiceIns"
option-value="id"
option-label="code"
:required="true"

View File

@ -73,8 +73,8 @@ async function toUnbook() {
const type = isLinked ? 'warning' : 'positive';
const message = isLinked
? t('InvoiceIn.descriptorMenu.isLinked', { bookEntry, accountingEntries })
: t('InvoiceIn.descriptorMenu.isNotLinked', { bookEntry });
? t('isLinked', { bookEntry })
: t('isNotLinked', { bookEntry, accountingEntries });
quasar.notify({ type, message });
if (!isLinked) arrayData.store.data.isBooked = false;
@ -186,10 +186,21 @@ function sendPdfInvoice({ address }) {
@click="triggerMenu('correct')"
>
<QItemSection
>{{ t('InvoiceIn.descriptorMenu.createRectificative') }}...</QItemSection
>{{ t('InvoiceIn.descriptorMenu.createCorrective') }}...</QItemSection
>
</QItem>
<QItem v-if="invoice.dmsFk" v-ripple clickable @click="downloadFile(invoice.dmsFk)">
<QItemSection>{{ t('components.smartCard.downloadFile') }}</QItemSection>
</QItem>
</template>
<i18n>
en:
isNotLinked: The entry {bookEntry} has been deleted with {accountingEntries} entries
isLinked: The entry has been linked to Sage. Please contact administration for further information
assertAction: Are you sure you want to {action} this invoice?
es:
isNotLinked: Se ha eliminado el asiento {bookEntry} con {accountingEntries} apuntes
isLinked: El asiento fue enlazado a Sage, por favor contacta con administración
assertAction: Estas seguro de querer {action} esta factura?
</i18n>

View File

@ -27,13 +27,10 @@ InvoiceIn:
sendAgriculturalPdf: Send agricultural receipt as PDF
checkSendInvoice: Are you sure you want to send it?
sendPdfInvoice: Send PDF invoice
createRectificative: Create rectificative invoice
rectificativeInvoice: Rectificative invoice
createCorrective: Create rectificative invoice
jon marked this conversation as resolved Outdated

createCorrective

elimina el uso de la palabra Rectificative por corrective

createCorrective elimina el uso de la palabra Rectificative por corrective
correctiveInvoice: Rectificative invoice
originalInvoice: Original invoice
entry: Entry
isNotLinked: The entry {bookEntry} has been deleted with {accountingEntries} entries
isLinked: The entry {bookEntry} has been linked to Sage. Please contact administration for further information
assertAction: Are you sure you want to {action} this invoice?
emailEmpty: The email can't be empty
card:
client: Client

View File

@ -27,13 +27,10 @@ InvoiceIn:
sendAgriculturalPdf: Enviar recibo agrícola como PDF
checkSendInvoice: ¿Estás seguro que quieres enviarlo?
sendPdfInvoice: Enviar factura a PDF
createRectificative: Crear factura rectificativa
rectificativeInvoice: Factura rectificativa
createCorrective: Crear factura rectificativa
correctiveInvoice: Factura rectificativa
originalInvoice: Factura origen
entry: Entrada
isNotLinked: Se ha eliminado el asiento nº {bookEntry} con {accountingEntries} apuntes
isLinked: El asiento {bookEntry} fue enlazado a Sage, por favor contacta con administración
assertAction: Estas seguro de querer {action} esta factura?
emailEmpty: El email no puede estar vacío
card:
client: Cliente
jon marked this conversation as resolved Outdated

Estás

Estás

View File

@ -1,7 +1,7 @@
/// <reference types="cypress" />
describe('InvoiceInCorrective', () => {
const createRectificative = '.q-menu > .q-list > :nth-child(6) > .q-item__section';
const createCorrective = '.q-menu > .q-list > :nth-child(6) > .q-item__section';
const rectificativeSection = '.q-drawer-container .q-list > a:nth-child(6)';
const saveDialog = '.q-card > .q-card__actions > .q-btn--standard ';
@ -13,7 +13,7 @@ describe('InvoiceInCorrective', () => {
cy.openActionsDescriptor();
cy.get(createRectificative).click();
cy.get(createCorrective).click();
cy.get(saveDialog).click();
cy.wait('@corrective').then((interception) => {
const correctingId = interception.response.body;