Imports Details: Difference between revisions

From CTMS
(Added DECODE and FIXED_ROUTE)
(Added DRIVER_SHIFT, PERSON, SHIFT_PATT, VEHICLE, TRACTOR)
Line 5: Line 5:
This import type allows you to import decodes for imports and exports processing.
This import type allows you to import decodes for imports and exports processing.


The following fields may be specified:
* DECODE_NAME - required - must exist as a decode table already set up in the system.
* DECODE_NAME - required - must exist as a decode table already set up in the system.
* SOURCE_VALUE - required. Will not be updated if the decode name and source already exists on the system.
* SOURCE_VALUE - required. Will not be updated if the decode name and source already exists on the system.
Line 12: Line 13:
** If DECODE_NAME is CIST_CENTRE, then the target value must be a cost centre set up on the system.
** If DECODE_NAME is CIST_CENTRE, then the target value must be a cost centre set up on the system.
* CUSTOMER_ID - optional - if provided, then this must be a customer set up on the system.
* CUSTOMER_ID - optional - if provided, then this must be a customer set up on the system.
== DRIVER_SHIFT ==
This import can be used to define shift pattern assignment to drivers.
The following fields may be specified:
* ACTION - required - one of 'A'dd (default), 'M'odify, 'D'elete
* SHIFT_CODE - required - must exist as a shift pattern in the system.
* DAYS_OF_WEEK - required - must indicate the days of week active in 'YN' format e.g. 'YYYYYNN', Monday to Sunday
* DRIVER - required - must exist as a driver in the system.
* CARRIER - required - must exist as a carrier in the system.
* START_DATE - required - date format DDMMYYYY, must be within 3 years of the current date, must identify a Monday.




Line 17: Line 30:
This import type allows you to import fixed route headers and details into the system.
This import type allows you to import fixed route headers and details into the system.


Record types:
The following record types may be specified:
* ROUTE - the route header, the main import type.
* ROUTE - the route header, the main import type.
* STOP - the stops on the route header
* STOP - the stops on the route header
Line 23: Line 36:




The following fields may be specified per record type:
* ROUTE
* ROUTE
** ACTION - only blank or D (default) values are allowed for this import. To delete a route, you must have administrative access to delete routes.
** ACTION - only blank or D (default) values are allowed for this import. To delete a route, you must have administrative access to delete routes.
Line 47: Line 61:
** SCHED_ENG_ROUTE - optional - must be Y', 'N'
** SCHED_ENG_ROUTE - optional - must be Y', 'N'
** PAR_RUN - optional - Inserts or updates the run number for Paragon for the route. Uses decodes "PAR_RUN"
** PAR_RUN - optional - Inserts or updates the run number for Paragon for the route. Uses decodes "PAR_RUN"
** TRANSPORT_MODES - optional - delimited transport mode - superseded by record type TRANSPORT_MODE below
** TRANSPORT_MODES - optional - delimited transport mored - superseded by record type TRANSPORT_MODE below


* STOP - optional section
* STOP - optional section
Line 95: Line 109:




The following fields may be specified per record type:
* LOCATION
* LOCATION
** REC_TYPE - required
** REC_TYPE - required
Line 182: Line 197:
This import allows you to update basic information of locations already in the system.
This import allows you to update basic information of locations already in the system.


 
The following fields may be used:
* LOCATION_ID - optional. If not provided, the location ID will be derived from the name.
* LOCATION_ID - optional. If not provided, the location ID will be derived from the name.
* LOCATION_NAME - required
* LOCATION_NAME - required
Line 198: Line 213:


