コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
14796 ビュー

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

アバター
破棄
関連投稿 返信 ビュー 活動
1
3月 15
6158
0
3月 15
4874
0
6月 15
4776
0
3月 15
4933
Stock 解決済
1
9月 24
1183