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 { .phytosanitary-info {
margin-top: 10px margin-top: 10px
}
.observations{
text-align: justify;
text-justify: inter-word;
} }

View File

@ -263,6 +263,12 @@
</div> </div>
<!-- End of phytosanitary block --> <!-- End of phytosanitary block -->
</div> </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"> <div class="columns">
<!-- Signature block --> <!-- Signature block -->
<div class="size50 pull-left no-page-break"> <div class="size50 pull-left no-page-break">

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -2,7 +2,11 @@ SELECT
t.id, t.id,
t.shipped, t.shipped,
c.code companyCode, c.code companyCode,
t.packages t.packages,
tto.description,
ot.code
FROM ticket t FROM ticket t
JOIN company c ON c.id = t.companyFk 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;