{{Note}} Planning region will be updated by system configuration
{{Note}} Planning region will be updated by system configuration
== PERSON ==
This import type allows adding, modifying or deleting drivers and driver attributes in the system.
The following record types may be used:
* PERSON – Person details
* CARRIER – Carrier assignment
* VEHICLE – The vehicle types that person is qualified to drive.
The following fields may be specified per record type:
* PERSON
** REC_TYPE - one of the record types above
** ACTION - required - one of 'A'dd (default), 'M'odify, 'D'elete
** PERSON_ID - required. Must not exist as system data when adding, must exist when modifying or deleting.
** FORENAME - required when adding.
** SURNAME - required when adding.
** JOB_TITLE - required when adding - if provided, must exist as a person type in the system.
** LOCATION_ID - optional - if provided, must exist as a location in the system.
** CONTACT_NO
** INACTIVE - optional - 'N' (default),'Y'
** AGENCY - optional - 'N' (default),'Y'
** SMARTPHONE_ENABLED - optional - one of 'EPOD' (default),'SMARTPHONE','MICROLISE','TOMTOM'
** EPOD_USERNAME
** TOMTOM_ENABLED - optional - 'N' (default),'Y'
** DOB - optional - must be a date
** ADDRESS_1
** ADDRESS_2
** ADDRESS_3
** ADDRESS_4
** ADDRESS_5
** START_DATE - optional - must be a date
* CARRIER – optional
CARRIER_PERSON_ID - required - must exist (or have been created above)
CARRIER_ID - required - must exist as a carrier in the system.
CARRIER_INACTIVE - 'Y','N'
* VEHICLE – optional
VEHICLE_PERSON_ID - required - must exist (or have been created above)
VEHICLE_TYPE - required - must exist as a trailer type
== SHIFT_PATT ==
This import can be used to define standard shift patterns per depot.
The following fields may be specified:
* ACTION - required - one of 'A'dd (default), 'M'odify, 'D'elete
* SHIFT_CODE - required - 20 characters or less - must not exist for adding, must exist for modifying or deleting.
* DEPOT - required when not deleting - must exist as an RDC location in the system.
* SHIFT_START - required - time format.
* SHIFT_END - required - time format.
* MON - required - 'Y','N'.
* TUE - required - 'Y','N'.
* WED - required - 'Y','N'.
* THU - required - 'Y','N'.
* FRI - required - 'Y','N'.
* SAT - required - 'Y','N'.
* SUN - required - 'Y','N'.
== TRACTOR ==
This import type allows adding, modifying or deleting tractors in the system.
The following record types may be specified:
* TRACTOR - the main tractor information
* TRACTOR_CARRIER - carriers to whom the tractor is available.
The following fields may be specified per record type:
* TRACTOR - required
** ACTION - optional - one of 'A'dd (default), 'M'odify, 'D'elete
** TRACTOR_ID - required, 12 characters or less. Must not exist as system data when adding, must exist when deleting.
** TRACTOR_TYPE
** DESCRIPTION
** INACTIVE - optional - one of 'Y', 'N'
** TRACKING_ENABLED - one of 'ISOTRAK', 'TOMTOM', 'MICROLISE'
** TRACK_REF
** MPG
** CONTACT_NO
** CARRIER_ID - optional - if provided, must exist as a carrier in the system. Mainly superseded by TRACTOR_CARRIER record type.
* TRACTOR_CARRIER - optional
** ACTION - optional - one of 'A'dd (default), 'D'elete
** TRACTOR_ID - required, 12 characters or less. Must not exist as system data when adding, must exist when deleting.
** CARRIER_ID - required - if provided, must exist as a carrier in the system. Mainly superseded by TRACTOR_CARRIER record type.




Line 210: Line 310:
* TRACKING_ENABLED - one of 'ISOTRAK', 'TOMTOM', 'MICROLISE'
* TRACKING_ENABLED - one of 'ISOTRAK', 'TOMTOM', 'MICROLISE'
* COST_CENTRE_NAME
* COST_CENTRE_NAME
== VEHICLE ==
This import type allows adding, modifying or deleting fixed vehicles (e.g. vans) in the system, as opposed to spearate tractor and trailer records. These fixed vehicles are then linked.
The following record types may be specified:
* VEHICLE
* VEHICLE_CARRIER
The following fields may be specified per record type:
* VEHICLE
** ACTION - required - one of 'A'dd (default), 'M'odify, 'D'elete
** REG_NO - Required, 12 characters or less
** FLEET_ID
** VEHICLE_TYPE - required if adding - if provided, must exist as a trailer type.
** VIN_NO
** TOMTOM_ENABLED - 'Y','N'
** TOMTOM_REF
** EPOD_ENABLED - 'Y','N'
** TAIL_LIFT - 'Y','N'
** BLUE_LIGHT - 'Y','N'
** VOR - Vehicle Off Road (Inactive) - 'Y','N'
** NARRATIVE
* VEHICLE_CARRIER - optional
** REG_NO - required - must exist as a vehicle added above
** CARRIER_ID - required - must exist as a carrier in the system.
** CARRIER_INACTIVE - 'Y','N'

