refs #4650 observaciones añadidas
gitea/salix/pipeline/head There was a failure building this commit
Details
gitea/salix/pipeline/head There was a failure building this commit
Details
This commit is contained in:
parent
e80754f280
commit
67402dfe5e
|
@ -38,3 +38,8 @@ h2 {
|
||||||
.phytosanitary-info {
|
.phytosanitary-info {
|
||||||
margin-top: 10px
|
margin-top: 10px
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.observations{
|
||||||
|
text-align: justify;
|
||||||
|
text-justify: inter-word;
|
||||||
|
}
|
|
@ -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">
|
||||||
|
|
|
@ -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: {
|
||||||
|
|
|
@ -47,3 +47,4 @@ taxes:
|
||||||
tfoot:
|
tfoot:
|
||||||
subtotal: Subtotal
|
subtotal: Subtotal
|
||||||
total: Total
|
total: Total
|
||||||
|
observations: Observations
|
|
@ -48,3 +48,4 @@ taxes:
|
||||||
tfoot:
|
tfoot:
|
||||||
subtotal: Subtotal
|
subtotal: Subtotal
|
||||||
total: Total
|
total: Total
|
||||||
|
observations: Observaciones
|
|
@ -48,3 +48,4 @@ taxes:
|
||||||
tfoot:
|
tfoot:
|
||||||
subtotal: Total partiel
|
subtotal: Total partiel
|
||||||
total: Total
|
total: Total
|
||||||
|
observations: Observations
|
|
@ -48,3 +48,4 @@ taxes:
|
||||||
tfoot:
|
tfoot:
|
||||||
subtotal: Subtotal
|
subtotal: Subtotal
|
||||||
total: Total
|
total: Total
|
||||||
|
observations: Observações
|
|
@ -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;
|
Loading…
Reference in New Issue