Reports‎ > ‎Advanced Reports‎ > ‎

Custom Filters for Advanced Reports

This page lists the common SQL filters for TrakIT Advanced Reports:

  1. WORKORDERID - Refers to the Work Order ID for any work order.
    Usage Examples:
    WORKORDERID=56548
    WORKORDERID>45000

  2. PRIORITY - Refers to the priority of the Work Order. 1=Critical, 2=High, 3=Normal, 4=Low , 5=Very Low, 6=On Hold.
    Usage Examples:
    PRIORITY<4
    PRIORITY=1

  3. CUSID - Refers to the Entity ID of the customer.
    Usage Examples:
    CUSID=3845
    CUSID in (1234,2323,4433)

  4. CONTCUSID - Refers to the Entity ID of the contractual customer.
    Usage Examples:
    CONTCUSID=3221
    CONTCUSID in (1212,2210,4342)

  5. CONTTYPE - Refers to the type of the container. 0=Dry, 1=Insulated, 2=High Cube, 3=Flat Rack, 4=Tank (Gas), 5=Tank (Liquid), 6=Open Top, 7=Reefer (Live), 8=Reefer (Dry), 9=Half-Height, 10=Platform, 11=Unknown, 255= Not Specified.
    Usage Example:
    CONTTYPE=7

  6. CONTSIZE - Refers to the size of the container. 20=20 feet, 40=40 feet, 0=Non-container.
    Usage Example:
    CONTSIZE=20

  7. WOSTATUS - Refers to the status of the work order. 0=Active, 1=Abandoned, 2=Cancelled, 3=Manual Closed, 4= Auto Closed.
    Usage Examples:
    WOSTATUS=0
    WOSTATUS<>2 (to pull out all work orders except the ones that are cancelled)

  8. WEIGHT - Refers to the weight of the container/load.
    Usage Example:
    WEIGHT>20000

  9. CUSTOMESCORT - Is set to 1 if work order requires a customs escort, otherwise it is set to 0.
    Usage Example:
    CUSTOMESCORT=1

  10. TOTALDAYS - Refers to the total number of free days set for the work order.
    Usage Example:
    TOTALDAYS<20

  11. CUSCODE - Refers to the customer code.
    Usage Example:
    CUSCODE='ABC-001'

  12. CONTCUSCODE - Refers to the entity code of the contractual customer.
    Usage Example:
    CONTCUSCODE='PQR-002'

  13. CORTYPE - Refers to the type of the corridor. 0=Import, 1=Export, 2=Round Trip.
    Usage Examples:
    CORTYPE=0
    CORTYPE<2

  14. OPCODE - Refers to the carrier code.
    Usage Example:
    OPCODE='ML'

  15. ACTIVEALERTS - Refers to the number of active alerts set in a work order.
    Usage Example:
    ACTIVEALERTS>0

  16. OWNCONT - Is set to 1 if the container belongs to the shipper, otherwise it is set to 0.
    Usage Example:
    OWNCONT=1

  17. DOORDEL - Is set to 1 if the container/load is to be door-delivered to the customer, otherwise it is set to 0.
    Usage Example:
    DOORDEL=1

  18. HAZARD - Is set to 1 if the container/load contains hazardous goods, otherwise it is set to 0.
    Usage Example:
    Hazard=1

  19. RESP - Refers to the User ID of the user responsible for the work order.
    Usage Example:
    RESP='AWA105'

  20. CREATEDON - Refers to the date on which the work orders are created.
    Usage Examples:
    Year(CREATEDON)=2012
    Month(CREATEDON)=5

  21. VSLNAME - Refers to the name of the vessel engaged for a shipment.
    Usage Example:
    VSLNAME='MAVERICK'

  22. VOYNUM - Refers to the voyage number for a shipment.
    Usage Example:
    VOYNUM='MS1234'

  23. LASTEVENTDATE - Refers to the latest date populated for an event. Dates must be specified in YYYYMMDD format.
    Usage Example:
    LASTEVENTDATE='20121219'

  24. LESEQCODE - Refers to the code of the last event populated in a work order.
    Usage Example:
    LESEQCODE='DIS'

* The above filters can also be combined using AND or OR between multiple SQL Clauses. Clauses joined with OR must be enclosed in brackets when combining with other clauses using AND. Example:

VSLNAME='MAVERICK' AND LESEQCODE='DIS' AND (OWNCONT=1 OR DOORDEL=1)
Comments