adding summary column

This commit is contained in:
frankknoll
2023-03-10 22:06:14 +01:00
parent bc03ef5277
commit e3c6785513
4 changed files with 59 additions and 18 deletions

View File

@@ -25,14 +25,15 @@ class VaccineDistributionByZipcodeTableInitializer {
[
{
searchable: false,
targets: [this.#getColumnIndex('DOSES_SHIPPED')]
orderable: false,
targets: [this.#getColumnIndex('Summary')]
},
{
searchable: true,
targets: [
this.#getColumnIndex('PROVIDER_NAME'),
this.#getColumnIndex('ZIPCODE_SHP'),
this.#getColumnIndex('LOT_NUMBER'),
this.#getColumnIndex('Provider'),
this.#getColumnIndex('ZIP Code'),
this.#getColumnIndex('Lot Number'),
]
},
]
@@ -41,13 +42,13 @@ class VaccineDistributionByZipcodeTableInitializer {
#getColumnIndex(columnName) {
switch (columnName) {
case 'PROVIDER_NAME':
case 'Provider':
return 0;
case 'ZIPCODE_SHP':
case 'ZIP Code':
return 1;
case 'LOT_NUMBER':
case 'Lot Number':
return 2;
case 'DOSES_SHIPPED':
case 'Summary':
return 3;
}
}