diff --git a/src/css/app.scss b/src/css/app.scss index bcc75ab38d..f11ab865c1 100644 --- a/src/css/app.scss +++ b/src/css/app.scss @@ -17,9 +17,9 @@ a { // Removes chrome autofill background input:-webkit-autofill, select:-webkit-autofill { - color: var(--vn-text) ; + color: var(--vn-text); font-family: $typography-font-family; - -webkit-text-fill-color: var(--vn-text) ; + -webkit-text-fill-color: var(--vn-text); -webkit-background-clip: text !important; background-clip: text !important; } @@ -48,6 +48,10 @@ body.body--dark { background-color: var(--vn-dark); } +.color-vn-text { + color: var(--vn-text); +} + .vn-card { background-color: var(--vn-gray); color: var(--vn-text); diff --git a/src/i18n/es/index.js b/src/i18n/es/index.js index 82b4f980be..c8e5cd2f9e 100644 --- a/src/i18n/es/index.js +++ b/src/i18n/es/index.js @@ -339,7 +339,7 @@ export default { description: 'Descripción', }, descriptor: { - agency: 'Agency', + agency: 'Agencia', landed: 'F. entrega', warehouseOut: 'Alm. salida', }, diff --git a/src/pages/Entry/Card/EntryDescriptor.vue b/src/pages/Entry/Card/EntryDescriptor.vue index e4aaaf291f..b1658ccd33 100644 --- a/src/pages/Entry/Card/EntryDescriptor.vue +++ b/src/pages/Entry/Card/EntryDescriptor.vue @@ -8,6 +8,7 @@ import VnLv from 'src/components/ui/VnLv.vue'; import useCardDescription from 'src/composables/useCardDescription'; import { toDate } from 'src/filters'; +import { usePrintService } from 'composables/usePrintService'; const $props = defineProps({ id: { @@ -23,6 +24,7 @@ const $props = defineProps({ const route = useRoute(); const { t } = useI18n(); +const { openReport } = usePrintService(); const entryFilter = { include: [ @@ -61,6 +63,14 @@ const entryFilter = { ], }; +const entityId = computed(() => { + return $props.id || route.params.id; +}); + +const data = ref(useCardDescription()); +const setData = (entity) => + (data.value = useCardDescription(entity.supplier.nickname, entity.id)); + const getEntryRedirectionFilter = (entry) => { let entryTravel = entry && entry.travel; @@ -82,13 +92,9 @@ const getEntryRedirectionFilter = (entry) => { }); }; -const entityId = computed(() => { - return $props.id || route.params.id; -}); - -const data = ref(useCardDescription()); -const setData = (entity) => - (data.value = useCardDescription(entity.supplier.nickname, entity.id)); +const showEntryReport = () => { + openReport(`Entries/${route.params.id}/entry-order-pdf`); +};