Revision as of 13:30, 3 June 2024

The following is a summary of the usage of some imports configurable in the system.


DECODE

This import type allows you to import decodes for imports and exports processing.

The following fields may be specified:

  • DECODE_NAME - required - must exist as a decode table already set up in the system.
  • SOURCE_VALUE - required. Will not be updated if the decode name and source already exists on the system.
  • TARGET_VALUE - required.
    • If DECODE_NAME is LOCATION, then the target value must be a location set up on the system.
    • If DECODE_NAME is CUSTOMER, then the target value must be a customer set up on the system.
    • If DECODE_NAME is CIST_CENTRE, then the target value must be a cost centre set up on the system.
  • CUSTOMER_ID - optional - if provided, then this must be a customer set up on the system.


DRIVER_SHIFT

This import can be used to define shift pattern assignment to drivers.

The following fields may be specified:

  • ACTION - required - one of 'A'dd (default), 'M'odify, 'D'elete
  • SHIFT_CODE - required - must exist as a shift pattern in the system.
  • DAYS_OF_WEEK - required - must indicate the days of week active in 'YN' format e.g. 'YYYYYNN', Monday to Sunday
  • DRIVER - required - must exist as a driver in the system.
  • CARRIER - required - must exist as a carrier in the system.
  • START_DATE - required - date format DDMMYYYY, must be within 3 years of the current date, must identify a Monday.


FIXED_ROUTE

This import type allows you to import fixed route headers and details into the system.

The following record types may be specified:

  • ROUTE - the route header, the main import type.
  • STOP - the stops on the route header
  • TRANSPORT_MODE - optional - transport modes for the route.


The following fields may be specified per record type:

  • ROUTE
    • ACTION - only blank or D (default) values are allowed for this import. To delete a route, you must have administrative access to delete routes.
    • REC_TYPE - required - one of the record types above.
    • ROUTE_CODE - required. If no action has been specified, if the route exists, then the route will be modified. If the route does not exist, it will be added.
    • ROUTE_NAME - required
    • DEPOT - required - must exist as an active RDC location in the system. If the depot is inactive, and you have administrative access to activate locations, then the depot can be activated automatically.
    • MAX_TRIPS
    • ENGINE
    • PRIORITY - must be a positive number i.e. greater than 0
    • CARRIER_ID - required - must exist in the system.
    • TRAILER_TYPE - required - must exist in the system.
    • INACTIVE - optional - if provided must be 'Y', 'N'
    • RTE_DAYS - required - may be provided as a string on 'YN' or '10', where Y or 1 denote an active day.
    • START_TIME - optional - if provided, must be a time.
    • CUT_OFF_TIME - optional - if provided, must be a time.
    • OVERRIDE_HUB_TIME - optional - must be Y', 'N'
    • CALC_TIME_DISTANCE - optional - must be Y', 'N'
    • ROUTE_COST - optional - must be a positive number.
    • MAX_TRIPS_PER_DAY - optional
    • SEND_TO_PARAGON - optional - must be Y', 'N'
    • ROUTE_TYPE
    • ROUTE_END
    • SCHED_ENG_ROUTE - optional - must be Y', 'N'
    • PAR_RUN - optional - Inserts or updates the run number for Paragon for the route. Uses decodes "PAR_RUN"
    • TRANSPORT_MODES - optional - delimited transport mored - superseded by record type TRANSPORT_MODE below
  • STOP - optional section
    • ID - optional - if not provided of a stop of that ID does not exist, a new stop will be created, otherwise the stop will be updated.
    • SEQ - required - must be greater than 0 and must not already exist on the route.
    • STOP_TYPE - required - must be one of 'L', 'R', 'Z', 'C'
    • LOCATION_ID - required if stop type is 'L', 'C' - must exist as an active location in the system. If the location is inactive, and you have administrative access to activate locations, then the depot can be activated automatically
    • REGION - required is stop type is 'R', 'C', 'Z'
    • MANDATORY - required - must be one of 'Y', 'N'
    • TARGET_TIME - required
    • MAX_EARLY_MINS - required
    • MAX_LATE_MINS - required
    • COLLECTION - optional - must be one of 'M', 'O'. Either COLLECTION or DELIVERY must be populated.
    • DELIVERY - optional - must be one of 'M', 'O'. Either COLLECTION or DELIVERY must be populated.
    • STOP_PRIORITY - must be a positive number i.e. greater than 0. Required for an optional stop.
    • CROSSDOCK - optional - must be one of 'Y', 'N'
    • FIXED - optional - must be one of 'Y', 'N'
    • FILL_FACTOR - optional - must be between 0 and 1
    • STOP_CUT_OFF_TIME - optional - must be a time
    • STOP_CUT_OFF_TIME_DL - optional - must be a time
  • TRANSPORT_MODE - optional section
    • TRANSPORT_MODE_TYPE - required - must exist as a transport mode in the system.
    • INC_EXC - optional - must be one of 'I', 'E'


