7525-devToTest #419

Merged
alexm merged 177 commits from 7525-devToTest into test 2024-06-04 08:06:27 +00:00
2 changed files with 16 additions and 18 deletions
Showing only changes of commit ef9f8b8705 - Show all commits

View File

@ -17,10 +17,11 @@ const quasar = useQuasar();
const { t } = useI18n(); const { t } = useI18n();
const dms = ref({}); const dms = ref({});
const route = useRoute();
const editDownloadDisabled = ref(false); const editDownloadDisabled = ref(false);
const invoiceIn = computed(() => useArrayData('InvoiceIn').store.data); const invoiceIn = computed(() => useArrayData(route.meta.moduleName).store.data);
const userConfig = ref(null); const userConfig = ref(null);
const invoiceId = computed(() => +useRoute().params.id); const invoiceId = computed(() => +route.params.id);
const expenses = ref([]); const expenses = ref([]);
const currencies = ref([]); const currencies = ref([]);

View File

@ -27,7 +27,7 @@ const quasar = useQuasar();
const { hasAny } = useRole(); const { hasAny } = useRole();
const { t } = useI18n(); const { t } = useI18n();
const { openReport, sendEmail } = usePrintService(); const { openReport, sendEmail } = usePrintService();
const { store } = useArrayData('InvoiceIn'); const { store } = useArrayData(currentRoute.value.meta.moduleName);
const invoiceIn = computed(() => store.data); const invoiceIn = computed(() => store.data);
const cardDescriptorRef = ref(); const cardDescriptorRef = ref();
@ -41,26 +41,20 @@ const siiTypeInvoiceOuts = ref([]);
const invoiceCorrectionTypes = ref([]); const invoiceCorrectionTypes = ref([]);
const actions = { const actions = {
unbook: { unbook: {
title: 'Are you sure you want to unbook this invoice?', title: t('assertAction', { action: t('unbook') }),
action: toUnbook, action: toUnbook,
}, },
delete: { delete: {
title: 'Are you sure you want to delete this invoice?', title: t('assertAction', { action: t('delete') }),
action: deleteInvoice, action: deleteInvoice,
}, },
clone: { clone: {
title: 'Are you sure you want to clone this invoice?', title: t('assertAction', { action: t('clone') }),
action: cloneInvoice, action: cloneInvoice,
}, },
showPdf: { showPdf: { cb: showPdfInvoice },
cb: showPdfInvoice, sendPdf: { cb: sendPdfInvoiceConfirmation },
}, correct: { cb: () => correctionDialogRef.value.show() },
sendPdf: {
cb: sendPdfInvoiceConfirmation,
},
correct: {
cb: () => correctionDialogRef.value.show(),
},
}; };
const filter = { const filter = {
include: [ include: [
@ -514,13 +508,15 @@ const createInvoiceInCorrection = async () => {
en: en:
isNotLinked: The entry {bookEntry} has been deleted with {accountingEntries} entries 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 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?
es: es:
book: asentar
unbook: desasentar
delete: eliminar
clone: clonar
To book: Contabilizar To book: Contabilizar
To unbook: Descontabilizar To unbook: Descontabilizar
Are you sure you want to book this invoice?: Estas seguro de querer asentar esta factura?
Are you sure you want to unbook this invoice?: Estas seguro de querer desasentar esta factura?
Delete invoice: Eliminar factura Delete invoice: Eliminar factura
Are you sure you want to delete this invoice?: Estas seguro de querer eliminar esta factura?
Invoice deleted: Factura eliminada Invoice deleted: Factura eliminada
Clone invoice: Clonar factura Clone invoice: Clonar factura
Invoice cloned: Factura clonada Invoice cloned: Factura clonada
@ -534,4 +530,5 @@ es:
Entry: entrada Entry: entrada
isNotLinked: Se ha eliminado el asiento {bookEntry} con {accountingEntries} apuntes isNotLinked: Se ha eliminado el asiento {bookEntry} con {accountingEntries} apuntes
isLinked: El asiento {bookEntry} fue enlazado a Sage, por favor contacta con administración isLinked: El asiento {bookEntry} fue enlazado a Sage, por favor contacta con administración
assertAction: Estas seguro de querer {action} esta factura?
</i18n> </i18n>