fix: refs #7553 refs #7356 fix generatePdf function
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
This commit is contained in:
parent
6b2df03b06
commit
ffa6ef57fe
|
@ -13,6 +13,7 @@ import FormPopup from 'components/FormPopup.vue';
|
|||
import VnSelect from 'components/common/VnSelect.vue';
|
||||
import FetchData from 'components/FetchData.vue';
|
||||
import VnInputTime from 'src/components/common/VnInputTime.vue';
|
||||
import { useAcl } from 'src/composables/useAcl';
|
||||
|
||||
const props = defineProps({
|
||||
ticket: {
|
||||
|
@ -34,7 +35,7 @@ const showTurnDialog = ref(false);
|
|||
const showChangeTimeDialog = ref(false);
|
||||
const dialogRef = ref();
|
||||
const isEditable = ref();
|
||||
const hasInvoicing = ref();
|
||||
const hasInvoicing = useAcl('invoicing');
|
||||
const hasPdf = ref();
|
||||
const actions = {
|
||||
clone: async () => {
|
||||
|
@ -529,18 +530,17 @@ async function handleInvoiceOutData() {
|
|||
</QItemSection>
|
||||
<QItemSection>{{ t('Make invoice') }}</QItemSection>
|
||||
</QItem>
|
||||
<!--TODO: acabar esta parte, falta el campo hasInvoicing-->
|
||||
<QItem
|
||||
@click="generatePdfDialog()"
|
||||
v-ripple
|
||||
clickable
|
||||
v-if="ticket.refFk !== null && (ticket.hasInvoicing || hasPdf)"
|
||||
v-if="ticket.refFk !== null && (hasInvoicing || hasPdf)"
|
||||
>
|
||||
<QItemSection avatar>
|
||||
<QIcon name="picture_as_pdf" />
|
||||
</QItemSection>
|
||||
<QItemSection>{{
|
||||
hasPdf.value ? t('Regenerate PDF invoice') : t('Generate PDF invoice')
|
||||
hasPdf ? t('Regenerate PDF invoice') : t('Generate PDF invoice')
|
||||
}}</QItemSection>
|
||||
</QItem>
|
||||
<QItem @click="openConfirmDialog('clone')" v-ripple clickable>
|
||||
|
|
Loading…
Reference in New Issue