Near-duplicate record check for bookings, contacts, chauffeurs and vehicles
Use this check when the same ride, person or vehicle may have been entered twice with different spelling, punctuation or time format. It adds a normalized pickup time rule for bookings to the exact keys in the merge duplicates guide. No pair is merged from this page alone. Staff confirm the pair on the records first, then merge under that guide.
How to use this check
Work through the steps in order in one workspace at a time. A record in another workspace is never a candidate for a record in this workspace.
Normalize both records
Build each key with the normalization on this page, in the same order every time. Do not compare a typed name or a typed time directly.
Compare the fixed key for the record type
Use the key stated for that type below. A partial match on one field does not replace the key.
Read the evidence for the pair
Read the matched keys, the fields that differ, the status of each booking, and the counts attached to each record, side by side, before you decide.
Confirm with the booker, passenger, chauffeur or shop
Confirm which record is the real ride, person or vehicle. Correct the named record first. Never fill a blank from the other record to make a pair match.
Merge or keep separate, then recount
Follow the merge duplicates guide for the move, the retire step and the recount. A pair that is not confirmed stays as two records.
Normalization for every key
Build the key in this order: trim, remove or collapse the stated characters, change case as stated, then compare the whole key. Normalization is for comparison only. The display value on the record kept stays as entered on that record.
Names: customer, booker, passenger, chauffeur
Trim leading and trailing spaces, collapse each run of spaces to one space, and compare in lower case with first and last names in the same order. A middle initial or a company name stays in the key. A blank name on either record does not match on name.
Phone numbers
Remove spaces, dashes, brackets and dots, keep an extension as a separate part, and compare digits only. Ten digits compare as 1 plus those ten digits. Eleven digits starting with 1 compare as those digits. The country code is kept. A main line and an extension do not match. A blank phone on either record does not match on phone.
Email addresses
Trim spaces, remove internal spaces, and compare the full address in lower case, including the part before the at sign and the part after it. A similar address with a different domain does not match on a full term.
Plates, permit numbers and certificate numbers
Trim spaces, use upper case, and remove spaces and hyphens for comparison. Colour and type are not part of a vehicle key, since several vehicles can share a colour and type with different plates.
Places
Use the canonical pickup point names from the data fields guide, MCI, Downtown, Crown Center, Country Club Plaza, Power and Light District, Convention Center, Overland Park, Leawood, Lee's Summit, and Independence, and full addresses as saved on the booking. Trim, collapse spaces and compare in lower case. Map Lees Summit without an apostrophe to Lee's Summit and Centre to Center before comparison. Kansas City alone never maps to a pickup point, since it is the service area Kansas City metro.
Pickup time and timestamps
Read pickup_at as one instant in ISO 8601 form. Convert that instant to UTC for comparison, so the same wall clock time in two different timezones is not the same instant. Derive pickup_date only as the calendar date of that instant in the company timezone saved by place name, such as America/Chicago, never in device time and never from the date the request was sent. Derive call_time only as pickup_at minus the saved lead hours setting. A date alone, a time alone, an epoch value and a timezone abbreviation are never a comparison key.
Fixed keys by record type
Use only the key stated for the type. The exact keys below restate the merge duplicates guide so this page can be read alone.
Customer and contact
Group only when the normalized name matches and the normalized phone matches or the normalized email matches. A shared phone alone and a shared inbox alone never group records. Booker contact and passenger contact stay separate fields.
Chauffeur
Group only when the normalized certificate number matches, or the normalized name matches and the normalized phone or email matches. A matching certificate is stronger than a matching name. Keep the record linked to a sign-in account over an unlinked record.
Vehicle
Group only when the normalized plate matches or the normalized permit number matches. Colour and type never group vehicles.
Booking: exact duplicate
Two bookings with the same reference code or the same public token in one workspace are duplicates of one booking. A public token is system entered, is never blank and is never reused. Keep the second booking in Quote and out of the day board until staff confirm which booking is the real run.
Booking: near-duplicate rule with normalized pickup time
This rule covers the case the exact keys miss: the same ride entered twice with two different reference codes and two different public tokens, for example a public request sent twice or a booking re-entered in the app.
Definite candidate: all of these match
- Normalized passenger phone matches, with the country code kept and 10 to 15 digits
- Canonical pickup place matches, or the normalized full pickup address matches
- Pickup_at instant matches exactly after conversion to UTC, not only the same calendar date
- Service type slug matches, using airport_arrival, airport_departure, hourly, point_to_point or event
- Passenger name normalized matches, or is blank on one booking, and drop off normalized matches, or is blank on one booking, or the service is hourly or event
A definite candidate is still only a candidate. Staff confirm with the booker or passenger which booking is the real run before any merge.
Possible candidate: hold for a staff check
- Normalized passenger phone and canonical pickup place match and pickup_date in the company timezone matches, but the pickup_at instant differs
- Normalized passenger phone, pickup_at instant and service type match, but pickup spelling differs only by a mapped alias
- Passenger name and pickup place match and the instant matches, but the passenger phone is blank on one booking
A possible candidate is never merged on the key alone. Staff contact the booker or passenger and correct the named field first.
Not a candidate
- Same phone alone, same name alone, same pickup place alone, or same calendar date alone
- Same wall clock time in a different timezone, or the same date with a different instant
- Different service type, different workspace, or a pickup time that is in the past and already Complete on one booking
- A prior run total, prior call time, prior chauffeur or prior vehicle copied into a new booking
What the rule never does
It never merges two bookings with different reference codes or public tokens on its own, never changes a pickup time, a call time, a rate or a total, never moves a record to another workspace, and never deletes a booking. The duplicate is retired only under the merge duplicates guide, after the recount.
Evidence to read for each pair
Show this evidence side by side for the two records before a decision. A pair with no evidence in this list is not ready to merge.
Matched keys and differing fields
- Each normalized key that matched, stated by field name
- Each field that differs, including pickup_at instant in UTC, pickup_date in the company timezone, drop off, flight, passengers and requests
- Reference code and public token for each booking, shown as present with no value copied into a new record
Status, quote and counts
- Status of each booking in booking order, and whether either booking is already Complete, Cancelled or past pickup
- Saved quote on each booking, with rate, gratuity and all in total on separate lines as saved, never re-typed
- Counts of bookings, files and photos, daily checks, service entries, issues and invoices linked through each booking, and role links for chauffeurs
- After any merge, the keeper count for each category must equal keeper before plus duplicate before for that category
- Open one booking from each old record after the move and confirm it now opens from the record kept
- Re-read quote, call time, status, flags and vehicle readiness for the pickup date after any correction
Acceptance checks before you ship this check
Run each check with two bookings for the same ride entered with different punctuation in the phone, a different pickup spelling alias, and the same pickup time written in two timezones.
- Same passenger phone digits with different punctuation, same canonical pickup, same pickup_at instant in UTC and same service slug group as one definite candidate with evidence listed
- Same wall clock time written in a different timezone does not group, and the same calendar date with a different instant is only a possible candidate
- Same phone alone, same name alone and same pickup alone each return no candidate
- Two bookings with the same reference code or public token group as exact duplicates even when the near-duplicate key differs
- No candidate is created across workspaces, and no candidate changes a pickup time, call time, rate or total
- Each pair shows matched keys, differing fields, status, saved quote and counts, and the recount after a merge adds up for every category
Normalize first, then read the pair
Search the list before you add a record, compare with the keys on this page and the merge duplicates guide, and confirm the real record with the booker or passenger before you merge.