question

Ajmal M A avatar image
Ajmal M A asked Jeffrey Blattman answered

Is possible to take print of Partial Order?

I want to take the print by removing some of the Lineitems in Order. Currently I use following code to take print order.

PrintJob pj = new StaticOrderPrintJob.Builder().markPrinted(true).order(order).build();
pj.print(context, CloverAccount.getAccount(context));

It print full list of order items. Can i able to print partial order ( 4 of 5 items ) ?

Please help me with some code samples.

OrdersPrint
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 are passing in the Order object to print, so you can make any modifications you want to it prior to printing such as removing line items.

"Mark printed" controls whether the line items will me marked as printed, not whether or not they will be printed. Marking printed has particular semantics to the larger system such as not being able to be removed from an order without manager override.

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