-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
663 additions
and
460 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
import type { ReportDefinition } from "../types/configTypes"; | ||
export declare const customReports_general: ReportDefinition[]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
export const customReports_general = [ | ||
{ | ||
reportName: "ssm-taxiLicences", | ||
reportTitle: "Taxi, Limo, Shuttle, and Rideshare Licences for Police Services", | ||
reportDescription: "Includes licence categories and number, licensee names, and expiration dates.", | ||
sql: "select l.licenceNumber, lc.licenceCategory," + | ||
" l.licenseeName, l.licenseeBusinessName, userFn_dateIntegerToString(l.endDate) as endDateString," + | ||
" max(case when lcf.licenceField = 'Insurance Expiration' then lf.licenceFieldValue else '' end) as insuranceExpiration" + | ||
" from Licences l" + | ||
" left join LicenceCategories lc on l.licenceCategoryKey = lc.licenceCategoryKey" + | ||
" left join LicenceFields lf on l.licenceId = lf.licenceId" + | ||
" left join LicenceCategoryFields lcf on lf.licenceFieldKey = lcf.licenceFieldKey" + | ||
" where l.recordDelete_timeMillis is null" + | ||
" and l.issueDate is not null" + | ||
" and l.licenceCategoryKey in ('01', '02', '04', '05', '06', '37')" + | ||
" group by l.licenceNumber, lc.licenceCategory, l.licenseeName, l.licenseeBusinessName, l.endDate" | ||
} | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import type { ReportDefinition } from "../types/configTypes"; | ||
|
||
export const customReports_general: ReportDefinition[] = [ | ||
{ | ||
reportName: "ssm-taxiLicences", | ||
reportTitle: "Taxi, Limo, Shuttle, and Rideshare Licences for Police Services", | ||
reportDescription: | ||
"Includes licence categories and number, licensee names, and expiration dates.", | ||
sql: | ||
"select l.licenceNumber, lc.licenceCategory," + | ||
" l.licenseeName, l.licenseeBusinessName, userFn_dateIntegerToString(l.endDate) as endDateString," + | ||
" max(case when lcf.licenceField = 'Insurance Expiration' then lf.licenceFieldValue else '' end) as insuranceExpiration" + | ||
" from Licences l" + | ||
" left join LicenceCategories lc on l.licenceCategoryKey = lc.licenceCategoryKey" + | ||
" left join LicenceFields lf on l.licenceId = lf.licenceId" + | ||
" left join LicenceCategoryFields lcf on lf.licenceFieldKey = lcf.licenceFieldKey" + | ||
" where l.recordDelete_timeMillis is null" + | ||
" and l.issueDate is not null" + | ||
" and l.licenceCategoryKey in ('01', '02', '04', '05', '06', '37')" + | ||
" group by l.licenceNumber, lc.licenceCategory, l.licenseeName, l.licenseeBusinessName, l.endDate" | ||
} | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.