refs #5013 mostrar las observaciones del ticket
gitea/salix/pipeline/head There was a failure building this commit
Details
gitea/salix/pipeline/head There was a failure building this commit
Details
This commit is contained in:
parent
1d0024c538
commit
9ef5c0c560
|
@ -1,2 +1,2 @@
|
|||
INSERT INTO `vn`.`observationType` (`description`, `code`, `hasNewBornMessage`)
|
||||
VALUES ('Factura', 'invocieOut', '0');
|
||||
VALUES ('Factura', 'invoiceOut', '0');
|
||||
|
|
|
@ -119,16 +119,6 @@
|
|||
</td>
|
||||
<td class="number">{{ticketSubtotal(ticket) | currency('EUR', $i18n.locale)}}</td>
|
||||
</tr>
|
||||
<tr class="columns vn-mt-xl" v-if="ticket.description">
|
||||
<div class="size50 pull-left no-page-break">
|
||||
<div class="panel">
|
||||
<div class="header">{{$t('observations')}}</div>
|
||||
<div class="body">
|
||||
<div>{{ticket.description}}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
</div>
|
||||
|
@ -250,18 +240,22 @@
|
|||
</tfoot>
|
||||
</table>
|
||||
</div>
|
||||
<div class="columns vn-mt-xl" v-if="invoice.payMethodCode == 'wireTransfer'">
|
||||
<div class="columns vn-mt-xl" v-if="invoice.payMethodCode == 'wireTransfer' || ticketObservations">
|
||||
<div class="size50 pull-left no-page-break">
|
||||
<div class="panel">
|
||||
<div class="header">{{$t('observations')}}</div>
|
||||
<div class="body">
|
||||
<div v-if="invoice.payMethodCode == 'wireTransfer'">
|
||||
<div>{{$t('wireTransfer')}}</div>
|
||||
<div>{{$t('accountNumber', [invoice.iban])}}</div>
|
||||
</div>
|
||||
<div v-if="ticketObservations">
|
||||
{{ticketObservations}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<template v-slot:footer>
|
||||
|
|
|
@ -21,10 +21,13 @@ module.exports = {
|
|||
|
||||
const map = new Map();
|
||||
|
||||
this.ticketObservations = '';
|
||||
for (let ticket of tickets) {
|
||||
ticket.sales = [];
|
||||
|
||||
map.set(ticket.id, ticket);
|
||||
|
||||
if (ticket.description) this.ticketObservations += ticket.description + ' ';
|
||||
}
|
||||
|
||||
for (let sale of sales) {
|
||||
|
|
|
@ -4,8 +4,9 @@ SELECT
|
|||
t.nickname,
|
||||
tto.description
|
||||
FROM invoiceOut io
|
||||
JOIN ticket t ON t.refFk = io.ref
|
||||
JOIN ticket t ON t.refFk = io.REF
|
||||
LEFT JOIN observationType ot ON ot.code = 'invoiceOut'
|
||||
LEFT JOIN ticketObservation tto ON tto.ticketFk = t.id
|
||||
AND tto.observationTypeFk = (SELECT id FROM observationType WHERE code = 'invocieOut')
|
||||
AND tto.observationTypeFk = ot.id
|
||||
WHERE t.refFk = ?
|
||||
ORDER BY t.shipped
|
||||
|
|
Loading…
Reference in New Issue