Skip to main content

RoutePlanningRepCustomer

One customer of a rep, as the rep's Customers list shows it: when they were last visited, when they are next due and planned, and their visits in the window.

type RoutePlanningRepCustomer {
assigned: Boolean!
completed: Int!
frequencyDays: Int!
lastCompletedOn: DateTime
missed: Int!
name: String!
nextDueOn: DateTime!
nextPlannedOn: DateTime
overdueDays: Int!
partnerId: ID!
status: PartnerStatus!
visits: Int!
}

Fields​

RoutePlanningRepCustomer.assigned ● Boolean! non-null scalar​

True when the customer is assigned to the rep now; false when they only appear because the rep visited them in the window.

RoutePlanningRepCustomer.completed ● Int! non-null scalar​

Completed visits in the window.

RoutePlanningRepCustomer.frequencyDays ● Int! non-null scalar​

Days between visits: the customer's own frequency, or the organization's default.

RoutePlanningRepCustomer.lastCompletedOn ● DateTime scalar​

The day of the customer's last completed visit by any rep. Null when they have never been visited.

RoutePlanningRepCustomer.missed ● Int! non-null scalar​

Planned visits in the window whose day passed unvisited.

RoutePlanningRepCustomer.name ● String! non-null scalar​

The name of the customer.

RoutePlanningRepCustomer.nextDueOn ● DateTime! non-null scalar​

When the next visit is due: the last completed visit plus the frequency, or today when never visited.

RoutePlanningRepCustomer.nextPlannedOn ● DateTime scalar​

The day of the rep's next live stop for the customer, from today. Null when none is planned.

RoutePlanningRepCustomer.overdueDays ● Int! non-null scalar​

How many days the next visit is overdue as of today; 0 when it is not overdue.

RoutePlanningRepCustomer.partnerId ● ID! non-null scalar​

The ID of the customer.

RoutePlanningRepCustomer.status ● PartnerStatus! non-null enum​

The customer's status.

RoutePlanningRepCustomer.visits ● Int! non-null scalar​

The rep's visits to the customer in the window, removed ones excluded.

Member Of​

RoutePlanningRepCustomers object