3444-print_claim-pickup-order add client.phone #829

Merged
carlosjr merged 2 commits from 3444-print_claim-pickup-order into dev 2021-12-24 09:51:21 +00:00
3 changed files with 10 additions and 2 deletions

View File

@ -23,6 +23,10 @@
<td class="font gray uppercase">{{$t('clientId')}}</td>
<th>{{client.id}}</th>
</tr>
<tr>
<td class="font gray uppercase">{{$t('phone')}}</td>
<th>{{client.phone}}</th>
</tr>
<tr>
<td class="font gray uppercase">{{$t('date')}}</td>
<th>{{dated}}</th>

View File

@ -9,6 +9,7 @@ reference: Referencia
concept: Concepto
clientSignature: Firma del cliente
claim: Reclamación {0}
phone: Teléfono
sections:
agency:
description: 'Para agilizar su recogida, por favor, póngase en contacto con la oficina

View File

@ -8,7 +8,8 @@ SELECT
a.street,
a.nickname,
p.name AS province,
ct.country
ct.country,
IFNULL(c.phone, cc.phone) AS phone
FROM claim cl
JOIN client c ON c.id = cl.clientFk
JOIN account.user u ON u.id = c.id
@ -17,4 +18,6 @@ FROM claim cl
LEFT JOIN province p ON p.id = a.provinceFk
LEFT JOIN autonomy amy ON amy.id = p.autonomyFk
LEFT JOIN country ct ON ct.id = amy.countryFk
WHERE cl.id = ?
LEFT JOIN clientContact cc ON cc.clientFk = c.id
WHERE cl.id = ?
LIMIT 1;