Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
14795 มุมมอง

i want to print a barcode on pos receipt with order ID as the barcode number. Point of sale receipt was found on addons/point_of_sale/static/src/xml/pos.xml. How do i easily add a barcode at the end of the receipt?

อวตาร
ละทิ้ง

you can use python barcode library to generate it. modify the xml and js.

คำตอบที่ดีที่สุด

You can use jquery.barcode.js file.

And in xml, you can do like this in bottom of receipt where you want to print barcode.

<table id="barcode_table" style="width:100%">

<tbody></tbody>

</table>


and from JS, you have to generate dynamic body part.

and following code will print barcode,

$('123456789').barcode(div_id, "code128")


Happy to help you if you do not understand.


Thanks,

Acespritech Solutions Pvt. Ltd.

Skype: acespritech

info@acespritech.com

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Use this barcode jquery plugins.

http://barcode-coder.com/en/barcode-jquery-plugin-201.html

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
มี.ค. 15
6155
0
มี.ค. 15
4874
0
มิ.ย. 15
4776
0
มี.ค. 15
4933
Stock แก้ไขแล้ว
1
ก.ย. 24
1182