fix: closeTicket idem salix Refs: #6549
gitea/salix/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Carlos Andrés 2024-04-04 14:20:55 +02:00
parent 1315a854a9
commit 75a4d6947f
4 changed files with 7 additions and 12 deletions

View File

@ -1,12 +1,12 @@
<email-body v-bind="$props">
<div class="grid-row">
<div class="grid-block vn-px-ml centered">
<h1>{{ $t('title') }} {{ $t('total') }}: {{tickets.length}}</h1>
<h1>{{ $t('title') }}</h1>
<hr>
</div>
<div v-for="ticket in tickets" class="grid-block vn-px-ml">
<p v-if="ticket.ticketId"><b>{{ $t('ticketId') }}:</b> {{ticket.ticketId}}</p>
<p v-if="ticket.description"><b>{{ $t('description') }}:</b> {{ticket.description}}</p>
<p v-if="ticket.reason"><b>{{ $t('reason') }}:</b> {{ticket.reason}}</p>
<hr>
</div>
</div>

View File

@ -1,5 +1,5 @@
const Component = require(`vn-print/core/component`);
const emailBody = new Component();
const emailBody = new Component('email-body');
module.exports = {
name: 'invoice-ticket-closure',
@ -7,13 +7,9 @@ module.exports = {
'email-body': emailBody.build(),
},
props: {
ticketId: {
type: Number,
tickets: {
type: Array,
required: true
},
description: {
type: String,
required: true
}
}
};

View File

@ -1,5 +1,4 @@
subject: Nightly ticket closing process report
title: Nightly ticket closing process report
description: Description
reason: Reason
ticketId: Ticket No

View File

@ -1,4 +1,4 @@
subject: Informe proceso de cierre de tickets nocturno
title: Informe proceso de cierre de tickets nocturno
description: Descripción
reason: Motivo
ticketId: Ticket nº