question

01928-7325x2 avatar image
01928-7325x2 asked Jeffrey Blattman answered

Order Line Item Not Marked As Printed

I'm wondering when the lineItems in an order marked as printed (printed = true). I tested some orders and print it but the lineItems in the order not marked as printed.

Another problem is some order printed only some items (eg. only 2 items from 5 items in the order)

Here is the Android code I use to print

Account account = CloverAccount.getAccount(getApplicationContext());

PrintJob print_job = new OrderPrintJob.Builder().orderId(order_id).build();

print_job.print(getApplicationContext(), account, printer);
PrintLineItems
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

You must manually mark it printed yourself. See StaticOrderPrintJob.markPrinted().

Also, do not use the non-Static* print jobs. They are deprecated and may not work correctly.

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