question

jeffdonthemic avatar image
jeffdonthemic asked chanel Deactivated answered

Find orders with items that have not been fired?

We have a scenario where a server does not hit the fire button so the order is not sent back to the kitchen printer. Is there a way to find orders that have items that have not been fired? I don't see anything in the API.
Orders
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

chanel avatar image
chanel Deactivated answered
The Order doesn't have a "fired/printed" field, but the lineItems in the Order do.

You would need to check each open Order and then check each lineItem for getPrinted(). If this returns False, then it hasn't been printed before.
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