콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
2 답글
14830 화면

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
6175
0
3월 15
4899
0
6월 15
4798
0
3월 15
4968
Stock 해결 완료
1
9월 24
1211