Further Configuration

Access Control Group Description Level
GEO_ACTIVATE_LOCATION Ability to update an Inactive Location to Active. Functions
RTE_DELETE_ROUTE Ability to Delete Routes Functions


LOCATION

This import type allows adding locations and location-based data.

There are multiple record types:

  • LOCATION - the main import of the location. Required.
  • CONSTRAINT - any location constraints. Optional.
  • CONTACT - location contacts. Optional.
  • REFERENCES - location references. Optional.
  • TRAILER_TYPE - trailer types allowed or excluded at this location. Optional. If not provided, all location types are allowed.


The following fields may be specified per record type:

  • LOCATION
    • REC_TYPE - required
    • LOCATION_ID - required - must not exist in the system.
    • LOCATION_TYPE - required - must exist in the system.
    • LOCATION_NAME - required - configurable as to whether this must not exist in the system via system parameters
    • PARENT_LOC_ID - optional - is supplied, must exist as a location in the system.
    • ADDRESS_LINE1
    • ADDRESS_LINE2
    • ADDRESS_LINE3
    • TOWN
    • COUNTY
    • COUNTRY_CODE - Required - must exist as a country code in the system.
    • POSTCODE
    • POSTAL_REGION - optional - the system can be configured to calculate this for you from the country code and postcode.
    • PLANNING_REGION - optional - the system can be configured to calculate this for you from the country code and postcode.
    • LATITUDE
    • LONGITUDE
    • LOADING_RATE - required - if provided, this must exist in the system data. Loading rate can be pre-populated from a default rate.
    • UNLOADING_RATE - required - if provided, this must exist in the system data. Loading rate can be pre-populated from a default rate.
    • PHONE
    • FAX
    • LINK_ID - optional. Used for C-ePOD consolidation.
    • TIMEZONE_NAME - optional - if provided, this must exist in the system data.
    • CUST_CLIENT_CODE - optional.
    • ALTERNATIVE_CODE - optional - must be 12 characters or less.
    • USAGE - creates the location usage as per the system parameter. If provided, the provided value must exist as system data on the table that the system is set up to generate location usage records, usually CUSTOMER or CUST_GROUP.
    • CONTACT_SURNAME - optional - if provided, creates a single contact against the location. Can be superseded with CONTACTS sections.
    • CONTACT_FORENAME - optional - if provided, creates a single contact against the location. Can be superseded with CONTACTS sections.
    • CONTACT_PHONE - optional - if provided, creates a single contact against the location. Can be superseded with CONTACTS sections.
    • CONTACT_EMAIL - optional - if provided, creates a single contact against the location. Can be superseded with CONTACTS sections.
    • CONTACT_JOB_TITLE - optional - if provided, creates a single contact against the location. Can be superseded with CONTACTS sections.
    • CONTACT_TITLE - optional - if provided, creates a single contact against the location. Can be superseded with CONTACTS sections.
  • CONSTRAINT - optional section
    • CONS_LOCATION_ID - required - must be the location ID and must exist in the system data (or reference the location just created in this import).
    • CONSTRAINT_TYPE - required - must exist in the system
    • DAY - required - must be one of '1', '2', '3', '4', '5', '6', '7', indicating the day of the week. only 1 constraint type may exist per day specified.
    • START_TIME - required - must be a valid time
    • END_TIME - required - must be a valid time
    • VALUE - required
  • CONTACT - optional section
    • CONTACT_LOCATION_ID - required - must be the location ID and must exist in the system data (or reference the location just created in this import).
    • SURNAME - required
    • FORENAME - required
    • JOB_TITLE
    • TITLE
    • PHONE
    • EMAIL
  • REFERENCES - optional section
    • REF_LOCATION_ID - required - must be the location ID and must exist in the system data (or reference the location just created in this import).
    • REFERENCE_NAME - required. Must be a valid location reference in the system, specified in import decodes, type "LOC_REF_NAMES". The location ID and reference name must not exist.
    • REFERENCE_VALUE - required - must be 200 characters or less.
  • TRAILER_TYPE - optional section
    • TRAILER_LOCATION_ID - required - must be the location ID and must exist in the system data (or reference the location just created in this import).
    • TRAILER_TYPE - required - must exist in the system data.
    • FILL_FACTOR - required - value supplied must be between 0 and 1.
    • INC_EXC - optional - if provided, must be values 'I' (default), 'E'. The values of TRAILER_LOCATION_ID, TRAILER_TYPE and INC_EXC must not already exist in the system.


