We want to print barcode for loose packing of grain store using weight scale. How does it possible?
Firstly, @Nilmay welcome to the community,
You have to create a new print format and making the “Print Format Type” is Jinja.
And write this HTML Code:
<div style="text-align: center; backgound: #000000; margin-top: 0 px; margin-bottom: 0 px; height:12px;"> </div>
<div style="text-align: center; backgound: #000000; margin-top: 0 px; margin-bottom: 0 px;height:15px;">Your Company Name if there any Need</div>
<div style="margin-right:5px; border: #000 solid 0px; height:14px; overflow:hidden; text-align: center; backgound: #000000; margin-top: 0 px; margin-bottom: 0 px;">{{doc.item_name}}</div>
<div style="text-align:center; backgound:#000000" >
<svg class="barcode"
jsbarcode-margin="0"
jsbarcode-margintop="5"
jsbarcode-marginright="15"
jsbarcode-marginleft="1"
jsbarcode-height="25"
jsbarcode-width="1"
jsbarcode-fontsize="12"
jsbarcode-textalign="Center"
jsbarcode-value="{{doc.name}}"/>
</div>
<script src="https://cdn.jsdelivr.net/npm/jsbarcode@3.9.0/dist/JsBarcode.all.min.js"></script>
<script>
JsBarcode(".barcode").init();
</script>
<div style="text-align: center; backgound: #000000; margin-top: 0 px; margin-bottom: 0 px;
height:14px; margin-right:10px;">{{doc.weight_per_unit}}</div>
Please let me know if there are any queries.
1 Like