update 1910021012
This commit is contained in:
BIN
app-new/# go to git 'app-new'.lnk
Normal file
BIN
app-new/# go to git 'app-new'.lnk
Normal file
Binary file not shown.
4
app-new/functions-min.js
vendored
Normal file
4
app-new/functions-min.js
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
$(document).ready(()=>{const ss=weeklySpreadsheets;var list='',uno='<th>CAROLINA LOGISTIC  <span>70830515178332</span></th>',dos='<th>CAROLINA TRANSPORTATION  <span>70830515178290</span></th>',tres='<th>DELTA EXPRESS  <span>70830515177576</span></th>',keys=Object.keys(monthlySpreadsheets);for(var i=2;i<9;i++){if(!ss.length||i==ss.length)break;list+='<li><a class="h" target="_blank" href="';list+='https://docs.google.com/spreadsheets/d/'+ss[i].key;list+='/edit#gid=1250765514">'+ss[i].setTitle()+'</a></li>'}
|
||||
list=list.concat('<li><a class="h" target="_blank" '+'title="Open Google Drive folder'+String.fromCharCode(10)+'containing all weeks'+String.fromCharCode(10)+'starting Dec 10, 2017" '+' href="https://drive.google.com/drive/folders/1MfNPealueJQJKTeV_J9iu9vCQr6qGPn1">'+'<span>... Entire History</span></a></li>');uno=extend(uno,'CL','Carolina Logistic, Inc');dos=extend(dos,'CT','Carolina Transportation, Inc');tres=extend(tres,'DE','Delta Express, Inc');$('#tH').html(ss[0].setTitle());$('#tC').html(ss[0].createAnchor('expense'));$('#tL').html(ss[0].createAnchor('payroll'));$('#bH').html(ss[1].setTitle());$('#bC').html(ss[1].createAnchor('expense'));$('#bL').html(ss[1].createAnchor('payroll'));$('#hist').html(list);$('#uno').html(uno);$('#dos').html(dos);$('#tres').html(tres);$('#repD').html(createRepD());function extend(row,key,title){var obj1=monthlySpreadsheets[keys[1]],obj2=monthlySpreadsheets[keys[0]],mon1=keys[1].split('-')[1],mon2=keys[0].split('-')[1],now=new Date,date=new Date(mon2+' 1, '+keys[1].split('-')[0]),active=now>=date,user1='<span>Helen</span>',user2='<span>Joyce</span>';const dropCardAnchor=(cardArr,mon,shouldUseActive)=>{if(cardArr[0]){let anchorHtml='<a class="h" target="_blank" title="'+title+'" href="https://docs.google.com/spreadsheets/d/'+cardArr[0];row+='<em>'+anchorHtml+'/edit#gid=686342087">';row+=(((shouldUseActive)?active:!0)&&cardArr[1])?mon+'</a>':'</a>'+mon;row+='</em> ';row+=anchorHtml+'/edit#gid=1995296890">';row+=(((shouldUseActive)?active:!0)&&cardArr[2])?user1+'</a>':'</a>'+user1;row+=' ';row+=anchorHtml+'/edit#gid=2117669368">';row+=(((shouldUseActive)?active:!0)&&cardArr[3])?user2+'</a>':'</a>'+user2}};const dropMcAnchor=(mcArr,mon,shouldUseActive)=>{if(mcArr[0]){row+='<a class="h" target="_blank" title="'+title;row+='" href="https://docs.google.com/spreadsheets/d/'+mcArr[0];row+='/edit#gid=1165085359">';row+=(((shouldUseActive)?active:!0)&&mcArr[1])?mon+'</a>':'</a>'+mon}}
|
||||
row+='<td>';dropCardAnchor(obj1.cards[key],mon1);row+='</td>';row+='<td>';dropCardAnchor(obj2.cards[key],mon2,!0);row+='</td>';row+='<td>';dropMcAnchor(obj1.money_codes[key],mon1);row+='</td>';row+='<td>';dropMcAnchor(obj2.money_codes[key],mon2,!0);row+='</td>';return row}
|
||||
function createRepD(){var el='Reporting Drivers',mon1=keys[0].split('-')[1],mon2=keys[1].split('-')[1],now=new Date,date=new Date(mon1+' 1, '+keys[1].split('-')[0]),showNew=now>=date,id=(showNew)?monthlySpreadsheets[keys[0]].repTabId:monthlySpreadsheets[keys[1]].repTabId,mon='<span>'+((showNew)?mon1:mon2)+'<span>';if(id)el='<a class="h" target="_blank" href="https://docs.google.com/spreadsheets/d/'+'1b2g3BARa4ibqdqtTj5_IQoBSI8hp6A4R5A3bSbrfA58/edit?pli=1#gid='+id+'">'+el+' '+mon+'</a>';return el}})
|
||||
@@ -1,126 +1,130 @@
|
||||
const ss = weeklySpreadsheets;
|
||||
var list = '',
|
||||
uno = '<th>CAROLINA LOGISTIC  <span>70830515178332</span></th>',
|
||||
dos = '<th>CAROLINA TRANSPORTATION  <span>70830515178290</span></th>',
|
||||
tres = '<th>DELTA EXPRESS  <span>70830515177576</span></th>',
|
||||
keys = Object.keys(monthlySpreadsheets);
|
||||
$(document).ready( () => {
|
||||
|
||||
const ss = weeklySpreadsheets;
|
||||
var list = '',
|
||||
uno = '<th>CAROLINA LOGISTIC  <span>70830515178332</span></th>',
|
||||
dos = '<th>CAROLINA TRANSPORTATION  <span>70830515178290</span></th>',
|
||||
tres = '<th>DELTA EXPRESS  <span>70830515177576</span></th>',
|
||||
keys = Object.keys(monthlySpreadsheets);
|
||||
|
||||
|
||||
for (var i = 2; i < 14; i++) {
|
||||
for (var i = 2; i < 9; i++) {
|
||||
|
||||
if (!ss.length || i == ss.length) break;
|
||||
if (!ss.length || i == ss.length) break;
|
||||
|
||||
list += '<li><a class="h" target="_blank" href="';
|
||||
list += 'https://docs.google.com/spreadsheets/d/' + ss[i].key;
|
||||
list += '/edit#gid=1250765514">' + ss[i].setTitle() + '</a></li>'
|
||||
|
||||
}
|
||||
|
||||
list = list.concat(
|
||||
'<li><a class="h" target="_blank" ' +
|
||||
'title="Open Google Drive folder' + String.fromCharCode(10) +
|
||||
'containing all weeks' + String.fromCharCode(10) +
|
||||
'starting Dec 10, 2017" ' +
|
||||
' href="https://drive.google.com/drive/folders/1MfNPealueJQJKTeV_J9iu9vCQr6qGPn1">' +
|
||||
'<span>... Entire History</span></a></li>'
|
||||
);
|
||||
|
||||
uno = extend(uno, 'CL', 'Carolina Logistic, Inc');
|
||||
dos = extend(dos, 'CT', 'Carolina Transportation, Inc');
|
||||
tres = extend(tres, 'DE', 'Delta Express, Inc');
|
||||
|
||||
|
||||
document.getElementById('tH').innerHTML = ss[0].setTitle();
|
||||
document.getElementById('tC').innerHTML = ss[0].createAnchor('expense');
|
||||
document.getElementById('tL').innerHTML = ss[0].createAnchor('payroll');
|
||||
|
||||
document.getElementById('bH').innerHTML = ss[1].setTitle();
|
||||
document.getElementById('bC').innerHTML = ss[1].createAnchor('expense');
|
||||
document.getElementById('bL').innerHTML = ss[1].createAnchor('payroll');
|
||||
|
||||
document.getElementById('hist').innerHTML = list;
|
||||
|
||||
document.getElementById('uno').innerHTML = uno;
|
||||
document.getElementById('dos').innerHTML = dos;
|
||||
document.getElementById('tres').innerHTML = tres;
|
||||
|
||||
document.getElementById('repD').innerHTML = createRepD();
|
||||
|
||||
|
||||
function extend(row, key, title) {
|
||||
|
||||
var obj1 = monthlySpreadsheets[keys[1]],
|
||||
obj2 = monthlySpreadsheets[keys[0]],
|
||||
mon1 = keys[1].split('-')[1],
|
||||
mon2 = keys[0].split('-')[1],
|
||||
now = new Date,
|
||||
date = new Date(mon2 + ' 1, ' + keys[1].split('-')[0]),
|
||||
active = now >= date,
|
||||
user1 = '<span>Helen</span>',
|
||||
user2 = '<span>Joyce</span>';
|
||||
|
||||
const dropCardAnchor = (cardArr, mon, shouldUseActive) => {
|
||||
|
||||
if (cardArr[0]) {
|
||||
|
||||
let anchorHtml = '<a class="h" target="_blank" title="' + title +
|
||||
'" href="https://docs.google.com/spreadsheets/d/' + cardArr[0];
|
||||
|
||||
row += '<em>' + anchorHtml + '/edit#gid=686342087">';
|
||||
row += (((shouldUseActive) ? active : true) && cardArr[1]) ? mon + '</a>' : '</a>' + mon;
|
||||
row += '</em> ';
|
||||
|
||||
row += anchorHtml + '/edit#gid=1995296890">';
|
||||
row += (((shouldUseActive) ? active : true) && cardArr[2]) ? user1 + '</a>' : '</a>' + user1;
|
||||
|
||||
row += ' ';
|
||||
|
||||
row += anchorHtml + '/edit#gid=2117669368">';
|
||||
row += (((shouldUseActive) ? active : true) && cardArr[3]) ? user2 + '</a>' : '</a>' + user2;
|
||||
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
const dropMcAnchor = (mcArr, mon, shouldUseActive) => {
|
||||
|
||||
if (mcArr[0]) {
|
||||
|
||||
row += '<a class="h" target="_blank" title="' + title;
|
||||
row += '" href="https://docs.google.com/spreadsheets/d/' + mcArr[0];
|
||||
row += '/edit#gid=1165085359">';
|
||||
|
||||
row += (((shouldUseActive) ? active : true) && mcArr[1]) ? mon + '</a>' : '</a>' + mon;
|
||||
|
||||
}
|
||||
list += '<li><a class="h" target="_blank" href="';
|
||||
list += 'https://docs.google.com/spreadsheets/d/' + ss[i].key;
|
||||
list += '/edit#gid=1250765514">' + ss[i].setTitle() + '</a></li>'
|
||||
|
||||
}
|
||||
|
||||
row += '<td>'; dropCardAnchor(obj1.cards[key], mon1); row += '</td>';
|
||||
row += '<td>'; dropCardAnchor(obj2.cards[key], mon2, true); row += '</td>';
|
||||
list = list.concat(
|
||||
'<li><a class="h" target="_blank" ' +
|
||||
'title="Open Google Drive folder' + String.fromCharCode(10) +
|
||||
'containing all weeks' + String.fromCharCode(10) +
|
||||
'starting Dec 10, 2017" ' +
|
||||
' href="https://drive.google.com/drive/folders/1MfNPealueJQJKTeV_J9iu9vCQr6qGPn1">' +
|
||||
'<span>... Entire History</span></a></li>'
|
||||
);
|
||||
|
||||
row += '<td>'; dropMcAnchor(obj1.money_codes[key], mon1); row += '</td>';
|
||||
row += '<td>'; dropMcAnchor(obj2.money_codes[key], mon2, true); row += '</td>';
|
||||
uno = extend(uno, 'CL', 'Carolina Logistic, Inc');
|
||||
dos = extend(dos, 'CT', 'Carolina Transportation, Inc');
|
||||
tres = extend(tres, 'DE', 'Delta Express, Inc');
|
||||
|
||||
return row;
|
||||
|
||||
}
|
||||
$('#tH').html(ss[0].setTitle());
|
||||
$('#tC').html(ss[0].createAnchor('expense'));
|
||||
$('#tL').html(ss[0].createAnchor('payroll'));
|
||||
|
||||
function createRepD() {
|
||||
$('#bH').html(ss[1].setTitle());
|
||||
$('#bC').html(ss[1].createAnchor('expense'));
|
||||
$('#bL').html(ss[1].createAnchor('payroll'));
|
||||
|
||||
var el = 'Reporting Drivers',
|
||||
mon1 = keys[0].split('-')[1],
|
||||
mon2 = keys[1].split('-')[1],
|
||||
now = new Date,
|
||||
date = new Date(mon1 + ' 1, ' + keys[1].split('-')[0]),
|
||||
showNew = now >= date,
|
||||
id = (showNew) ? monthlySpreadsheets[keys[0]].repTabId : monthlySpreadsheets[keys[1]].repTabId,
|
||||
mon = '<span>' + ((showNew) ? mon1 : mon2) + '<span>';
|
||||
$('#hist').html(list);
|
||||
|
||||
if (id) el = '<a class="h" target="_blank" href="https://docs.google.com/spreadsheets/d/' +
|
||||
'1b2g3BARa4ibqdqtTj5_IQoBSI8hp6A4R5A3bSbrfA58/edit?pli=1#gid=' + id + '">' +
|
||||
el + ' ' + mon + '</a>';
|
||||
$('#uno').html(uno);
|
||||
$('#dos').html(dos);
|
||||
$('#tres').html(tres);
|
||||
|
||||
return el;
|
||||
$('#repD').html(createRepD());
|
||||
|
||||
}
|
||||
|
||||
function extend(row, key, title) {
|
||||
|
||||
var obj1 = monthlySpreadsheets[keys[1]],
|
||||
obj2 = monthlySpreadsheets[keys[0]],
|
||||
mon1 = keys[1].split('-')[1],
|
||||
mon2 = keys[0].split('-')[1],
|
||||
now = new Date,
|
||||
date = new Date(mon2 + ' 1, ' + keys[1].split('-')[0]),
|
||||
active = now >= date,
|
||||
user1 = '<span>Helen</span>',
|
||||
user2 = '<span>Joyce</span>';
|
||||
|
||||
const dropCardAnchor = (cardArr, mon, shouldUseActive) => {
|
||||
|
||||
if (cardArr[0]) {
|
||||
|
||||
let anchorHtml = '<a class="h" target="_blank" title="' + title +
|
||||
'" href="https://docs.google.com/spreadsheets/d/' + cardArr[0];
|
||||
|
||||
row += '<em>' + anchorHtml + '/edit#gid=686342087">';
|
||||
row += (((shouldUseActive) ? active : true) && cardArr[1]) ? mon + '</a>' : '</a>' + mon;
|
||||
row += '</em> ';
|
||||
|
||||
row += anchorHtml + '/edit#gid=1995296890">';
|
||||
row += (((shouldUseActive) ? active : true) && cardArr[2]) ? user1 + '</a>' : '</a>' + user1;
|
||||
|
||||
row += ' ';
|
||||
|
||||
row += anchorHtml + '/edit#gid=2117669368">';
|
||||
row += (((shouldUseActive) ? active : true) && cardArr[3]) ? user2 + '</a>' : '</a>' + user2;
|
||||
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
const dropMcAnchor = (mcArr, mon, shouldUseActive) => {
|
||||
|
||||
if (mcArr[0]) {
|
||||
|
||||
row += '<a class="h" target="_blank" title="' + title;
|
||||
row += '" href="https://docs.google.com/spreadsheets/d/' + mcArr[0];
|
||||
row += '/edit#gid=1165085359">';
|
||||
|
||||
row += (((shouldUseActive) ? active : true) && mcArr[1]) ? mon + '</a>' : '</a>' + mon;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
row += '<td>'; dropCardAnchor(obj1.cards[key], mon1); row += '</td>';
|
||||
row += '<td>'; dropCardAnchor(obj2.cards[key], mon2, true); row += '</td>';
|
||||
|
||||
row += '<td>'; dropMcAnchor(obj1.money_codes[key], mon1); row += '</td>';
|
||||
row += '<td>'; dropMcAnchor(obj2.money_codes[key], mon2, true); row += '</td>';
|
||||
|
||||
return row;
|
||||
|
||||
}
|
||||
|
||||
function createRepD() {
|
||||
|
||||
var el = 'Reporting Drivers',
|
||||
mon1 = keys[0].split('-')[1],
|
||||
mon2 = keys[1].split('-')[1],
|
||||
now = new Date,
|
||||
date = new Date(mon1 + ' 1, ' + keys[1].split('-')[0]),
|
||||
showNew = now >= date,
|
||||
id = (showNew) ? monthlySpreadsheets[keys[0]].repTabId : monthlySpreadsheets[keys[1]].repTabId,
|
||||
mon = '<span>' + ((showNew) ? mon1 : mon2) + '<span>';
|
||||
|
||||
if (id) el = '<a class="h" target="_blank" href="https://docs.google.com/spreadsheets/d/' +
|
||||
'1b2g3BARa4ibqdqtTj5_IQoBSI8hp6A4R5A3bSbrfA58/edit?pli=1#gid=' + id + '">' +
|
||||
el + ' ' + mon + '</a>';
|
||||
|
||||
return el;
|
||||
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
4
app-new/mc-owners-func-min.js
vendored
Normal file
4
app-new/mc-owners-func-min.js
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
$(document).ready(()=>{const companies=getCompanies();const pad='style="padding: 12px 54px;">',hPad='<th '+pad,dPad='<td '+pad;let table='<tr id="hdr">'+hPad+'Company</th>'+hPad+'Period 1</th>'+hPad+'Period 2</th></tr>';let compKeys=Object.keys(companies),mKeys=Object.keys(monthlySpreadsheets),lastPeriod=mKeys[0],lastMonth=lastPeriod.split('-')[1],lastYear=lastPeriod.split('-')[0],active=new Date>=new Date(lastMonth+' 1, '+lastYear),period1=monthlySpreadsheets[mKeys[1]],period2=monthlySpreadsheets[lastPeriod];for(let i=0;i<compKeys.length;i++){let sideHeader=hPad+companies[compKeys[i]]+'</th>',data1=period1[compKeys[i]],data2=period2[compKeys[i]];let anchor1='<td></td>',anchor2='<td></td>';let title=sideHeader.split('>')[1].split('<')[0].trim();if(data1&&data1[0]){let monYr=mKeys[1].split('-')[1]+' '+mKeys[1].split('-')[0];anchor1=dPad+'<a class="h" target="_blank" href="https://docs.google.com/spreadsheets/d/';anchor1+=data1[0]+'/edit#gid=1165085359" title="'+title+'">';anchor1+=(data1[1])?monYr+'</a>':'</a>'+monYr;anchor1+='</td>'}
|
||||
if(data2&&data2[0]){let monYr=lastMonth+' '+lastYear;anchor2=dPad+'<a class="h" target="_blank" href="https://docs.google.com/spreadsheets/d/';anchor2+=data2[0]+'/edit#gid=1165085359" title="'+title+'">';anchor2+=(data2[1]&&active)?monYr+'</a>':'</a>'+monYr;anchor2+='</td>'}
|
||||
if(anchor1=='<td></td>'&&anchor2=='<td></td>')sideHeader=sideHeader.replace('<th ','<th class="redundant" ');table+='<tr>'+sideHeader+anchor1+anchor2+'</tr>'}
|
||||
$('#omcMon').html(table)})
|
||||
@@ -1,65 +1,58 @@
|
||||
const companies = {
|
||||
$(document).ready( () => {
|
||||
|
||||
'CLs': 'CAROLINA LOGISTICS, Inc <span>70830516181943</span>',
|
||||
'DE': 'DELTA EXPRESS, Inc <span>70830515177576</span>',
|
||||
'DL': 'DELTA LOGISTICS, Inc <span>70830517302592</span>',
|
||||
'OT': 'ONTRACK TRANSPORTATION, Inc <span>70830517305886</span>',
|
||||
'PT': 'PRECISE TRANSPORTATION, Inc <span>70830517302433</span>',
|
||||
const companies = getCompanies();
|
||||
|
||||
'DES': 'DELTA EXPRESS SERVICES, Inc <span></span>',
|
||||
'RT': 'RAINIER TRANSPORTATION, Inc <span>70830517307425</span>',
|
||||
const pad = 'style="padding: 12px 54px;">',
|
||||
hPad = '<th ' + pad, dPad = '<td ' + pad;
|
||||
let table = '<tr id="hdr">' + hPad + 'Company</th>' + hPad + 'Period 1</th>' + hPad + 'Period 2</th></tr>';
|
||||
|
||||
};
|
||||
let compKeys = Object.keys(companies),
|
||||
mKeys = Object.keys(monthlySpreadsheets),
|
||||
lastPeriod = mKeys[0],
|
||||
lastMonth = lastPeriod.split('-')[1],
|
||||
lastYear = lastPeriod.split('-')[0],
|
||||
active = new Date >= new Date(lastMonth + ' 1, ' + lastYear),
|
||||
period1 = monthlySpreadsheets[mKeys[1]],
|
||||
period2 = monthlySpreadsheets[lastPeriod];
|
||||
|
||||
const pad = 'style="padding: 12px 54px;">',
|
||||
hPad = '<th ' + pad, dPad = '<td ' + pad;
|
||||
let table = '<tr id="hdr">' + hPad + 'Company</th>' + hPad + 'Period 1</th>' + hPad + 'Period 2</th></tr>';
|
||||
for (let i = 0; i < compKeys.length; i++) {
|
||||
|
||||
let compKeys = Object.keys(companies),
|
||||
mKeys = Object.keys(monthlySpreadsheets),
|
||||
lastPeriod = mKeys[0],
|
||||
lastMonth = lastPeriod.split('-')[1],
|
||||
lastYear = lastPeriod.split('-')[0],
|
||||
active = new Date >= new Date(lastMonth + ' 1, ' + lastYear),
|
||||
period1 = monthlySpreadsheets[mKeys[1]],
|
||||
period2 = monthlySpreadsheets[lastPeriod];
|
||||
let sideHeader = hPad + companies[compKeys[i]] + '</th>',
|
||||
data1 = period1[compKeys[i]],
|
||||
data2 = period2[compKeys[i]];
|
||||
|
||||
for (let i = 0; i < compKeys.length; i++) {
|
||||
let anchor1 = '<td></td>', anchor2 = '<td></td>';
|
||||
|
||||
let sideHeader = hPad + companies[compKeys[i]] + '</th>',
|
||||
data1 = period1[compKeys[i]],
|
||||
data2 = period2[compKeys[i]];
|
||||
let title = sideHeader.split('>')[1].split('<')[0].trim();
|
||||
|
||||
let anchor1 = '<td></td>', anchor2 = '<td></td>';
|
||||
if (data1 && data1[0]) {
|
||||
|
||||
let title = sideHeader.split('>')[1].split('<')[0].trim();
|
||||
let monYr = mKeys[1].split('-')[1] + ' ' + mKeys[1].split('-')[0];
|
||||
|
||||
if (data1 && data1[0]) {
|
||||
anchor1 = dPad + '<a class="h" target="_blank" href="https://docs.google.com/spreadsheets/d/';
|
||||
anchor1 += data1[0] + '/edit#gid=1165085359" title="' + title + '">';
|
||||
anchor1 += (data1[1]) ? monYr + '</a>' : '</a>' + monYr;
|
||||
anchor1 += '</td>';
|
||||
|
||||
let monYr = mKeys[1].split('-')[1] + ' ' + mKeys[1].split('-')[0];
|
||||
}
|
||||
|
||||
anchor1 = dPad + '<a class="h" target="_blank" href="https://docs.google.com/spreadsheets/d/';
|
||||
anchor1 += data1[0] + '/edit#gid=1165085359" title="' + title + '">';
|
||||
anchor1 += (data1[1]) ? monYr + '</a>' : '</a>' + monYr;
|
||||
anchor1 += '</td>';
|
||||
if (data2 && data2[0]) {
|
||||
|
||||
let monYr = lastMonth + ' ' + lastYear;
|
||||
|
||||
anchor2 = dPad + '<a class="h" target="_blank" href="https://docs.google.com/spreadsheets/d/';
|
||||
anchor2 += data2[0] + '/edit#gid=1165085359" title="' + title + '">';
|
||||
anchor2 += (data2[1] && active) ? monYr + '</a>' : '</a>' + monYr;
|
||||
anchor2 += '</td>';
|
||||
|
||||
}
|
||||
|
||||
if (anchor1 == '<td></td>' && anchor2 == '<td></td>') sideHeader = sideHeader.replace('<th ', '<th class="redundant" ');
|
||||
|
||||
table += '<tr>' + sideHeader + anchor1 + anchor2 + '</tr>'
|
||||
|
||||
}
|
||||
|
||||
if (data2 && data2[0]) {
|
||||
$('#omcMon').html(table);
|
||||
|
||||
let monYr = lastMonth + ' ' + lastYear;
|
||||
|
||||
anchor2 = dPad + '<a class="h" target="_blank" href="https://docs.google.com/spreadsheets/d/';
|
||||
anchor2 += data2[0] + '/edit#gid=1165085359" title="' + title + '">';
|
||||
anchor2 += (data2[1] && active) ? monYr + '</a>' : '</a>' + monYr;
|
||||
anchor2 += '</td>';
|
||||
|
||||
}
|
||||
|
||||
if (anchor1 == '<td></td>' && anchor2 == '<td></td>') sideHeader = sideHeader.replace('<th ', '<th class="redundant" ');
|
||||
|
||||
table += '<tr>' + sideHeader + anchor1 + anchor2 + '</tr>'
|
||||
|
||||
}
|
||||
|
||||
document.getElementById('omcMon').innerHTML = table;
|
||||
});
|
||||
|
||||
@@ -55,3 +55,25 @@ const monthlySpreadsheets = {
|
||||
},
|
||||
|
||||
};
|
||||
|
||||
|
||||
const getCompanies = () => {
|
||||
|
||||
return {
|
||||
|
||||
'CLs': 'CAROLINA LOGISTICS, Inc <span>70830516181943</span>',
|
||||
'DE': 'DELTA EXPRESS, Inc <span>70830515177576</span>',
|
||||
'DL': 'DELTA LOGISTICS, Inc <span>70830517302592</span>',
|
||||
'OT': 'ONTRACK TRANSPORTATION, Inc <span>70830517305886</span>',
|
||||
'PT': 'PRECISE TRANSPORTATION, Inc <span>70830517302433</span>',
|
||||
|
||||
'DES': 'DELTA EXPRESS SERVICES, Inc <span></span>',
|
||||
'RT': 'RAINIER TRANSPORTATION, Inc <span>70830517307425</span>',
|
||||
|
||||
// 'AE': 'ALPHA EXPRESS, Inc <span></span>',
|
||||
// 'HH': 'HUGO HUNTER, Inc <span></span>',
|
||||
// 'CDT': 'CAROLINA DUMP TRUCKING, Inc <span></span>',
|
||||
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user