Page 1 of 1

planBasicTours: segment sequence results by priority groups

Posted: Thu Oct 30, 2014 9:28 am
by pssdiogo
Hello,

I’m using xTour.planBasicTours to sequence orders on trucks, but now I need to segment the final result by groups of orders.

I need some help on the following scenario:
I need to sequence several orders grouping them in some priority groups. So, I need to be sure that orders from a group with highest priority are firstly sequenced and just then all orders with less priority should appear.
The final sequence result should respect this group order, so I don’t want to have orders with different group priorities mixed together (the sequence result should be ordered/segmented by group priority).

For example: if I have a trailer attached on a truck, I need to have a plan where I deliver first all the orders on the trailer and just then all the orders on the truck. (the delivery points for the truck and for the trailer should not appear mixed in the sequence result)

What is the best option to implement this scenario considering that I can have several groups just for one plan.
Thank you.

Re: planBasicTours: segment sequence results by priority gro

Posted: Thu Oct 30, 2014 12:42 pm
by Joost
This can be achieved by using the TourSection attributes on the TransporPoints of the orders. See: http://xserver.ptvgroup.com/fileadmin/f ... sportPoint

Looking at your example: for "trailer orders" set their transportpoint.toursection to 2, for "truck orders" set it to 3.

Note: keep in mind that values 1 and 1000 have a special meaning, in the way that they can only happen once in a tour. This is why I'm not using 1 but start with section 2.

Re: planBasicTours: segment sequence results by priority gro

Posted: Fri Oct 31, 2014 6:59 am
by pssdiogo
Hello Joost,

Thank you for your quick reply.
It was exactly what I was looking for.
Solved my problem.

Best regards,
Pedro