Skip to Content
Menu
This question has been flagged
2 Replies
5108 Views

I would like to prominently put the order number on the PoS receipt and on the printed order on the kitchen printer. With the default configuration the order number is very small at the bottom and a long number. How can I achieve a simple counting number, printed in a big, good readable font?

Avatar
Discard
Best Answer

did you found solution

Avatar
Discard
Best Answer

POS Receipt number is not the same as  order number. POS unique_id is concatenated as session.id + session.login + sequence. I quote author comments:

// Generates a public identification number for the order.
// The generated number must be unique and sequential. They are made 12 digit long
// to fit into EAN-13 barcodes, should it be needed

See file (or modify it) addons/point_of_sale/static/src/js/models.js



Avatar
Discard
Author

Thank you for this information. How can I increase the font and location of this number on the receipt?

You can found the css and xml files for POS in point_of_sale/static/src you can edit css and PosTicket and XmlReceipt in pos.xml from there. This post can help you: https://www.odoo.com/forum/help-1/question/how-to-inherit-posticket-template-76633

Author

That helps a lot to understand it way better. But nevertheless I'm a bit lost with the CSS definitions, I'm not sure what to do to increase the font size of the receipt number. Are there any examples?

@Tobias : Just search `.pos-sale-ticket` in odoo/addons/point_of_sale/static/src/css/pos.css file.

Here you can find:

`.pos .pos-sale-ticket {

text-align: left;

width: 300px;

background-color: white;

margin: 20px;

padding: 15px;

font-size: 14px;

padding-bottom:30px;

display: inline-block;

font-family: "Inconsolata";

border: solid 1px rgb(220,220,220);

border-radius: 3px;

overflow: hidden;

} `

This code.Edit accordingly to your needs

Related Posts Replies Views Activity
0
Dec 24
46
1
Dec 24
173
0
Nov 24
86
1
Nov 24
152
1
Nov 24
187