Merge pull request 'refs #7393 Modify night ticket closing report' (!2487) from 7393-Night_tcket_closing_report into dev
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
Reviewed-on: #2487 Reviewed-by: Alex Moreno <alexm@verdnatura.es>
This commit is contained in:
commit
f810c9ffa8
|
@ -71,7 +71,8 @@ module.exports = Self => {
|
||||||
JSON_ARRAYAGG(
|
JSON_ARRAYAGG(
|
||||||
JSON_OBJECT(
|
JSON_OBJECT(
|
||||||
'ticketId', ticketFk,
|
'ticketId', ticketFk,
|
||||||
'reason', reason
|
'reason', reason,
|
||||||
|
'clientId', clientFk
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
)errors
|
)errors
|
||||||
|
@ -83,7 +84,8 @@ module.exports = Self => {
|
||||||
IF(hasErrorDeleted, 'Eliminado', NULL),
|
IF(hasErrorDeleted, 'Eliminado', NULL),
|
||||||
IF(hasErrorItemTaxCountry, 'Impuesto no informado', NULL),
|
IF(hasErrorItemTaxCountry, 'Impuesto no informado', NULL),
|
||||||
IF(hasErrorAddress, 'Sin dirección', NULL),
|
IF(hasErrorAddress, 'Sin dirección', NULL),
|
||||||
IF(hasErrorInfoTaxAreaWorld, 'Datos exportaciones', NULL)) reason
|
IF(hasErrorInfoTaxAreaWorld, 'Datos exportaciones', NULL)) reason,
|
||||||
|
clientFk
|
||||||
FROM (
|
FROM (
|
||||||
SELECT t.id ticketFk,
|
SELECT t.id ticketFk,
|
||||||
SUM(NOT c.hasToInvoice) hasErrorToInvoice,
|
SUM(NOT c.hasToInvoice) hasErrorToInvoice,
|
||||||
|
@ -93,7 +95,8 @@ module.exports = Self => {
|
||||||
SUM(a.id IS NULL) hasErrorAddress,
|
SUM(a.id IS NULL) hasErrorAddress,
|
||||||
SUM(ios.code IS NOT NULL
|
SUM(ios.code IS NOT NULL
|
||||||
AND(ad.customsAgentFk IS NULL
|
AND(ad.customsAgentFk IS NULL
|
||||||
OR ad.incotermsFk IS NULL)) hasErrorInfoTaxAreaWorld
|
OR ad.incotermsFk IS NULL)) hasErrorInfoTaxAreaWorld,
|
||||||
|
t.clientFk clientFk
|
||||||
FROM ticket t
|
FROM ticket t
|
||||||
LEFT JOIN address ad ON ad.id = t.addressFk
|
LEFT JOIN address ad ON ad.id = t.addressFk
|
||||||
JOIN sale s ON s.ticketFk = t.id
|
JOIN sale s ON s.ticketFk = t.id
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
<div v-for="ticket in tickets" class="grid-block vn-px-ml">
|
<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.ticketId"><b>{{ $t('ticketId') }}:</b> {{ticket.ticketId}}</p>
|
||||||
<p v-if="ticket.reason"><b>{{ $t('reason') }}:</b> {{ticket.reason}}</p>
|
<p v-if="ticket.reason"><b>{{ $t('reason') }}:</b> {{ticket.reason}}</p>
|
||||||
|
<p v-if="ticket.clientId"><b>{{ $t('clientId')}}</b>{{ticket.clientId}}</p>
|
||||||
<hr>
|
<hr>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -2,3 +2,4 @@ subject: Nightly ticket closing process report
|
||||||
title: Nightly ticket closing process report
|
title: Nightly ticket closing process report
|
||||||
reason: Reason
|
reason: Reason
|
||||||
ticketId: Ticket
|
ticketId: Ticket
|
||||||
|
clientId: Client
|
|
@ -2,3 +2,4 @@ subject: Informe proceso de cierre de tickets nocturno
|
||||||
title: Informe proceso de cierre de tickets nocturno
|
title: Informe proceso de cierre de tickets nocturno
|
||||||
reason: Motivo
|
reason: Motivo
|
||||||
ticketId: Ticket
|
ticketId: Ticket
|
||||||
|
clientId: Cliente
|
Loading…
Reference in New Issue