The location will be added to the location usage following the system logic enabled by system parameters.


Further configuration:

Parameter Description Level
GEO_VALIDATE_LOCATION_NAME Indicates whether the system should check for duplicate location names (as well as IDs) when creating/updating locations SYSTEM
GEO_LOC_IMP_POST_PLAN Populate the postal and planning regions using rules in country and static data when doing location import SYSTEM
GEO_POP_PLANNING_REGION Controls whether the Planning Region is populated from the look up table - Y or N. SYSTEM
GEO_DEFAULT_LOAD_RATE Default Loading Rate for locations. SYSTEM
GEO_DEFAULT_UNLOAD_RATE Default Unloading Rate for locations. SYSTEM
MTS_LOCATION_USAGE Controls how Locations are grouped, either via CUST_GROUP, CUSTOMER, used in Customer form to display correct tab SYSTEM


LOC_UPDATE

This import allows you to update basic information of locations already in the system.

The following fields may be used:

  • LOCATION_ID - optional. If not provided, the location ID will be derived from the name.
  • LOCATION_NAME - required
  • PARENT_LOC_ID - optional - if provided, must exist in the system.
  • LOCATION_TYPE - required - must exist in the system
  • ADDRESS_LINE1 - optional - if provided will be updated.
  • ADDRESS_LINE2 - optional - if provided will be updated.
  • ADDRESS_LINE3 - optional - if provided will be updated.
  • TOWN - optional - if provided will be updated.
  • COUNTY - optional - if provided will be updated.
  • COUNTRY_CODE - required - must exist in the system.
  • POSTCODE - optional - if provided will be updated.
  • MASTER_LOCATION - optional - if provided must be 'Y', 'N'.
  • EXT_LOCATION_NAME - optional - if provided will be updated.

Note Note: Planning region will be updated by system configuration


PERSON

This import type allows adding, modifying or deleting drivers and driver attributes in the system.

The following record types may be used:

  • PERSON – Person details
  • CARRIER – Carrier assignment
  • VEHICLE – The vehicle types that person is qualified to drive.

The following fields may be specified per record type:

  • PERSON
    • REC_TYPE - one of the record types above
    • ACTION - required - one of 'A'dd (default), 'M'odify, 'D'elete
    • PERSON_ID - required. Must not exist as system data when adding, must exist when modifying or deleting.
    • FORENAME - required when adding.
    • SURNAME - required when adding.
    • JOB_TITLE - required when adding - if provided, must exist as a person type in the system.
    • LOCATION_ID - optional - if provided, must exist as a location in the system.
    • CONTACT_NO
    • INACTIVE - optional - 'N' (default),'Y'
    • AGENCY - optional - 'N' (default),'Y'
    • SMARTPHONE_ENABLED - optional - one of 'EPOD' (default),'SMARTPHONE','MICROLISE','TOMTOM'
    • EPOD_USERNAME
    • TOMTOM_ENABLED - optional - 'N' (default),'Y'
    • DOB - optional - must be a date
    • ADDRESS_1
    • ADDRESS_2
    • ADDRESS_3
    • ADDRESS_4
    • ADDRESS_5
    • START_DATE - optional - must be a date
  • CARRIER – optional

