question

marc-omorain avatar image
marc-omorain asked marc-omorain commented

How to print customer name on receipt

I'm trying to add customer details to a printed receipt.

In my app I have the following code:

StaticBillPrintJob.Builder()
                .order(order)
                .flag(StaticBillPrintJob.FLAG_CUSTOMER)
                .build()
                .print(context, account, printer)

But this does not result in the customer information being added to the printed receipt.

I can get the data to print when I manually enable customer data to be printed in the Clover settings app, but I want to be able to override that setting and print customer information regardless of that setting.

Are there any docs for the print job flags?

10 |2000

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

1 Answer

Jeffrey Blattman avatar image
Jeffrey Blattman answered marc-omorain commented

That's not possible today. I will file an internal issue to have this feature added to our SDK. Unfortunately I do not have an ETA.

This probably isn't a reasonable workaround, but you cam use View/ImagePrintJob to construct your own custom receipt and put whatever you like on it.

1 comment
10 |2000

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

marc-omorain avatar image marc-omorain commented ·

Thanks Jeff

0 Likes 0 ·

Welcome to the
Clover Developer Community