Thanks for your reply,
Yes I am using attach to function and one the status is select with checkbox but this is only work with new orde which are newly booked but if any order already placed before this so not working in that,
Like if new order coming with the status processing and i change the status to my order with completed so invoice is not create.
I already selected “complete” status option with attach to function but it’s not working. When I manually change the status