CARRIER_PERSON_ID - required - must exist (or have been created above) CARRIER_ID - required - must exist as a carrier in the system. CARRIER_INACTIVE - 'Y','N'

  • VEHICLE – optional

VEHICLE_PERSON_ID - required - must exist (or have been created above) VEHICLE_TYPE - required - must exist as a trailer type


SHIFT_PATT

This import can be used to define standard shift patterns per depot.

The following fields may be specified:

  • ACTION - required - one of 'A'dd (default), 'M'odify, 'D'elete
  • SHIFT_CODE - required - 20 characters or less - must not exist for adding, must exist for modifying or deleting.
  • DEPOT - required when not deleting - must exist as an RDC location in the system.
  • SHIFT_START - required - time format.
  • SHIFT_END - required - time format.
  • MON - required - 'Y','N'.
  • TUE - required - 'Y','N'.
  • WED - required - 'Y','N'.
  • THU - required - 'Y','N'.
  • FRI - required - 'Y','N'.
  • SAT - required - 'Y','N'.
  • SUN - required - 'Y','N'.


TRACTOR

This import type allows adding, modifying or deleting tractors in the system.

The following record types may be specified:

  • TRACTOR - the main tractor information
  • TRACTOR_CARRIER - carriers to whom the tractor is available.

The following fields may be specified per record type:

  • TRACTOR - required
    • ACTION - optional - one of 'A'dd (default), 'M'odify, 'D'elete
    • TRACTOR_ID - required, 12 characters or less. Must not exist as system data when adding, must exist when deleting.
    • TRACTOR_TYPE
    • DESCRIPTION
    • INACTIVE - optional - one of 'Y', 'N'
    • TRACKING_ENABLED - one of 'ISOTRAK', 'TOMTOM', 'MICROLISE'
    • TRACK_REF
    • MPG
    • CONTACT_NO
    • CARRIER_ID - optional - if provided, must exist as a carrier in the system. Mainly superseded by TRACTOR_CARRIER record type.
  • TRACTOR_CARRIER - optional
    • ACTION - optional - one of 'A'dd (default), 'D'elete
    • TRACTOR_ID - required, 12 characters or less. Must not exist as system data when adding, must exist when deleting.
    • CARRIER_ID - required - if provided, must exist as a carrier in the system. Mainly superseded by TRACTOR_CARRIER record type.


TRAILER

This import type allows adding, modifying or deleting trailers in the system.

The following fields may be specified.

  • ACTION - 'A'dd, 'M'odify and 'D'elete
  • TRAILER_ID - required. Must not exist for adding, must exist for other actions
  • TRAILER_TYPE - must exist in the system Resource data.
  • INACTIVE - one of 'N' (default), 'Y'
  • TRACKING_ENABLED - one of 'ISOTRAK', 'TOMTOM', 'MICROLISE'
  • COST_CENTRE_NAME


VEHICLE

This import type allows adding, modifying or deleting fixed vehicles (e.g. vans) in the system, as opposed to spearate tractor and trailer records. These fixed vehicles are then linked.

The following record types may be specified:

  • VEHICLE
  • VEHICLE_CARRIER

The following fields may be specified per record type:

  • VEHICLE
    • ACTION - required - one of 'A'dd (default), 'M'odify, 'D'elete
    • REG_NO - Required, 12 characters or less
    • FLEET_ID
    • VEHICLE_TYPE - required if adding - if provided, must exist as a trailer type.
    • VIN_NO
    • TOMTOM_ENABLED - 'Y','N'
    • TOMTOM_REF
    • EPOD_ENABLED - 'Y','N'
    • TAIL_LIFT - 'Y','N'
    • BLUE_LIGHT - 'Y','N'
    • VOR - Vehicle Off Road (Inactive) - 'Y','N'
    • NARRATIVE
  • VEHICLE_CARRIER - optional
    • REG_NO - required - must exist as a vehicle added above
    • CARRIER_ID - required - must exist as a carrier in the system.
    • CARRIER_INACTIVE - 'Y','N'