question

nirmal avatar image
nirmal Suspended asked Jeffrey Blattman commented

can we create and print our own customized receipt.

Hello, We are using clover platform to develop our own POS application . We need custom receipt to print. Is it possible to do so ?

3 comments
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

haulx94 avatar image haulx94 commented ·

Hi Nirmal.

Which clover platform you're using (Mini, Station, Mobile)? and What OS does you POS app based on(Windows, Android, IOS)?

Hau.

0 Likes 0 ·
Conrad McLean avatar image Conrad McLean commented ·
Hello,

I have a similar question. Say I have an order with 20 items, Can I break that up into multiple receipts? I need to print 1 receipt for the customer, then multiple "Work Order" receipts for different vendors.
0 Likes 0 ·
Jeffrey Blattman avatar image Jeffrey Blattman ♦♦ Conrad McLean commented ·

You can print order receipts. When printing order receipts, you can choose which line items are printed.

0 Likes 0 ·
miaaa avatar image
miaaa answered

Based on my understanding, you can do in following ways

1)static receipt content by using smart receipt. Here is the link: https://docs.clover.com/build/smart-r... But smart receipt does not work at this time. Reference: https://devask.clover.com/question/58...

2) Or you can do dynamic receipt content, here is code example: https://github.com/clover/android-exa...

10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Jeffrey Blattman avatar image
Jeffrey Blattman answered

Using ViewPrintJob or ImagePrintJob you can send arbitrary data to the printer. It's up to you to format the data to your liking. ViewPrintJob might make that a little easier as you can Android Views to formulate the receipt layout.

If you just need plain text, you can use TextPrintJob. You can only send lines of plain text to the printer here though.

10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community