refs #4650 observaciones añadidas
gitea/salix/pipeline/head There was a failure building this commit Details

This commit is contained in:
Alexandre Riera 2022-10-25 13:27:04 +02:00
parent e80754f280
commit 67402dfe5e
8 changed files with 29 additions and 6 deletions

View File

@ -37,4 +37,9 @@ h2 {
.phytosanitary-info {
margin-top: 10px
}
.observations{
text-align: justify;
text-justify: inter-word;
}

View File

@ -263,6 +263,12 @@
</div>
<!-- End of phytosanitary block -->
</div>
<div class="columns vn-mb-ml">
<!-- Observations block-->
<div class="size100 no-page-break" v-if="hasObservations">
<h2>{{$t('observations')}}</h2>
<p class="observations">{{ticket.description}}</p>
</div>
<div class="columns">
<!-- Signature block -->
<div class="size50 pull-left no-page-break">

View File

@ -55,6 +55,7 @@ module.exports = {
const translatedType = this.$t(this.deliverNoteType);
return `${translatedType} ${this.id}`;
}
},
methods: {
fetchClient(id) {
@ -119,6 +120,9 @@ module.exports = {
return phytosanitary.filter((item, index) =>
phytosanitary.indexOf(item) == index
).join(', ');
},
hasObservations() {
return this.ticket.code == 'deliveryNote' && this.ticket.description != null;
}
},
components: {

View File

@ -46,4 +46,5 @@ taxes:
fee: Fee
tfoot:
subtotal: Subtotal
total: Total
total: Total
observations: Observations

View File

@ -47,4 +47,5 @@ taxes:
fee: Cuota
tfoot:
subtotal: Subtotal
total: Total
total: Total
observations: Observaciones

View File

@ -47,4 +47,5 @@ taxes:
fee: Quote
tfoot:
subtotal: Total partiel
total: Total
total: Total
observations: Observations

View File

@ -47,4 +47,5 @@ taxes:
fee: Compartilhado
tfoot:
subtotal: Subtotal
total: Total
total: Total
observations: Observações

View File

@ -2,7 +2,11 @@ SELECT
t.id,
t.shipped,
c.code companyCode,
t.packages
t.packages,
tto.description,
ot.code
FROM ticket t
JOIN company c ON c.id = t.companyFk
WHERE t.id = ?
LEFT JOIN ticketObservation tto ON tto.ticketFk = t.id
LEFT JOIN observationType ot ON tto.observationTypeFk = ot.id
WHERE t.id = 1;