Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
2 Відповіді
14825 Переглядів

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
6174
0
бер. 15
4897
0
черв. 15
4798
0
бер. 15
4961
Stock Вирішено
1
вер. 24
1208