Merge pull request 'refs #6041 hotfix agricola' (!1709) from 6041-hotfixAgricola into master
gitea/salix/pipeline/head This commit looks good Details

Reviewed-on: #1709
Reviewed-by: Alex Moreno <alexm@verdnatura.es>
This commit is contained in:
Carlos Satorres 2023-08-21 08:36:33 +00:00
commit 555306c5da
3 changed files with 6 additions and 1 deletions

View File

@ -32,6 +32,7 @@
<h3 class="uppercase">{{invoice.name}}</h3>
<div>{{invoice.postalAddress}}</div>
<div>{{invoice.postcodeCity}}</div>
<div>{{invoice.postCode}}, {{invoice.city}}, ({{invoice.province}})</div>
<div v-if="invoice.nif">{{$t('fiscalId')}}: {{invoice.nif}}</div>
<div v-if="invoice.phone">{{$t('phone')}}: {{invoice.phone}}</div>
</div>

View File

@ -4,6 +4,9 @@ SELECT
i.issued,
s.name,
s.street AS postalAddress,
s.city,
s.postCode,
pr.name province,
s.nif,
s.phone,
p.name payMethod
@ -11,4 +14,5 @@ SELECT
JOIN supplier s ON s.id = i.supplierFk
JOIN company c ON c.id = i.companyFk
JOIN payMethod p ON p.id = s.payMethodFk
LEFT JOIN province pr ON pr.id = s.provinceFk
WHERE i.id = ?