salix/print/templates/reports/buy-label-barcode/buy-label-barcode.html

94 lines
2.2 KiB
HTML
Raw Permalink Normal View History

2024-10-22 11:43:54 +00:00
<!DOCTYPE html>
<html>
<body table v-for="buy in buys" style="break-before: page">
2024-10-22 11:43:54 +00:00
<table>
<tr>
<td class="md-txt bold center black-bg lg-width md-height">
<div class="overflow-multiline">
{{buy.item}}
2024-10-22 11:43:54 +00:00
</div>
</td>
2024-10-23 07:46:06 +00:00
<td colspan="2" class="xl-txt bold center black-bg md-height md-width">
2024-10-22 11:43:54 +00:00
<div class="overflow-line">
{{buy.size}}
2024-10-22 11:43:54 +00:00
</div>
</td>
</tr>
<tr>
<td class="right lg-width">
<div class="overflow-line">
{{
(buy.longName && buy.size && buy.subName)
? `${buy.longName} ${buy.size} ${buy.subName}`
: buy.comment
}}
2024-10-22 11:43:54 +00:00
</div>
</td>
<td class="center sm-width">
<div class="overflow-line">
{{buy.producerName || buy.producerFk}}
2024-10-22 11:43:54 +00:00
</div>
</td>
<td class="center sm-width">
<div class="overflow-line">
{{buy.inkFk}}
2024-10-22 11:43:54 +00:00
</div>
</td>
</tr>
<tr>
<td class="md-txt xl-width bold center">
<div class="overflow-line">
{{buy.itemFk}}
2024-10-22 11:43:54 +00:00
</div>
</td>
<td colspan="2" class="md-txt md-width center">
<div class="overflow-line">
{{`${(packing || buy.packing)} x ${buy.stems || ''}`}}
2024-10-22 11:43:54 +00:00
</div>
</td>
</tr>
<tr>
<td rowspan="2" class="center">
<div v-html="getBarcode(buy.buyFk)"></div>
2024-10-22 11:43:54 +00:00
</td>
<td colspan="2" class="center md-width xs-height xs-txt">
<div v-if="buy.isLaid && typeId === 'buy'" class="overflow-line black-bg bold">
{{'LAID'}}
</div>
<div v-else class="overflow-line">
{{buy.entryFk}}
2024-10-22 11:43:54 +00:00
</div>
</td>
</tr>
<tr>
<td class="center xs-txt sm-width">
<div class="overflow-line">
{{buy.buyerName}}
2024-10-22 11:43:54 +00:00
</div>
</td>
<td class="center xs-txt sm-width">
<div class="overflow-line">
{{buy.origin}}
2024-10-22 11:43:54 +00:00
</div>
</td>
</tr>
<tr>
<td class="center xl-width">
<div class="overflow-line">
{{buy.buyFk}}
2024-10-22 11:43:54 +00:00
</div>
</td>
<td class="xs-txt sm-width center">
<div class="overflow-line">
{{date}}
</div>
</td>
<td class="xs-txt sm-width cursive center bold">
<div class="overflow-line">
{{`${buy.labelNum}/${buy.quantity / (packing || buy.packing)}`}}
2024-10-22 11:43:54 +00:00
</div>
</td>
</tr>
</table>
</body>
</html>