Maximum number of order of one vehicle

Given that there are 3 vehicles in our company. Each vehicle cannot be ordered more that 30 times per day. Is there any function letting me achieve this?

I think you will need a hard route constraint to disallow any route to be inserted the 31st job. Something like:

    int numJobsInRoute = iFacts.getRoute().getTourActivities().jobSize();
    if (numJobsInRoute >= 30)
        return false;
1 Like