I think my own courier should use the courier application so that customers receive notifications about the status of the order, if the restaurant itself marks it as delivered after the courier returns, then there is no point in using the application, this can be done by calling the restaurant's call center, and the site will simply collect the order online.
But if we come up with a button to turn on earnings for each courier, such a problem should not be if the restaurant makes delivery at its own expense or with its own courier, then we should be able to turn off earnings for this particular courier from this restaurant. And one more setting is needed in the restaurant, they can use their own courier or send a notification to other couriers from the delivery service