dbmasteruser
Q7B2(R8d;m`n}l%kj2M7q^S&:}1z,F
tip_master
5432
ls-ee79dd780a352064468e4dc5bfef3cbc5675526f.cezd6k0feuf4.us-west-2.rds.amazonaws.com
Hey Ryan, when you get the chance, can you share the google sheet that you used to copy the hours/minutes over to from Dennis's reports? I only have the TIP Lawruler Service Based Statuses
Morning, here is the "Daily Routine" I'll have you watch live on Monday recorded for today that we'll have you do. There is one more step to it to update signed and declines in the TIP Fin Log table but this part is a stand alone step:
Second video for training on TIP Financial Log Referral Allocations, TIP Slack Alerts
SQL for TIP Daily Morning Routine in PG Admin:
```-- FIND MISSING S1s in TIP DB SELECT lrleadid,casetype,firstname,lastname,currentassignee --SELECT lrleadid,typeofcase,firstname,lastname,currentassignee,casedescription SELECT ** FROM public.financiallog WHERE signeddate = CURRENTDATE - INTERVAL '1 day' AND currentstatus LIKE 'Signed e-Sign%' AND leadsource LIKE 'Shield Legal%' --AND (LOWER(firstname) LIKE '%test%' OR LOWER(lastname) LIKE '%test%') ORDER BY typeofcase,lastname ASC;
--MAKE S1s by Parent Case Type and LP Lead IDs SELECT signeddate, 'DL - FI - 439 - 1359' as AltID, firstname, lastname,'S1:'as S1Label, lpleads1,lpleadid,typeofcase,lpcontractscheduledowprice FROM public.financiallog WHERE signeddate = CURRENTDATE - INTERVAL '1 day' AND currentstatus LIKE 'Signed e-Sign%' AND leadsource LIKE 'Shield Legal%' AND (lpleadid = 'Referral' OR lpleadid = 'TV') ORDER BY typeofcase,lastname,lpcontractscheduledow_price ASC;```
Hey Ryan, I just wanted to reach out to see how I log into AWS, if you can get me a list of the contract id's and a list of the .... sales people? I don't know their names or even how many of them there are 😂
@deleted-U072JS2NHRQ, hop on this Huddle real fast
@deleted-U072JS2NHRQ, try this link: https://meet.google.com/kty-xoee-egq
Hey Ryan, I never got that email for the AWS thing, but I also wanted to let you know I head home in like 20 minutes, but if Tony get's back to you today just let me know on Slack and I can log on at home to do it, that work for you?
Try now, or see below for login @deleted-U072JS2NHRQ
I tried with Root user and IAM user and it says: this for both
@deleted-U072JS2NHRQ, try again. It worked for me first try, but I did not change that temp password.
URL: https://960735831404.signin.aws.amazon.com/console Account ID: 960735831404 User: aidan@tortintakeprofessionals.com Temp. Pass: [vLrN^5)
ohhh it worked now, I think I was using the wrong URL , my bad
```For our meeting, the 3 sql statements.
--CASE REVIEWS SECTION SELECT signeddate, lpleads1,currentstatus,** FROM public.financiallog WHERE signeddate BETWEEN '2024-07-01' AND '2024-07-07' AND currentstatus LIKE 'Case Review%' ORDER BY signeddate ASC
UPDATE public.financiallog
SET talktimerevenue = (talktimerevenue+'28.37209302'),
grossrevenue = (grossrevenue+'28.37209302'),
netrevenue = (netrevenue+'28.37209302'),
talktimeminutes = (talktimeminutes+'14.18604651')
WHERE signeddate BETWEEN '2024-07-01' AND '2024-07-07'
AND currentstatus LIKE 'Case Review%'
--ESIGNS SECTIONS
SELECT signeddate, lpleads1,currentstatus,**
FROM public.financiallog
WHERE signeddate BETWEEN '2024-07-01' AND '2024-07-07'
AND currentstatus LIKE 'Signed e-Sign%'
ORDER BY signed_date ASC
UPDATE public.financiallog
SET talktimerevenue = (talktimerevenue+'83.47985507'),
grossrevenue = (grossrevenue+'83.47985507'),
netrevenue = (netrevenue+'83.47985507'),
talktimeminutes = (talktimeminutes+'41.73992754')
WHERE signeddate BETWEEN '2024-07-01' AND '2024-07-07'
AND currentstatus LIKE 'Signed e-Sign%'
--SECONDARY INTERVIEW SECTION
SELECT signeddate, lpleads1,currentstatus,**
FROM public.financiallog
WHERE signeddate BETWEEN '2024-07-01' AND '2024-07-07'
AND currentstatus LIKE 'Secondary Interview%'
ORDER BY signed_date ASC
UPDATE public.financiallog SET talktimerevenue = (talktimerevenue+'0'), grossrevenue = (grossrevenue+'0'), netrevenue = (netrevenue+'0'), talktimeminutes = (talktimeminutes+'0') WHERE signeddate BETWEEN '2024-07-01' AND '2024-07-07' AND current_status LIKE 'Secondary Interview%'```
-- Monthly Routine -- Update Raw Status Report -- RUN Generate Fin Log Lambda UPDATE rawstatusreport SET currentstatus = 'Signed e-Sign Secondary Interview - ASA' WHERE currentstatus = 'Secondary Interview - ASA';
-- ONE TIME CODE FOR CLEAN UP --Update Fin Log table UPDATE public.financiallog SET currentstatus = 'Secondary Interview - ASA' WHERE current_status Like '%Signed e-Sign Secondary Interview - ASA%'
--GET LOG ROWS SELECT ** FROM public.financiallog WHERE currentstatus LIKE 'Secondary Interview - ASA%' ORDER BY date_inserted DESC;
--UPDATE LOG ROWS --MUST RUN TWICE!!! UPDATE public.financiallog SET contractrevenue = '100', agentcommission = '30', grossrevenue = contractrevenue + talktimerevenue, netrevenue = contractrevenue + talktimerevenue, talktimeexpense = '0' WHERE currentstatus LIKE 'Secondary Interview - ASA%';```
I'm in the google meeting, I already started the lambda generate financial log a little while ago
I'm in it too
SL / TIP Daily Routine
Wednesday, July 17 · 10:00 – 11:00am
Time zone: America/Chicago
Google Meet joining info
Video call link: https://meet.google.com/cru-ivif-oph
Or dial: (US)
I can delete test leads right? this is after the lambda has run
should e-signs yesterday on financial dashboard and the pgadmin sql match? I have 129 on pgadmin but 133 on the e-sign yesterday. I have 4 test leads I need to delete though in pgadmin
Yes they will match , but you have to make sure sure in the dashboard you’re only selecting Shield Legal source, and that they’re all the E signs
ahhhhh, ok I see it now, perfect! and just for my understanding, deleting it from pgadmin won't delete it from lawruler I'm assuming, is that right? it's just deleting it from the financial reporting
Is this just Maximus testing out updating his updated media buyer code? or is this something I should look into
Don’t worry about that, that’s Maximus testing his campaigns
None of that S1 means anything to you and me
Gotcha, and last question: How do I find this again: it has a lp lead id, but no s1
I don't remember where it's hard coded of who's link it was that they used**
<#C03GKEAN2SD|camp-lejeune> channel, look at last XLS for that day
If you get the chance, can you add me to the baby formula chat?
Hey Ryan, I'm doing the ASA portion of the weekly financial revenue update, but, I just want to confirm I run this last part twice, right? I know it says to, but just want to confirm since it's first time I'm doing by myself 😅
@deleted-U072JS2NHRQ, yes, twice, first one updates the contract revenue and commission, then the second runs ensures the gross and net revenue calculate
Hey @Ryan, I'm trying to search for a LP Lead ID, and I can't find it in Slack, the lead was created on July 24th in Lawruler for Illinois Juv Hall abuse, but it's not in the excel for that day
https://tortintakeprofessionals.lawruler.com/update-lead.aspx?lead=563119 Ivan Berry - Illinois Juv Hall Abuse Crump Slater created Jul 24th
it was created under MD Juv Hall Abuse - Crump Slater at first, and I checked that channel too and nothing
@deleted-U072JS2NHRQ, send me the LP Lead ID please
8OX1DAI4 Luke helped me I think he said it was Lee Zafra so I think I'm golden! I just don't know how to find this info if it's not in the slack channel
Hey @Ryan , I had to call in today as I’m very sick, but I will do the S1 extra weekly stuff that I saw you mention, when I get back, that sound okay? Sorry about this
Still sick, not working today either, it’s looking like Wednesday will be my day back. Just a heads up. I’ll let Luke know as well
Hey @Ryan, I wasn't doing S1's, I can do them today, should I do the weekly call revenue thing as well today or did someone else already do them?
Just as a heads up, I see that you or someone else using financial reporting updated these leads to test lead dispos, but they're still showing up in the lambda reporting and the sql query that I run.
Tell Mark to stop, delete them
What happens if the Lambda fails @Ryan? Should I just run it again? idk if it's a big deal or not
the Lambda said it succeeded, but every row was an error so I don't know if it worked or not, it just seems suspicious so I wanted to let you know either way
It’s poor wording by the developer, that’s just showing you that those are duplicates and not to be inserted again
ohhhhh, gotcha gotcha, okay cool, so we're golden then, thank you!
Morning Aidan. FYI, I spoke to Cameron, Tony and awaiting Brittany's response but I did get one more TIP daily routine task that takes about 15 minutes similar to the S1s. Updating the financial log table statuses to their respective decline status if declined after post e-signing and it does not pass final QA.
I created a report to deliver at 4AM and have some more SQL tricks to show you to create a quick look up of these statuses to update their value in the table.
I'll be out in London all next week so maybe we can meet today and I can show you how to do these?
Actually, I will do a Loom video of me doing it right now for you.
okay! yeah the Loom video is ideal cuz I've referred to the Loom videos a lot while learning the S1 daily stuff, so that's the ideal resource for me honestly
Great, we are recording now. Note that the report will show up via email, so you won't have to export manually from LawRuler
@deleted-U072JS2NHRQ, now this video shows me doing an "ok" job at the front-end to confirm if they are "Signed & DECLINED" or if "Billable to Firm Declined" or "...Client Opt Out". You should filter the https://docs.google.com/spreadsheets/d/1of10KUMcKX-pYj7U9MRIw_D7paNvOVwMFbtORtJM9bI/edit?gid=1893613719#gid=1893613719&range=A:B|sheet and update the SQL formulas to do them in small batches by each of those 3 statuses:
https://www.loom.com/share/a7ea348491224eea8ce40b277b983ae0
```SELECT signeddate,currentstatus,parentcasetype,typeofcase,lpleads1, firstname, lastname, lpleadid, lrleadid,** FROM public.financial_log WHERE ( -- CUT AND PASTE THE NEW ONES FROM THE TIP SQL TOOLS SHEET BELOW HERE
lrleadid = '101307' OR lrleadid = '101534' OR lrleadid = '106011' OR lrleadid = '106429' OR lrleadid = '106743' OR lrleadid = '109049' OR lrleadid = '109069' OR lrleadid = '109266' ) ORDER BY signed_date ASC```
Then I need the declined lead IDs so I can remove from SL financials.
@deleted-U072JS2NHRQ, the two lead IDs from yesterday from Chowchilla - ACTS/DL - Flatirons - Shield Legal, are all for Maximus, please be careful to not allocate to people that are not showing up in the rows with S1s for a given case type
@Ryan wait I'm confused, were they referrals? or did they have S1's?
Not sure how Jack got a lead, but I updated them already to be ML
What was the name? Cuz today I only had 1 blank chowchilla - Meylia Milton and April Mojarro? Meylia is hard coded under jack
Not sure how Jack got one, but I will update it to be JA
oh, ok yeah I'll give the extra to who has the most going forward, Max had like a ton and Jack had 1 chowchilla today so i gave it to jack
and okiedokie, yeah, idk how to tell who actually spent money on it, but i look at the dashboard to see who's names pop up
you can always check the dash and see who is getting them on prior days from yesterday too to guide who is "spending money on those".
OH, i didn't know that, I just looked at the ones from e-signs yesterday, but ok good to know, thank you! i'll start doing that to check
Hey @Ryan I'm trying to do the Declines right now, but there's nothing that needs to be changed from like Flagged or In Process to Declined, I'm assuming I just leave it and post in the logistics chat that there were no declines to be removed from the TIP dashboard?
Also, that video didn't have audio, I get the feeling it wasn't supposed to have audio but just wanna double check
I left it off, and I did declines last night on the plane, so there would be none today.
And yes, you post in #C022831MSUF, "No Declines" to me
@Ryan Dennis is sending me some test leads that are on the operations dashboard under ACTS, I was able to find the lead within pgAdmin, am I okay to delete them? I've never touched anything outside of Shield Legal before so I just wanna confirm first
Good morning. Would you mind waiting to 8:45AM to do the S1s?
Want to see if that helps prevent us losing them from the automatic run at 8:30 am?
I already ran it, and did the allocations. Wait till 845 before you post the slack alerts, just to see if the automatic run at 8:30 ruins what I’ve done
gotcha, sounds good i'll let you know what I see at 8:45, if it ruins it or not
Okay so it doesn't seem like anything got erased after I ran the lambda, but Monday I can run the Lambda when I get in at 6am, and then again at 8:45 to see if anything happens as well, cuz I know SOME funky stuff happens sometimes. It's just replicating and finding where that funky stuff happens
BUT for now everything is good, No blank S1's, no wrong Contract ID's, referal allocations are all done too, so i'll post the slack alerts and do the deletes now 👍:skintone3:
Excellent. @deleted-U072JS2NHRQ, I think we can run it at 6:00 AM to 6:30AM each day, and then do the S1 and Contract ID allocations and check at 8:45 to make sure we didn't lose them.
sounds good! I'll start doing that Monday and I'll let you know if I see any funny business @Ryan
Hey @Ryan, if possible could you send the financial report to me on the weekend as well? I can't do declines for today because I didn't get a lawruler decline report
We can make up on Monday and figure it out. Enjoy your weekend.
Morning @deleted-U072JS2NHRQ , you get Declines report this morning? I see it.
Good Morning @Ryan wait, I thought you needed me to work weekend from the 4th-10th, I didn’t know you needed them today! I’m sorry I didn’t do them today I just woke up lol
That’s fine, I got confused and today had no S1s.
When Dennis sends the Connex and Vici reports in the invoicing chat, do you know who uses them? I think it's just you and Brian Thiessen, but I wanted to ask, does it MATTER if it's in a google sheet or excel?
gotcha, yeah no I got the talk time revenue down, i was just talking about the talk time that dennis uploads cuz i was gonna switch over to doing it and I like using excel but thank you! 🙂 I'm working on the talk time rev per lead now
Hey @Ryan I got something urgent I gotta get in today, I'm gonna work on that prior to the S1's, it'll probably be like 8ish that I'll get to the S1's that ok? I know the lambda already runs around 8 so I can just aim to get them done right after
@deleted-U072JS2NHRQ, think I solved the problem with our S1s disappearing. Our AWS Lambda was running too soon before our data showed up, so that is why we would get "new rows" in your 6:30 AM PDT run and hopefully no more "missing rows" and no more "S1 overwrites".
Hey @Ryan just a heads up, I’m coming in late today so the S1’s will be done around 8/9 today. Just wanted to give you a heads up
@deleted-U072JS2NHRQ, sounds good. Probably just deletes this AM with only five deals.
Hey @Ryan I cannot for the life of me, find this lady: "Kerri" "Lockett" LP ID: "KOU1LNG7" LR Lead ID: 575762 "Illinois Juv Hall Abuse - Crump - Slater - Shield Legal"
@deleted-U072JS2NHRQ, that is supposed to be a Ben Crump BLX case, the lead is an organic lead from BLX.
@deleted-U072JS2NHRQ, hold on a moment. Not all sign ups came over. Let me check a few things in AWS.
So once before LawRuler corrupted their own reports. The 3:45AM PDT report only had 39 rows in it so that is obviously not correct. So I deleted the Scheduled Report and recreated it plus manually uploaded the correct one. Rerunning TIP Generate Fin Log lambda now, fingers crossed.
We should have 85 or so sign ups from yesterday and our the fin_log table only showed "Dates Inserted" of 8-19-2024 when we should have 8-20-2024 in there as well from this mornings run.
Oh I see, it wasn't pulling the ones from early early morning
@deleted-U072JS2NHRQ, now you can do the S1s and Contract IDs, we have 90 like we are supposed too...no wonder we were getting deals late in the day compared to the earlier part of the day from the day before .
This may fix the need to do the Lambda run each morning. We only started doing that recently and now we know why we had to do it. Let me know each morning when you run it. Know the count in the table before you run and after and let me know if that changes.
okay deal, I can do that, I'll keep you updated on it if i see anything funky
Great. Finally we figured it out, man. I was going crazy seeing the "Yesterday" sign ups differ later in the day (meaning our 3:00PM) report was not corrupted so it ran correctly.
yeah, I was like 'am i stupid or is something weird happening' lol
@deleted-U072JS2NHRQ, update lead id 575433 to "PL-FacebookMB-MLlumen34" in slack, I updated finlog, you used an Asbestos S1 on a CA Juve Hall. Make sure your allocate only amongst the "Parent Case Types".
@Ryan done. So how do you allocate S1's when there's only 1 of the parent case types and the lp id and s1 is empty? like for example, the Dacthal lead thats in there right now, i think it's for Breanna Blueford, IF it was blank, how do I know who to allocate it to? that's kinda the thing I'm struggling with the most, if there's no other leads for me to compare it to, I don't know who to allocate it to, does that make sense?
Look in the #C07GYEQ8H7T channel, scroll up and see who's initials have been getting deals the few days before.
ohhh gotcha, like the firefoam and gaming addiction chats for example right? is that what you mean?
102 before and after the lambda refresh today, I forgot to do this yesterday.
@deleted-U072JS2NHRQ, excellent. I know I fixed the issue. LawRuler Status Reports got corrupted. Let Brittany, Alan and Tony know. If you open them up and they look like they do in the video, got to recreate it.
https://www.loom.com/share/33ab66025d924270b6d4872968dc96e8
hey @Ryan can you look at the video gaming excel sheets? somethings happening with them
none of the people are showing up, it's like this: and there should be WAY more than 3 for 8.27.24
done, thank you! sorry about this, idk why i looked them up in the slack channel excel, they don't have lp lead id's. brain isn't working fully this morning
Hey @Ryan should I always like give family members to 1 media buyer if it was a attorney referral? or is it okay to split it up? there's 3 family members that we got as a lead labeled as attorney referral. no lp lead id, no s1, and they're all signed e-sign in process
As long as they spent on them. Look at yesterday for that case type. Follow that insight to confirm.
gotcha, yeah I'll change it and split it, cuz Maximus and Jack are like 3 and 3 so i wanted to split them evenly if possible. Thank you!
I did the S1s and Contract IDs, just post to channels please @deleted-U072JS2NHRQ, I have today off so I started early
Great, send Declines soon after that, I am ready on the Shield side for Cam already.
Did you do declines? There's only 1 today it seems, so I didn't know if you did them already
@Ryan can you add me to the Dacthal channel when you get a chance?
Hey @Ryan can you confirm if this is a test lead? I think it is but just wanna make sure before I delete it https://tortintakeprofessionals.lawruler.com/update-lead.aspx?lead=554296
Yes, test. You can always look for an actual retainer signed too in the LR documents section
oh! ok yeah i didn't know that, cool, ok i'll keep that in mind going forward, thank you! 🙂
hey @Ryan can you add me to the michigan juv hall slack channel? I'm trying to find the S1 for: https://tortintakeprofessionals.lawruler.com/update-lead.aspx?lead=587157
hey @Ryan can you add me to the Bard PowerPort channel? that's the catheter case type I believe
In the morning, when you get any TEST leads, don't delete them from the fin_log table, just mark them "Signed & DECLINED" so they are not put back in later by accident.
@Ryan if the lambda report failed (I think it timed out) do I just run it again?
I tried to run it again, and it failed an additional 2 times. I'm not gonna touch it anymore, I don't wanna like break anything. I made sure nothing else was running before I ran it prior too
We got a 1.3MB LR Status Report, usually about 700KB, so it might be timing out trying to run through 6500 rows. Stand by.
@deleted-U072JS2NHRQ, still working on it, stay tuned
no worries, take your time I get paid by the hour lol
@deleted-U072JS2NHRQ, it finally finished but running ONE more time for good measure
was there a bunch of extra stuff or something? like where'd the extra like 600MB come from?
Not sure how so many got sent, will keep an eye on it but it has 6700 rows versus the typical 3000 rows. The Lambda times out after 00:08:30
But it picks up where it left off, so I just kept re-running it and checking dashboard
Ready, I did the S1 allocation, please do Contract IDs and posts of referrals, ty @deleted-U072JS2NHRQ
yeah, that's kinda insane that so many got sent, oh well! but thank you, I'll go ahead and do those, thank you!
Maybe they did a mass bulk status change on several rows.
That would cause "status report" to have nearly triple the rows
@Ryan did you mean to pin my message? lol also, I wanted to let you know, there were NO VGA leads yesterday, I find that a bit weird unless we passed a deadline, do you happen to know if that's the case?
No, the media buys have not run VGA since July so it's been all catch up on thousands of leads.
Hey @Ryan when I'm doing the talk time revenue, I see that the Secondary interview section pulls 0 secondary interview ASA leads, but there's like 54 hours of talk time
I made sure to change the dates, so I know that's right at least
ok deal, I did this part too prior to running the 'get log rows' portion of case reviews, e-sign, and secondary interview stuff
I am updating this SQL for September, and will get clarification of "billable statuses" from Alan, it appears to have changed again without notice to me.
I'll get September loaded in about one more minute or so
Then you can do 9/1 to 9/15 Secondary Interview Talk Time
@deleted-U072JS2NHRQ, I have updated the SQL to account for all ASA billable statuses, we are good for September 2024 through the 15th. You good to update Talk Time Revenue now?
-- Routine
-- #1 GET rows from status report to COUNT total SELECT ** FROM rawstatusreport WHERE (currentstatus = 'Secondary Interview - ASA' OR currentstatus = 'Secondary Interview - Final' OR currentstatus = 'Secondary Interview - Sent' OR currentstatus = 'Secondary Interview - Completed' OR currentstatus = 'HIPAA Signed' OR currentstatus = 'VGA 2nd Interview Completed - Tier 1' OR currentstatus = 'VGA 2nd Interview Completed - Tier 2' OR currentstatus = 'VGA 2nd Interview Completed - Tier 3') AND date_inserted >= '2024-09-01 00:00:00';
-- #2 Update Raw Status Report with Signed e-Sign string UPDATE rawstatusreport SET currentstatus = 'Signed e-Sign ' || currentstatus WHERE (currentstatus = 'Secondary Interview - ASA' OR currentstatus = 'Secondary Interview - Final' OR currentstatus = 'Secondary Interview - Sent' OR currentstatus = 'Secondary Interview - Completed' OR currentstatus = 'HIPAA Signed' OR currentstatus = 'VGA 2nd Interview Completed - Tier 1' OR currentstatus = 'VGA 2nd Interview Completed - Tier 2' OR currentstatus = 'VGA 2nd Interview Completed - Tier 3') AND date_inserted >= '2024-09-01 00:00:00';
-- #3 RUN Generate Fin Log Lambda to process #2
-- #4 Update Fin Log table to revert back to actual status for ASA UPDATE public.financiallog SET currentstatus = REPLACE(currentstatus, 'Signed e-Sign ', '') WHERE (currentstatus LIKE '%Secondary Interview - ASA' OR currentstatus LIKE '%Secondary Interview - Final' OR currentstatus LIKE '%Secondary Interview - Sent' OR currentstatus LIKE 'Secondary Interview - Completed' OR currentstatus LIKE '%HIPAA Signed' OR currentstatus LIKE '%VGA 2nd Interview Completed - Tier 1' OR currentstatus LIKE '%VGA 2nd Interview Completed - Tier 2' OR currentstatus LIKE '%VGA 2nd Interview Completed - Tier 3') AND dateinserted >= '2024-09-01 00:00:00'
-- #5 & #8 GET rows with updated status to validate revenue update below and CHECK rows after #7 SELECT ** FROM public.financiallog WHERE (currentstatus LIKE '%Secondary Interview - ASA' OR currentstatus LIKE '%Secondary Interview - Final' OR currentstatus LIKE '%Secondary Interview - Sent' OR currentstatus LIKE 'Secondary Interview - Completed' OR currentstatus LIKE '%HIPAA Signed' OR currentstatus LIKE '%VGA 2nd Interview Completed - Tier 1' OR currentstatus LIKE '%VGA 2nd Interview Completed - Tier 2' OR currentstatus LIKE '%VGA 2nd Interview Completed - Tier 3') AND dateinserted >= '2024-09-01 00:00:00' ORDER BY signed_date DESC;
--#7 UPDATE LOG ROWS --MUST RUN TWICE!!! UPDATE public.financiallog SET contractrevenue = '100', agentcommission = '0', grossrevenue = contractrevenue + talktimerevenue, netrevenue = contractrevenue + talktimerevenue, talktimeexpense = '0' WHERE (currentstatus LIKE '%Secondary Interview - ASA' OR currentstatus LIKE '%Secondary Interview - Final' OR currentstatus LIKE '%Secondary Interview - Sent' OR currentstatus LIKE 'Secondary Interview - Completed' OR currentstatus LIKE '%HIPAA Signed' OR currentstatus LIKE '%VGA 2nd Interview Completed - Tier 1' OR currentstatus LIKE '%VGA 2nd Interview Completed - Tier 2' OR currentstatus LIKE '%VGA 2nd Interview Completed - Tier 3') AND dateinserted >= '2024-09-01 00:00:00';```
Hey @Ryan I’m good to run it in like 30 minutes, that okay? I’m finishing up something else real quick
Of course, and again just do the Talk Time Revenue part, I did that entire set of SQL expressions for September.
Gotcha, so: ```-- ASA Services
-- Do this weekly -- Update Raw Status Report -- RUN Generate Fin Log Lambda UPDATE rawstatusreport SET currentstatus = 'Signed e-Sign Secondary Interview - ASA' WHERE currentstatus = 'Secondary Interview - ASA';
-- ONE TIME CODE FOR CLEAN UP --Update Fin Log table UPDATE public.financiallog SET currentstatus = 'Secondary Interview - ASA' WHERE current_status Like '%Signed e-Sign Secondary Interview - ASA%'
--GET LOG ROWS SELECT ** FROM public.financiallog WHERE currentstatus LIKE 'Secondary Interview - ASA%' ORDER BY date_inserted DESC;
--UPDATE LOG ROWS --MUST RUN TWICE!!! UPDATE public.financiallog SET contractrevenue = '100', agentcommission = '30', grossrevenue = contractrevenue + talktimerevenue, netrevenue = contractrevenue + talktimerevenue, talktimeexpense = '0' WHERE currentstatus LIKE 'Secondary Interview - ASA%';
--------------------------------------------------------------------
--CASE REVIEWS SECTION SELECT signeddate, lpleads1,currentstatus,** FROM public.financiallog WHERE signeddate BETWEEN '2024-09-09' AND '2024-09-15' AND currentstatus LIKE 'Case Review%' ORDER BY signeddate ASC
UPDATE public.financiallog SET talktimerevenue = (talktimerevenue+'10.88157895'), grossrevenue = (grossrevenue+'10.88157895'), netrevenue = (netrevenue+'10.88157895'), talktimeminutes = (talktimeminutes+'5.440789474') WHERE signeddate BETWEEN '2024-09-09' AND '2024-09-15' -- UPDATE THESE DATES AND current_status LIKE 'Case Review%'
--ESIGNS SECTIONS SELECT signeddate, lpleads1,currentstatus,** FROM public.financiallog WHERE signeddate BETWEEN '2024-09-09' AND '2024-09-15' AND currentstatus LIKE 'Signed e-Sign%' ORDER BY signeddate ASC
UPDATE public.financiallog SET talktimerevenue = (talktimerevenue+'96.31376975'), grossrevenue = (grossrevenue+'96.31376975'), netrevenue = (netrevenue+'96.31376975'), talktimeminutes = (talktimeminutes+'48.15688488') WHERE signeddate BETWEEN '2024-09-09' AND '2024-09-15' -- UPDATE THESE DATES AND current_status LIKE 'Signed e-Sign%'
--SECONDARY INTERVIEW SECTION SELECT signeddate, lpleads1,currentstatus,** FROM public.financiallog WHERE signeddate BETWEEN '2024-09-09' AND '2024-09-15' AND currentstatus LIKE 'Secondary Interview%' ORDER BY signeddate ASC
UPDATE public.financiallog
SET talktimerevenue = (talktimerevenue+'
Going forward, I'm going to change the top portion to the SQL code that you sent, correct?
But right now, I'm just doing the bottom half, am I understanding that right?
I did all of that sequel code, for now I just need you to make sure that we get the talk time revenue spread across those so you would use the bottom half of that sequel, to select the existing rose to know what to update their revenue too. Does that make sense?
We can hop on call tomorrow and review the SQL for talk time revenue JIC
@Ryan the lambda failed again, I'm running it again to see what's going on, idk if it's the same thing as last time or not. total of 5593 leads or rows that it was trying to process
Over and over. I am back filling the missing ASA leads
as long as it takes, i'll do it lol i'm sick and working from home today, so clicking a button every 8 minutes is ideal work for me right now
We should be almost done. It will complete green when done. We had 10K rows to process, in 8 minutes it can scan about 3000 rows and process about 300 to 400 leads into log.
[INFO] 2024-09-17T14:50:15.303Z 0c292936-ea3d-4e05-9673-99fa9f7479aa #4341/4908:
I'm honestly just running it again and again till I see green, it failed 2 more times, but ima keep doin it till I see green
It's starting to fill in the sign ups, so we are close. I started this last night but had to go to kid sports practices.
I found TONS of unbilled ASA stuff. :facepalm::skintone_4:
ahhhh, no worries, at least we'll get the company some money at least
Hey @Ryan the lambda is failing again 😭 it said it times out, it was at 4485/6013
I ran it again, but it failed 3 times. idk if I just have to run it a couple times for it to work, but i'll let you know if it fails again.
Same issue, we started with 6018 status changes yesterday. I meet with the engineer, I'll ask him to double the timeout processing.
And watch this to see how you can sorta monitor it from my limited knowledge of AWS Lambdas:
So you can see in this video, it fails at 8:30:00 usually if we have more than 3500 rows to process. This one started at 6400-ish and seems to process about 400 to 300 rows so each subsequent run is working. After it completes successfully @deleted-U072JS2NHRQ, run it one more time for good measure. It's not an intelligent script, it just processes sequentially and I keep seeing weird deals pop up later here and there, so just get 2 "Success" :largegreencircle:
https://www.loom.com/share/e7fb2f0718f64cd4a3c4947fc4402215
It keeps failing but I haven’t ran it the 10-15 times, I’m doing an audit right now and just rerunning it whenever I check and see it’s red
But I’ll check that one that you ran and hopefully that one works
It's almost done, I'll let you know
@deleted-U072JS2NHRQ, it worked. Running one more time for confidence.
and @Ryan you said put the testing leads into Signed & Declined right?
so I don't delete them, put them in Signed & Declined - I assume I don't have to worry about the S1 and lp contract name right?
Hey @Ryan, Dennis needs 2 leads updated in the dashboard to a different case type: 545904 521817
These lead ID's are showing up in the dashboard under: MD Juv Hall Abuse - Bailey Glasser - Van - Shield Legal but it's supposed to be under: BG - Sex Abuse - Maryland
I didn't wanna touch it, cuz I can find the lead id in the public financial log, but I don't wanna change anything until I can confirm with you what I'm supposed to change and if i'm even allowed to change it
Hey @Ryan, so just to confirm, do I get rid of this portion: ```-- ASA Services
-- Do this weekly -- Update Raw Status Report -- RUN Generate Fin Log Lambda UPDATE rawstatusreport SET currentstatus = 'Signed e-Sign Secondary Interview - ASA' WHERE currentstatus = 'Secondary Interview - ASA';
-- ONE TIME CODE FOR CLEAN UP --Update Fin Log table UPDATE public.financiallog SET currentstatus = 'Secondary Interview - ASA' WHERE current_status Like '%Signed e-Sign Secondary Interview - ASA%'
--GET LOG ROWS SELECT ** FROM public.financiallog WHERE currentstatus LIKE 'Secondary Interview - ASA%' ORDER BY date_inserted DESC;
--UPDATE LOG ROWS --MUST RUN TWICE!!! UPDATE public.financiallog SET contractrevenue = '100', agentcommission = '30', grossrevenue = contractrevenue + talktimerevenue, netrevenue = contractrevenue + talktimerevenue, talktimeexpense = '0' WHERE currentstatus LIKE 'Secondary Interview - ASA%';```
and just use this portion?
-- Routine
-- #1 GET rows from status report to COUNT total SELECT ** FROM rawstatusreport WHERE (currentstatus = 'Secondary Interview - ASA' OR currentstatus = 'Secondary Interview - Final' OR currentstatus = 'Secondary Interview - Sent' OR currentstatus = 'Secondary Interview - Completed' OR currentstatus = 'HIPAA Signed' OR currentstatus = 'VGA 2nd Interview Completed - Tier 1' OR currentstatus = 'VGA 2nd Interview Completed - Tier 2' OR currentstatus = 'VGA 2nd Interview Completed - Tier 3') AND date_inserted >= '2024-09-01 00:00:00';
-- #2 Update Raw Status Report with Signed e-Sign string UPDATE rawstatusreport SET currentstatus = 'Signed e-Sign ' || currentstatus WHERE (currentstatus = 'Secondary Interview - ASA' OR currentstatus = 'Secondary Interview - Final' OR currentstatus = 'Secondary Interview - Sent' OR currentstatus = 'Secondary Interview - Completed' OR currentstatus = 'HIPAA Signed' OR currentstatus = 'VGA 2nd Interview Completed - Tier 1' OR currentstatus = 'VGA 2nd Interview Completed - Tier 2' OR currentstatus = 'VGA 2nd Interview Completed - Tier 3') AND date_inserted >= '2024-09-01 00:00:00';
-- #3 RUN Generate Fin Log Lambda to process #2
-- #4 Update Fin Log table to revert back to actual status for ASA UPDATE public.financiallog SET currentstatus = REPLACE(currentstatus, 'Signed e-Sign ', '') WHERE (currentstatus LIKE '%Secondary Interview - ASA' OR currentstatus LIKE '%Secondary Interview - Final' OR currentstatus LIKE '%Secondary Interview - Sent' OR currentstatus LIKE 'Secondary Interview - Completed' OR currentstatus LIKE '%HIPAA Signed' OR currentstatus LIKE '%VGA 2nd Interview Completed - Tier 1' OR currentstatus LIKE '%VGA 2nd Interview Completed - Tier 2' OR currentstatus LIKE '%VGA 2nd Interview Completed - Tier 3') AND dateinserted >= '2024-09-01 00:00:00'
-- #5 & #8 GET rows with updated status to validate revenue update below and CHECK rows after #7 SELECT ** FROM public.financiallog WHERE (currentstatus LIKE '%Secondary Interview - ASA' OR currentstatus LIKE '%Secondary Interview - Final' OR currentstatus LIKE '%Secondary Interview - Sent' OR currentstatus LIKE 'Secondary Interview - Completed' OR currentstatus LIKE '%HIPAA Signed' OR currentstatus LIKE '%VGA 2nd Interview Completed - Tier 1' OR currentstatus LIKE '%VGA 2nd Interview Completed - Tier 2' OR currentstatus LIKE '%VGA 2nd Interview Completed - Tier 3') AND dateinserted >= '2024-09-01 00:00:00' ORDER BY signed_date DESC;
--#7 UPDATE LOG ROWS --MUST RUN TWICE!!! UPDATE public.financiallog SET contractrevenue = '100', agentcommission = '0', grossrevenue = contractrevenue + talktimerevenue, netrevenue = contractrevenue + talktimerevenue, talktimeexpense = '0' WHERE (currentstatus LIKE '%Secondary Interview - ASA' OR currentstatus LIKE '%Secondary Interview - Final' OR currentstatus LIKE '%Secondary Interview - Sent' OR currentstatus LIKE 'Secondary Interview - Completed' OR currentstatus LIKE '%HIPAA Signed' OR currentstatus LIKE '%VGA 2nd Interview Completed - Tier 1' OR currentstatus LIKE '%VGA 2nd Interview Completed - Tier 2' OR currentstatus LIKE '%VGA 2nd Interview Completed - Tier 3') AND dateinserted >= '2024-09-01 00:00:00';```
Hold on, let me double check the SQL
@deleted-U072JS2NHRQ, correct.
@deleted-U072JS2NHRQ , updated and improved code to set contract revenue by the case type, use this one next time you run it and moving forward:
-- Revision Date: 9/16/2024 11:54 AM CDT -- Revision Notes: -- Added all billable statuses per Alan Gill on 9/16/2024
-- #1 GET rows from status report to COUNT total SELECT ** FROM rawstatusreport WHERE (currentstatus = 'Secondary Interview - ASA' OR currentstatus = 'Secondary Interview - Final' OR currentstatus = 'Secondary Interview - Sent' OR currentstatus = 'Secondary Interview - Completed' OR currentstatus = 'HIPAA Signed' OR currentstatus = 'VGA 2nd Interview Completed - Tier 1' OR currentstatus = 'VGA 2nd Interview Completed - Tier 2' OR currentstatus = 'VGA 2nd Interview Completed - Tier 3') AND dateinserted >= '2024-09-01 00:00:00' AND ingestedbyfinlog = false
-- #2 Update Raw Status Report with Signed e-Sign string UPDATE rawstatusreport SET currentstatus = 'Signed e-Sign ' || currentstatus WHERE (currentstatus = 'Secondary Interview - ASA' OR currentstatus = 'Secondary Interview - Final' OR currentstatus = 'Secondary Interview - Sent' OR currentstatus = 'Secondary Interview - Completed' OR currentstatus = 'HIPAA Signed' OR currentstatus = 'VGA 2nd Interview Completed - Tier 1' OR currentstatus = 'VGA 2nd Interview Completed - Tier 2' OR currentstatus = 'VGA 2nd Interview Completed - Tier 3') AND dateinserted >= '2024-09-01 00:00:00' AND ingestedbyfinlog = false
-- #3 RUN Generate Fin Log Lambda to process #2
-- #4 Update Fin Log table to revert back to actual status for ASA UPDATE public.financiallog SET currentstatus = REPLACE(currentstatus, 'Signed e-Sign ', '') WHERE (currentstatus LIKE '%Secondary Interview - ASA' OR currentstatus LIKE '%Secondary Interview - Final' OR currentstatus LIKE '%Secondary Interview - Sent' OR currentstatus LIKE '%Secondary Interview - Completed' OR currentstatus LIKE '%HIPAA Signed' OR currentstatus LIKE '%VGA 2nd Interview Completed - Tier 1' OR currentstatus LIKE '%VGA 2nd Interview Completed - Tier 2' OR currentstatus LIKE '%VGA 2nd Interview Completed - Tier 3') AND signeddate >= '2024-09-01 00:00:00';
-- #5 & #8 GET rows with updated status to validate revenue update below and CHECK rows after #7 SELECT ** FROM public.financiallog WHERE (currentstatus LIKE '%Secondary Interview - ASA' OR currentstatus LIKE '%Secondary Interview - Final' OR currentstatus LIKE '%Secondary Interview - Sent' OR currentstatus LIKE 'Secondary Interview - Completed' OR currentstatus LIKE '%HIPAA Signed' OR currentstatus LIKE '%VGA 2nd Interview Completed - Tier 1' OR currentstatus LIKE '%VGA 2nd Interview Completed - Tier 2' OR currentstatus LIKE '%VGA 2nd Interview Completed - Tier 3') AND signeddate >= '2024-09-01 00:00:00' ORDER BY signed_date DESC;
--#7 UPDATE LOG ROWS --MUST RUN TWICE!!! UPDATE public.financiallog SET contractrevenue = CASE WHEN typeofcase = 'Gaming Addiction - Meadow Law - SEC3 - Meadow Law' THEN 50 WHEN typeofcase = 'Gaming Addiction - Meadow Law - SEC2 - Meadow Law' THEN 100 WHEN typeofcase = 'Camp Lejeune Intake - Dicello - Form 95 2024 - Dicello Levitt' THEN 100 WHEN typeofcase = 'Camp Lejeune Intake - DL (B) - Form 95 2024 - Dicello Levitt' THEN 100 WHEN typeofcase = 'Archived New Form 95' THEN 100 WHEN typeofcase = 'New New Form 95' THEN 100 WHEN typeofcase = 'Archived Dicello Form 95' THEN 100 WHEN typeofcase = 'Form 95 EPIQ 2' THEN 100 WHEN typeofcase = 'Form 95 EPIQ 3' THEN 100 WHEN typeofcase = 'Form 95 EPIQ' THEN 100 WHEN typeofcase = 'CPAP Census' THEN 150 WHEN typeofcase = 'Gaming Addiction - Meadow Law - SEC1 - Meadow Law' THEN 175 WHEN typeofcase = 'Paraquat e-Sign' THEN 225 WHEN typeofcase = 'Paraquat - Dicello Filing Project' THEN 225 WHEN typeofcase = 'Hair Relaxer PFS - Dicello Levitt' THEN 325 WHEN typeofcase = 'Chowchilla - Van - Long Form Interview' THEN 410 WHEN typeofcase = 'Lakin Sex Abuse PA 2nd Interview' THEN 450 WHEN typeofcase = 'Lakin/AKG Sex Abuse PA 2nd Interview' THEN 450 WHEN typeofcase = 'BG - Sex Abuse - Illinois' THEN 450 WHEN typeofcase = 'BG - Sex Abuse - Maryland' THEN 450 WHEN typeofcase = 'BG - Sex Abuse - Michigan' THEN 450 WHEN typeofcase = 'BG - Sex Abuse - New Hampshire' THEN 450 WHEN typeofcase = 'BG - Sex Abuse - New Jersey' THEN 450 WHEN typeofcase = 'BG - Sex Abuse - Pennsylvania' THEN 450 WHEN typeofcase = 'DL - Flatirons - Sex Abuse - IL' THEN 450 WHEN typeofcase = 'DL - Flatirons - Sex Abuse - MD' THEN 450 WHEN typeofcase = 'DL - Flatirons - Sex Abuse - NH' THEN 450 WHEN typeofcase = 'DL - Flatirons - Sex Abuse - NJ' THEN 450 WHEN typeofcase = 'DL - Flatirons - Sex Abuse - PA' THEN 450 WHEN typeofcase = 'DL/Flatirons - Sex Abuse - New Hampshire' THEN 450 WHEN typeofcase = 'Arizona Juvenile Detention Center - ML - Secondary Interview' THEN 450 WHEN typeofcase = 'NJ Sex Abuse SEC - DL - TC' THEN 450 ELSE contractrevenue END, agentcommission = 0, -- No agentcommission specified in your dataset grossrevenue = contractrevenue + talktimerevenue, netrevenue = contractrevenue + talktimerevenue, talktimeexpense = 0 WHERE typeofcase IN ( 'Gaming Addiction - Meadow Law - SEC3 - Meadow Law', 'Gaming Addiction - Meadow Law - SEC2 - Meadow Law', 'Camp Lejeune Intake - Dicello - Form 95 2024 - Dicello Levitt', 'Camp Lejeune Intake - DL (B) - Form 95 2024 - Dicello Levitt', 'Archived New Form 95', 'New New Form 95', 'Archived Dicello Form 95', 'Form 95 EPIQ 2', 'Form 95 EPIQ 3', 'Form 95 EPIQ', 'CPAP Census', 'Gaming Addiction - Meadow Law - SEC1 - Meadow Law', 'Paraquat e-Sign', 'Paraquat - Dicello Filing Project', 'Hair Relaxer PFS - Dicello Levitt', 'Chowchilla - Van - Long Form Interview', 'Lakin Sex Abuse PA 2nd Interview', 'Lakin/AKG Sex Abuse PA 2nd Interview', 'BG - Sex Abuse - Illinois', 'BG - Sex Abuse - Maryland', 'BG - Sex Abuse - Michigan', 'BG - Sex Abuse - New Hampshire', 'BG - Sex Abuse - New Jersey', 'BG - Sex Abuse - Pennsylvania', 'DL - Flatirons - Sex Abuse - IL', 'DL - Flatirons - Sex Abuse - MD', 'DL - Flatirons - Sex Abuse - NH', 'DL - Flatirons - Sex Abuse - NJ', 'DL - Flatirons - Sex Abuse - PA', 'DL/Flatirons - Sex Abuse - New Hampshire', 'Arizona Juvenile Detention Center - ML - Secondary Interview', 'NJ Sex Abuse SEC - DL - TC' ) AND signeddate >= '2024-09-01 00:00:00';
```
@Ryan so put the status into Signed & DECLINED and then delete it from the public financial log right?
Just put signed and decline, do not delete it. The getting put back in there with the old status. Just changed to signed and declined.
Hey @Ryan is there a LA County Foster Care abuse slack channel?
@deleted-U072JS2NHRQ, updated Post Retainer SQL to import rows with new-statuses (not in the python code) and price them correctly each Monday after we get the Connex One call time revenue updated. Only #7 query was updated with new information. And we'll hopefully not need this query for much longer.
-- Revision Date: 9/16/2024 11:54 AM CDT -- Revision Notes: -- Added all billable statuses per Alan Gill on 9/16/2024
-- #1 GET rows from status report to COUNT total SELECT ** FROM rawstatusreport WHERE (currentstatus = 'Secondary Interview - ASA' OR currentstatus = 'Secondary Interview - Final' OR currentstatus = 'Secondary Interview - Sent' OR currentstatus = 'Secondary Interview - Completed' OR currentstatus = 'HIPAA Signed' OR currentstatus = 'VGA 2nd Interview Completed - Tier 1' OR currentstatus = 'VGA 2nd Interview Completed - Tier 2' OR currentstatus = 'VGA 2nd Interview Completed - Tier 3') AND dateinserted >= '2024-09-01 00:00:00' AND ingestedbyfinlog = false
-- #2 Update Raw Status Report with Signed e-Sign string UPDATE rawstatusreport SET currentstatus = 'Signed e-Sign ' || currentstatus WHERE (currentstatus = 'Secondary Interview - ASA' OR currentstatus = 'Secondary Interview - Final' OR currentstatus = 'Secondary Interview - Sent' OR currentstatus = 'Secondary Interview - Completed' OR currentstatus = 'HIPAA Signed' OR currentstatus = 'VGA 2nd Interview Completed - Tier 1' OR currentstatus = 'VGA 2nd Interview Completed - Tier 2' OR currentstatus = 'VGA 2nd Interview Completed - Tier 3') AND dateinserted >= '2024-09-01 00:00:00' AND ingestedbyfinlog = false
-- #3 RUN Generate Fin Log Lambda to process #2
-- #4 Update Fin Log table to revert back to actual status for ASA UPDATE public.financiallog SET currentstatus = REPLACE(currentstatus, 'Signed e-Sign ', '') WHERE (currentstatus LIKE '%Secondary Interview - ASA' OR currentstatus LIKE '%Secondary Interview - Final' OR currentstatus LIKE '%Secondary Interview - Sent' OR currentstatus LIKE '%Secondary Interview - Completed' OR currentstatus LIKE '%HIPAA Signed' OR currentstatus LIKE '%VGA 2nd Interview Completed - Tier 1' OR currentstatus LIKE '%VGA 2nd Interview Completed - Tier 2' OR currentstatus LIKE '%VGA 2nd Interview Completed - Tier 3') AND signeddate >= '2024-09-01 00:00:00';
-- #5 & #8 GET rows with updated status to validate revenue update below and CHECK rows after #7 SELECT ** FROM public.financiallog WHERE (currentstatus LIKE '%Secondary Interview - ASA' OR currentstatus LIKE '%Secondary Interview - Final' OR currentstatus LIKE '%Secondary Interview - Sent' OR currentstatus LIKE 'Secondary Interview - Completed' OR currentstatus LIKE '%HIPAA Signed' OR currentstatus LIKE '%VGA 2nd Interview Completed - Tier 1' OR currentstatus LIKE '%VGA 2nd Interview Completed - Tier 2' OR currentstatus LIKE '%VGA 2nd Interview Completed - Tier 3') AND signeddate >= '2024-09-01 00:00:00' ORDER BY signed_date DESC;
--#7 UPDATE LOG ROWS
--MUST RUN TWICE!!!
UPDATE public.financiallog
SET contractrevenue = CASE
WHEN typeofcase = 'Gaming Addiction - Meadow Law - SEC1 - Meadow Law' THEN 175
WHEN typeofcase = 'Gaming Addiction - Meadow Law - SEC3 - Meadow Law' THEN 50
WHEN typeofcase = 'Gaming Addiction - Meadow Law - SEC2 - Meadow Law' THEN 100
WHEN typeofcase = 'Gaming Addiction - Meadow Law - SEC - Meadow Law' AND currentstatus = 'VGA 2nd Interview Completed - Tier 1' THEN 175
WHEN typeofcase = 'Gaming Addiction - Meadow Law - SEC - Meadow Law' AND currentstatus = 'VGA 2nd Interview Completed - Tier 2' THEN 100
WHEN typeofcase = 'Gaming Addiction - Meadow Law - SEC - Meadow Law' AND currentstatus = 'VGA 2nd Interview Completed - Tier 3' THEN 50
WHEN typeofcase = 'Camp Lejeune Intake - Dicello - Form 95 2024 - Dicello Levitt' THEN 100
WHEN typeofcase = 'Camp Lejeune Intake - DL (B) - Form 95 2024 - Dicello Levitt' THEN 100
WHEN typeofcase = 'Archived New Form 95' THEN 100
WHEN typeofcase = 'New New Form 95' THEN 100
WHEN typeofcase = 'Archived Dicello Form 95' THEN 100
WHEN typeofcase = 'Form 95 EPIQ 2' THEN 100
WHEN typeofcase = 'Form 95 EPIQ 3' THEN 100
WHEN typeofcase = 'Form 95 EPIQ' THEN 100
WHEN typeofcase = 'CPAP Census' THEN 150
WHEN typeofcase = 'Paraquat e-Sign' THEN 225
WHEN typeofcase = 'Paraquat - Dicello Filing Project' THEN 225
WHEN typeofcase = 'Hair Relaxer PFS - Dicello Levitt' THEN 325
WHEN typeofcase = 'Chowchilla - Van - Long Form Interview' THEN 410
WHEN typeofcase = 'Lakin Sex Abuse PA 2nd Interview' THEN 450
WHEN typeofcase = 'Lakin/AKG Sex Abuse PA 2nd Interview' THEN 450
WHEN typeofcase = 'BG - Sex Abuse - Illinois' THEN 450
WHEN typeofcase = 'BG - Sex Abuse - Maryland' THEN 450
WHEN typeofcase = 'BG - Sex Abuse - Michigan' THEN 450
WHEN typeofcase = 'BG - Sex Abuse - New Hampshire' THEN 450
WHEN typeofcase = 'BG - Sex Abuse - New Jersey' THEN 450
WHEN typeofcase = 'BG - Sex Abuse - Pennsylvania' THEN 450
WHEN typeofcase = 'DL - Flatirons - Sex Abuse - IL' THEN 450
WHEN typeofcase = 'DL - Flatirons - Sex Abuse - MD' THEN 450
WHEN typeofcase = 'DL - Flatirons - Sex Abuse - NH' THEN 450
WHEN typeofcase = 'DL - Flatirons - Sex Abuse - NJ' THEN 450
WHEN typeofcase = 'DL - Flatirons - Sex Abuse - PA' THEN 450
WHEN typeofcase = 'DL/Flatirons - Sex Abuse - New Hampshire' THEN 450
WHEN typeofcase = 'Arizona Juvenile Detention Center - ML - Secondary Interview' THEN 450
WHEN typeofcase = 'NJ Sex Abuse SEC - DL - TC' THEN 450
--NEW LINES AS OF 10/3/24
WHEN typeofcase = 'ACTS Adult VSS Documents' THEN 425
WHEN typeofcase = 'ACTS Fact Sheet' THEN 425
WHEN typeofcase = 'ACTS Juv VSS Documents' THEN 425
WHEN typeofcase = 'Hair Relaxer Complaint PFS - DL Flatirons' THEN 425
WHEN typeofcase = 'VGA Secondary Interview - ML - ML' AND currentstatus = 'VGA 2nd Interview Completed - Tier 1' THEN 175
WHEN typeofcase = 'VGA Secondary Interview - ML - ML' AND currentstatus = 'VGA 2nd Interview Completed - Tier 2' THEN 100
WHEN typeofcase = 'VGA Secondary Interview - ML - ML' AND currentstatus = 'VGA 2nd Interview Completed - Tier 3' THEN 50
WHEN typeofcase = 'Illinois - BG/DL Conflict Waiver' THEN 100
ELSE contractrevenue
END,
agentcommission = 0, -- No agentcommission specified in your dataset
grossrevenue = contractrevenue + talktimerevenue,
netrevenue = contractrevenue + talktimerevenue,
talktimeexpense = 0
WHERE typeofcase IN (
'Gaming Addiction - Meadow Law - SEC - Meadow Law',
'Gaming Addiction - Meadow Law - SEC1 - Meadow Law',
'Gaming Addiction - Meadow Law - SEC3 - Meadow Law',
'Gaming Addiction - Meadow Law - SEC2 - Meadow Law',
'Camp Lejeune Intake - Dicello - Form 95 2024 - Dicello Levitt',
'Camp Lejeune Intake - DL (B) - Form 95 2024 - Dicello Levitt',
'Archived New Form 95',
'New New Form 95',
'Archived Dicello Form 95',
'Form 95 EPIQ 2',
'Form 95 EPIQ 3',
'Form 95 EPIQ',
'CPAP Census',
'Paraquat e-Sign',
'Paraquat - Dicello Filing Project',
'Hair Relaxer PFS - Dicello Levitt',
'Chowchilla - Van - Long Form Interview',
'Lakin Sex Abuse PA 2nd Interview',
'Lakin/AKG Sex Abuse PA 2nd Interview',
'BG - Sex Abuse - Illinois',
'BG - Sex Abuse - Maryland',
'BG - Sex Abuse - Michigan',
'BG - Sex Abuse - New Hampshire',
'BG - Sex Abuse - New Jersey',
'BG - Sex Abuse - Pennsylvania',
'DL - Flatirons - Sex Abuse - IL',
'DL - Flatirons - Sex Abuse - MD',
'DL - Flatirons - Sex Abuse - NH',
'DL - Flatirons - Sex Abuse - NJ',
'DL - Flatirons - Sex Abuse - PA',
'DL/Flatirons - Sex Abuse - New Hampshire',
'Arizona Juvenile Detention Center - ML - Secondary Interview',
'NJ Sex Abuse SEC - DL - TC'
--NEW LINES AS OF 10/3/24
'ACTS Adult VSS Documents',
'ACTS Fact Sheet',
'ACTS Juv VSS Documents',
'Hair Relaxer Complaint PFS - DL Flatirons',
'VGA Secondary Interview - ML - ML',
'Illinois - BG/DL Conflict Waiver'
)
AND signeddate >= '2024-09-01 00:00:00';```
*Thread Reply:* @deleted-U072JS2NHRQ, you can discontinue running this script in on Monday mornings. I am going to work with Alan and Malissa to do these at EOM.
gotcha, i'll start using this on Mondays going forward, thank you!
Hey @Ryan, if I have a duplicate lead I need to delete from the dashboard, I can just delete it right? or should I move that to Signed & DECLINED as well
598142 - this is the one I need to delete
598143 - This is the valid lead ID
it's just one that Dennis said is a duplicate in the dashboard
There is one more: 599838 This one was signed under the wrong case type, so the dashboard picked it up because it hit Signed e-sign FINAL, but PD caught it and put it in the correct case type and it's currently under Sent e-sign. I figured to run the lambda report again and it'd pick up the updated case type and remove it from the billable dashboard right? or is my logic incorrect and I should just delete it? No rush, it's not SUPER urgent, we just need it so we can send Cameron his reports
@deleted-U072JS2NHRQ, change this one to Signed & DECLINED: 598142
@deleted-U072JS2NHRQ, make 599838 Signed & DECLINED too.
nvm, I made 599838 that status
Thank you! Sorry about that, I was in the bathroom, but I'll let Dennis know that it's done
@Ryan there's no declines 2 days in a row, and I'm starting to get suspicious
@deleted-U072JS2NHRQ, next Monday, just do the Dialer expenses after morning routines on S1s, slack alerts, the status changes for ASA I will handle, it's gotten time to clean this up with the ASA team.
Gotcha gotcha, am I doing anything wrong, or is it just status's getting messy and no one informing us that certain status's are in use? @Ryan but, got it, i'll just do the part you stated above 👍:skintone3:
Hey @Ryan, so really informal question, I wanna pick your brain
So me and Edward are working on updating our job responsibilities, and we have been focusing on skill development, particularly in automation and programming over the past six months. We've successfully learned Python, and Edward has added JavaScript as well. Our goal was to enhance our efficiency in handling audits, updating dashboards via Python for the firms and reports by automating repetitive tasks. We've created Law Ruler API integrations, automated status-updating spreadsheets, and scripts for managing e-signed documents.
We’ve kind of become the go-to guys for coding help in the integrations department, sharing our setups and tips with them. Given these circumstances, we're trying to figure out how we can go about getting appropriate compensation adjustments. We've discussed this with our direct supervisors and their management, but it feels like we're missing a piece of the puzzle to get this nailed down.
Do you have any advice on how to go about this? We don't really want to go above Alan's head, but at this point, we're not getting results. We were thinking of going directly to Tony, Brittany's goal was to keep us on her team as coders because as more campaigns open/close going forward she's going to need people to automate the reports/dashboards for the firms and audits. Analytics/Automation is kind of in the realm of what I want to pursue anyways, so that's fine with me honestly.
Hey Aidan, since technically I am on the Shield side of the companies, go to Shelly and Tony together, and just let Alan know you are going to request a comp review. That just professional advice.
From your skills perspective, SQL, LookML (Looker SQL-esque code to setup data connectors) I think having you and Edward be the Analysts for the TIP Dashboards for Tony, Alan, Brianna, Brittany, etc, would be great since you both have intimate knowledge.
From a engineering perspective, let me run this by the Integrations team leaders on our Monday tech meeting. We have Five9 dialer data pipes, models and visuals to build soon!
Thank you, we'll run it by Tony and Shelly then!
And absolutely, we'd love both of those options, thank you for running it by them! 😊
Our skills are like not fully utilized here and we're trying to do MORE here. Thanks again for the help, it's much appreciated
Hey @Ryan when I run the query for yesterday's e-signs it only pulls 1 lead. I wanted to let you know just in case:
yep! it ran successfully, everything might be fiine, it's just even on the weekends i've never seen that query pull just 1 lead before
Let me check the report status
We should have about 50+, use this Slack search to see them: S1: before:2024-10-11 after:2024-10-09
@deleted-U072JS2NHRQ, yep, the LR Status Report did not show up from LawRuler via email. Uploadiong now, I'll let you know when you can re-run the Lambda and we should see plenty pop into the db
ok NOW there's 63, that's what im talkin about! it's fixed, thank you! 🙂
There's a bunch of "Conyers Biolab Chemical Explosion - Stewart Miller Simmons - DL - Shield Legal" ones that doesn't have a LP Contract Name in the dashboard
How many of those are they? Can you look in Law Ruler and make sure those are signed retainer deals, I don’t see a channel for them and I’ll have to check once I’m at the airport gate in about 30 minutes if there’s even a contract for it? Can you direct message MarK Maniora and inquire about that?
Yeah, there's about 17 of them, I'll check lawruler for a retainer and reach out to mark about it and let you know what he says
Mark said this:
We do not have a contract for them because the leads are being sent directly from Dicello instead of going through Leadspedia. I asked Cameron for more details yesterday on how we can track this, but he never responded. [7:16 AM] Mark Maniora
OK, just leave them as is. I don’t know if shields being billed for these, or we should rename this case type to have the billing source be DiCello
I’ll ask Cameron when I finish the financials
Everything else in the S1's daily routine is good to go, no changes or referrals
Hey @Ryan just a heads up, as i'm doing the call time revenue, the Secondary Interview section is pulling 0
@deleted-U072JS2NHRQ, and update the AND statement to this:
AND (current_status LIKE '%Secondary Interview - ASA'
OR current_status LIKE '%Secondary Interview - Final'
OR current_status LIKE '%Secondary Interview - Sent'
OR current_status LIKE 'Secondary Interview - Completed'
OR current_status LIKE '%HIPAA Signed'
OR current_status LIKE '%VGA 2nd Interview Completed - Tier 1'
OR current_status LIKE '%VGA 2nd Interview Completed - Tier 2'
OR current_status LIKE '%VGA 2nd Interview Completed - Tier 3')
This will ensure we spread the ASA calls out better from CNX1
I didn't do the top part this morning, just a heads up as well. b ut just to confim, update the AND statement for steps 1, 2, 4, and 5, correct?
-- Revision Date: 9/16/2024 11:54 AM CDT -- Revision Notes: -- Added all billable statuses per Alan Gill on 9/16/2024
-- #1 GET rows from status report to COUNT total SELECT ** FROM rawstatusreport WHERE (currentstatus = 'Secondary Interview - ASA' OR currentstatus = 'Secondary Interview - Final' OR currentstatus = 'Secondary Interview - Sent' OR currentstatus = 'Secondary Interview - Completed' OR currentstatus = 'HIPAA Signed' OR currentstatus = 'VGA 2nd Interview Completed - Tier 1' OR currentstatus = 'VGA 2nd Interview Completed - Tier 2' OR currentstatus = 'VGA 2nd Interview Completed - Tier 3') AND dateinserted >= '2024-09-01 00:00:00' AND ingestedbyfinlog = false
-- #2 Update Raw Status Report with Signed e-Sign string UPDATE rawstatusreport SET currentstatus = 'Signed e-Sign ' || currentstatus WHERE (currentstatus = 'Secondary Interview - ASA' OR currentstatus = 'Secondary Interview - Final' OR currentstatus = 'Secondary Interview - Sent' OR currentstatus = 'Secondary Interview - Completed' OR currentstatus = 'HIPAA Signed' OR currentstatus = 'VGA 2nd Interview Completed - Tier 1' OR currentstatus = 'VGA 2nd Interview Completed - Tier 2' OR currentstatus = 'VGA 2nd Interview Completed - Tier 3') AND dateinserted >= '2024-09-01 00:00:00' AND ingestedbyfinlog = false
-- #3 RUN Generate Fin Log Lambda to process #2
-- #4 Update Fin Log table to revert back to actual status for ASA UPDATE public.financiallog SET currentstatus = REPLACE(currentstatus, 'Signed e-Sign ', '') WHERE (currentstatus LIKE '%Secondary Interview - ASA' OR currentstatus LIKE '%Secondary Interview - Final' OR currentstatus LIKE '%Secondary Interview - Sent' OR currentstatus LIKE '%Secondary Interview - Completed' OR currentstatus LIKE '%HIPAA Signed' OR currentstatus LIKE '%VGA 2nd Interview Completed - Tier 1' OR currentstatus LIKE '%VGA 2nd Interview Completed - Tier 2' OR currentstatus LIKE '%VGA 2nd Interview Completed - Tier 3') AND signeddate >= '2024-09-01 00:00:00';
-- #5 & #8 GET rows with updated status to validate revenue update below and CHECK rows after #7 SELECT ** FROM public.financiallog WHERE (currentstatus LIKE '%Secondary Interview - ASA' OR currentstatus LIKE '%Secondary Interview - Final' OR currentstatus LIKE '%Secondary Interview - Sent' OR currentstatus LIKE 'Secondary Interview - Completed' OR currentstatus LIKE '%HIPAA Signed' OR currentstatus LIKE '%VGA 2nd Interview Completed - Tier 1' OR currentstatus LIKE '%VGA 2nd Interview Completed - Tier 2' OR currentstatus LIKE '%VGA 2nd Interview Completed - Tier 3') AND signeddate >= '2024-09-01 00:00:00' ORDER BY signed_date DESC;
--#6 & 7 UPDATE LOG ROWS
--MUST RUN TWICE!!!
UPDATE public.financiallog
SET contractrevenue = CASE
WHEN typeofcase = 'Gaming Addiction - Meadow Law - SEC1 - Meadow Law' THEN 175
WHEN typeofcase = 'Gaming Addiction - Meadow Law - SEC3 - Meadow Law' THEN 50
WHEN typeofcase = 'Gaming Addiction - Meadow Law - SEC2 - Meadow Law' THEN 100
WHEN typeofcase = 'Gaming Addiction - Meadow Law - SEC - Meadow Law' AND currentstatus = 'VGA 2nd Interview Completed - Tier 1' THEN 175
WHEN typeofcase = 'Gaming Addiction - Meadow Law - SEC - Meadow Law' AND currentstatus = 'VGA 2nd Interview Completed - Tier 2' THEN 100
WHEN typeofcase = 'Gaming Addiction - Meadow Law - SEC - Meadow Law' AND currentstatus = 'VGA 2nd Interview Completed - Tier 3' THEN 50
WHEN typeofcase = 'Camp Lejeune Intake - Dicello - Form 95 2024 - Dicello Levitt' THEN 100
WHEN typeofcase = 'Camp Lejeune Intake - DL (B) - Form 95 2024 - Dicello Levitt' THEN 100
WHEN typeofcase = 'Archived New Form 95' THEN 100
WHEN typeofcase = 'New New Form 95' THEN 100
WHEN typeofcase = 'Archived Dicello Form 95' THEN 100
WHEN typeofcase = 'Form 95 EPIQ 2' THEN 100
WHEN typeofcase = 'Form 95 EPIQ 3' THEN 100
WHEN typeofcase = 'Form 95 EPIQ' THEN 100
WHEN typeofcase = 'CPAP Census' THEN 150
WHEN typeofcase = 'Paraquat e-Sign' THEN 225
WHEN typeofcase = 'Paraquat - Dicello Filing Project' THEN 225
WHEN typeofcase = 'Hair Relaxer PFS - Dicello Levitt' THEN 325
WHEN typeofcase = 'Chowchilla - Van - Long Form Interview' THEN 410
WHEN typeofcase = 'Lakin Sex Abuse PA 2nd Interview' THEN 450
WHEN typeofcase = 'Lakin/AKG Sex Abuse PA 2nd Interview' THEN 450
WHEN typeofcase = 'BG - Sex Abuse - Illinois' THEN 450
WHEN typeofcase = 'BG - Sex Abuse - Maryland' THEN 450
WHEN typeofcase = 'BG - Sex Abuse - Michigan' THEN 450
WHEN typeofcase = 'BG - Sex Abuse - New Hampshire' THEN 450
WHEN typeofcase = 'BG - Sex Abuse - New Jersey' THEN 450
WHEN typeofcase = 'BG - Sex Abuse - Pennsylvania' THEN 450
WHEN typeofcase = 'DL - Flatirons - Sex Abuse - IL' THEN 450
WHEN typeofcase = 'DL - Flatirons - Sex Abuse - MD' THEN 450
WHEN typeofcase = 'DL - Flatirons - Sex Abuse - NH' THEN 450
WHEN typeofcase = 'DL - Flatirons - Sex Abuse - NJ' THEN 450
WHEN typeofcase = 'DL - Flatirons - Sex Abuse - PA' THEN 450
WHEN typeofcase = 'DL/Flatirons - Sex Abuse - New Hampshire' THEN 450
WHEN typeofcase = 'Arizona Juvenile Detention Center - ML - Secondary Interview' THEN 450
WHEN typeofcase = 'NJ Sex Abuse SEC - DL - TC' THEN 450
--NEW LINES AS OF 10/3/24
WHEN typeofcase = 'ACTS Adult VSS Documents' THEN 425
WHEN typeofcase = 'ACTS Fact Sheet' THEN 425
WHEN typeofcase = 'ACTS Juv VSS Documents' THEN 425
WHEN typeofcase = 'Hair Relaxer Complaint PFS - DL Flatirons' THEN 425
WHEN typeofcase = 'VGA Secondary Interview - ML - ML' AND currentstatus = 'VGA 2nd Interview Completed - Tier 1' THEN 175
WHEN typeofcase = 'VGA Secondary Interview - ML - ML' AND currentstatus = 'VGA 2nd Interview Completed - Tier 2' THEN 100
WHEN typeofcase = 'VGA Secondary Interview - ML - ML' AND currentstatus = 'VGA 2nd Interview Completed - Tier 3' THEN 50
WHEN typeofcase = 'Illinois - BG/DL Conflict Waiver' THEN 100
ELSE contractrevenue
END,
agentcommission = 0, -- No agentcommission specified in your dataset
grossrevenue = contractrevenue + talktimerevenue,
netrevenue = contractrevenue + talktimerevenue,
talktimeexpense = 0
WHERE typeofcase IN (
'Gaming Addiction - Meadow Law - SEC - Meadow Law',
'Gaming Addiction - Meadow Law - SEC1 - Meadow Law',
'Gaming Addiction - Meadow Law - SEC3 - Meadow Law',
'Gaming Addiction - Meadow Law - SEC2 - Meadow Law',
'Camp Lejeune Intake - Dicello - Form 95 2024 - Dicello Levitt',
'Camp Lejeune Intake - DL (B) - Form 95 2024 - Dicello Levitt',
'Archived New Form 95',
'New New Form 95',
'Archived Dicello Form 95',
'Form 95 EPIQ 2',
'Form 95 EPIQ 3',
'Form 95 EPIQ',
'CPAP Census',
'Paraquat e-Sign',
'Paraquat - Dicello Filing Project',
'Hair Relaxer PFS - Dicello Levitt',
'Chowchilla - Van - Long Form Interview',
'Lakin Sex Abuse PA 2nd Interview',
'Lakin/AKG Sex Abuse PA 2nd Interview',
'BG - Sex Abuse - Illinois',
'BG - Sex Abuse - Maryland',
'BG - Sex Abuse - Michigan',
'BG - Sex Abuse - New Hampshire',
'BG - Sex Abuse - New Jersey',
'BG - Sex Abuse - Pennsylvania',
'DL - Flatirons - Sex Abuse - IL',
'DL - Flatirons - Sex Abuse - MD',
'DL - Flatirons - Sex Abuse - NH',
'DL - Flatirons - Sex Abuse - NJ',
'DL - Flatirons - Sex Abuse - PA',
'DL/Flatirons - Sex Abuse - New Hampshire',
'Arizona Juvenile Detention Center - ML - Secondary Interview',
'NJ Sex Abuse SEC - DL - TC'
--NEW LINES AS OF 10/3/24
'ACTS Adult VSS Documents',
'ACTS Fact Sheet',
'ACTS Juv VSS Documents',
'Hair Relaxer Complaint PFS - DL Flatirons',
'VGA Secondary Interview - ML - ML',
'Illinois - BG/DL Conflict Waiver'
)
AND signeddate >= '2024-09-01 00:00:00';```
and I will! I shortened it this time for the excel formula this way i didn't have to scroll and forgot to adjust the column width, that's my bad
Don't do any of that, I already did the Lead Import and Pricing, you are just updating the Talk Time Revenue
Those prices are getting updated, changed, corrected, reconciled, etc, so I am handling it since I am having them push these into the new TIP App to store pricing.
Is the Talk Time Revenue Part only the top half of this and then putting it in the google sheet? Just wanna make sure
@deleted-U072JS2NHRQ, just to be safe,
use this version, I updated it to update the TT rev for the new "billable statuses" on ASA. Just update your dates.
```--CASE REVIEWS SECTION SELECT signeddate, lpleads1,currentstatus,** FROM public.financiallog WHERE signeddate BETWEEN '2024-07-01' AND '2024-07-07' AND currentstatus LIKE 'Case Review%' ORDER BY signeddate ASC
UPDATE public.financiallog SET talktimerevenue = (talktimerevenue+'28.37209302'), grossrevenue = (grossrevenue+'28.37209302'), netrevenue = (netrevenue+'28.37209302'), talktimeminutes = (talktimeminutes+'14.18604651') WHERE signeddate BETWEEN '2024-07-01' AND '2024-07-07' AND current_status LIKE 'Case Review%'
--ESIGNS SECTIONS SELECT signeddate, lpleads1,currentstatus,** FROM public.financiallog WHERE signeddate BETWEEN '2024-07-01' AND '2024-07-07' AND currentstatus LIKE 'Signed e-Sign%' ORDER BY signeddate ASC
UPDATE public.financiallog SET talktimerevenue = (talktimerevenue+'83.47985507'), grossrevenue = (grossrevenue+'83.47985507'), netrevenue = (netrevenue+'83.47985507'), talktimeminutes = (talktimeminutes+'41.73992754') WHERE signeddate BETWEEN '2024-07-01' AND '2024-07-07' AND current_status LIKE 'Signed e-Sign%'
--SECONDARY INTERVIEW SECTION SELECT signeddate, lpleads1,currentstatus,** FROM public.financiallog WHERE signeddate BETWEEN '2024-07-01' AND '2024-07-07' AND (currentstatus = 'Secondary Interview - ASA' OR currentstatus = 'Secondary Interview - Final' OR currentstatus = 'Secondary Interview - Sent' OR currentstatus = 'Secondary Interview - Completed' OR currentstatus = 'HIPAA Signed' OR currentstatus = 'VGA 2nd Interview Completed - Tier 1' OR currentstatus = 'VGA 2nd Interview Completed - Tier 2' OR currentstatus = 'VGA 2nd Interview Completed - Tier 3') ORDER BY signed_date ASC;
UPDATE public.financiallog SET talktimerevenue = (talktimerevenue+'0'), grossrevenue = (grossrevenue+'0'), netrevenue = (netrevenue+'0'), talktimeminutes = (talktimeminutes+'0') WHERE signeddate BETWEEN '2024-07-01' AND '2024-07-07' AND (currentstatus = 'Secondary Interview - ASA' OR currentstatus = 'Secondary Interview - Final' OR currentstatus = 'Secondary Interview - Sent' OR currentstatus = 'Secondary Interview - Completed' OR currentstatus = 'HIPAA Signed' OR currentstatus = 'VGA 2nd Interview Completed - Tier 1' OR currentstatus = 'VGA 2nd Interview Completed - Tier 2' OR currentstatus = 'VGA 2nd Interview Completed - Tier 3');```
but I don't know which one this is. What does NC mean on the Contract Names?
It means "After July 5th, "new criteria".
Lead ID 606513 is Bard? https://tortintakeprofessionals.lawruler.com/update-lead.aspx?lead=606513
@deleted-U072JS2NHRQ, this one was a referral, mark it PL-FacebookMB-CP_
We don't have a pure DL - DL contract, so it's the 2nd one I guess. You may ask Tony to confirm if it's under the wrong Case Type in LawRuler though and let me know.
shoot me lol but ok, no worries! I'm still learning what the different contract endings mean
[Parent Case Type Name] [Service Code or Leadspedia Contract ID] - [Client Firm] - [Partner Firm(s)] - [Billing Source]
If I'm waiting for Tony, it's probably going to be a while before I'm able to allocate the correct LP Contract Name and ID - but it's a friend of the firm, so I guess we gotta check and see if we're billing the firm for this one.
but also, it wouldn't really be a referral if we got the lead from the firm, right? how does that work?
It appears to NOT be a "billable lead from Shield Legal", so it SHOULD NOT have a case type with "Shield Legal" in the [BILLING SOURCE] segment of the Case Type name. It should be - Dicello Levitt.
I'll skip it for now and mark the Billing Source as Dicello Levitt until we confirm what to do with it.
Hey @Ryan, I know this might be an odd question, but do you guys happen to have a test environment or a table that I could use to practice my sql? I'd only be using select statements, but I was curious. and preferably NOT financial data cuz I don't want anyone to worry, but I don't know if we have a database with LawRuler data other than BigQuery
*Thread Reply:* When I come up for air, I'll address this. We do and I can use it as a testing ground for something.
*Thread Reply:* Aidan, I want to setup you on DBT for TIP Data Warehouse and have you help me start creating Looker Enterprise dashboards. Confirm some times you are free this week for an hour and we can work on setting this up.
*Thread Reply:* Sounds good @Ryan, let me get with Brittany to see if there's anything going on with Hair Relaxer this week, and I'll get back to you on a good time to meet. Hair Relaxer should end Tuesday, but we'll see.
*Thread Reply:* I'm good for some time Thursday or Friday to meet up with you, Mon-Wed I'm pretty slammed with Hair Relaxer stuff. @Ryan
Hey @Ryan, no rush on this, but I have 2 leads in case types that are not showing in the same case type as in LawRuler. 606086 606733
They are currently in the case type: Depo-Provera - BCL - BCL - BLX (in the financial database)
and need to be in: Depo-Provera - BCL - Napoli - BLX
I don't know what happened, I believe the casetype got renamed and that these two didn't switch over in the database to the correct case type
Just to confirm, I'm doing the same thing for this weeks Call Revenue, correct? Don't worry about the ASA stuff for now, just do the other parts?
But wait to do it until I let you know I've imported those rows, give me a bit. Have some meetings.
Yea, I'm going to add some Post Retainers into it, so redo when I let you know
@deleted-U072JS2NHRQ, ok, I just imported about 150 new ASAs so you can "redo" the talk time minutes and revenue to all of them for last week.
JUST redo the ASA part, or do all of them (case review, e-signs, and ASA)?
@deleted-U072JS2NHRQ , need to update the WHERE clause with the status med from the SELECT clause.
Got to update all those statuses we count from the where clauses
@deleted-U072JS2NHRQ, like this one:
```--SECONDARY INTERVIEW SECTION SELECT signeddate, lpleads1,currentstatus,** FROM public.financiallog WHERE signeddate BETWEEN '2024-07-01' AND '2024-07-07' AND (currentstatus = 'Secondary Interview - ASA' OR currentstatus = 'Secondary Interview - Final' OR currentstatus = 'Secondary Interview - Sent' OR currentstatus = 'Secondary Interview - Completed' OR currentstatus = 'HIPAA Signed' OR currentstatus = 'VGA 2nd Interview Completed - Tier 1' OR currentstatus = 'VGA 2nd Interview Completed - Tier 2' OR currentstatus = 'VGA 2nd Interview Completed - Tier 3') ORDER BY signed_date ASC;
UPDATE public.financiallog SET talktimerevenue = (talktimerevenue+'0'), grossrevenue = (grossrevenue+'0'), netrevenue = (netrevenue+'0'), talktimeminutes = (talktimeminutes+'0') WHERE signeddate BETWEEN '2024-07-01' AND '2024-07-07' AND (currentstatus = 'Secondary Interview - ASA' OR currentstatus = 'Secondary Interview - Final' OR currentstatus = 'Secondary Interview - Sent' OR currentstatus = 'Secondary Interview - Completed' OR currentstatus = 'HIPAA Signed' OR currentstatus = 'VGA 2nd Interview Completed - Tier 1' OR currentstatus = 'VGA 2nd Interview Completed - Tier 2' OR currentstatus = 'VGA 2nd Interview Completed - Tier 3');```
yeah, I update the dates every time, but this is what mine looks like now:
```--SECONDARY INTERVIEW SECTION SELECT signeddate, lpleads1,currentstatus,** FROM public.financiallog WHERE signeddate BETWEEN '2024-10-14' AND '2024-10-20' AND (currentstatus = 'Secondary Interview - ASA' OR currentstatus = 'Secondary Interview - Final' OR currentstatus = 'Secondary Interview - Sent' OR currentstatus = 'Secondary Interview - Completed' OR currentstatus = 'HIPAA Signed' OR currentstatus = 'VGA 2nd Interview Completed - Tier 1' OR currentstatus = 'VGA 2nd Interview Completed - Tier 2' OR currentstatus = 'VGA 2nd Interview Completed - Tier 3') ORDER BY signed_date ASC;
UPDATE public.financiallog SET talktimerevenue = (talktimerevenue+'41.82394366'), grossrevenue = (grossrevenue+'41.82394366'), netrevenue = (netrevenue+'41.82394366'), talktimeminutes = (talktimeminutes+'20.91197183') WHERE signeddate BETWEEN '2024-10-14' AND '2024-10-20' AND (currentstatus = 'Secondary Interview - ASA' OR currentstatus = 'Secondary Interview - Final' OR currentstatus = 'Secondary Interview - Sent' OR currentstatus = 'Secondary Interview - Completed' OR currentstatus = 'HIPAA Signed' OR currentstatus = 'VGA 2nd Interview Completed - Tier 1' OR currentstatus = 'VGA 2nd Interview Completed - Tier 2' OR currentstatus = 'VGA 2nd Interview Completed - Tier 3');```
Oh, perfect, so we are aligned on the SQL, thank you.
okay awesome, thank you! so I went ahead and already updated the ASA portion of this, so we are all set for today!
hey @Ryan, whenever you get the chance, can you invite me to the Depo campaign channel?
@deleted-U072JS2NHRQ, there are some AWS Lightsail (database module) connection issues, I am running GenerateFinLog lambda now. Make sure you re-run it in about 10 minutes. I ensured the Status Report was imported into the database.
I'm at the dentist office, going to reboot the Lighsail server, I'll advise when this is resolved.
Hey @Ryan I’m gone for the day I had to take pto today, sorry I am telling you so late
@deleted-U072JS2NHRQ, I'm running genfinlog lambda, I think our syncing of data from Fivetran for our BI needs is causing DB connection issues during the morning runs. So I made them 5 minute data syncs instead of syncing each 1 minute.
I'l advise once I get fin_log complete
run the lambda and then do the S1 stuff? or just gotta do the S1s and stuff?
How would I remove Declines that were actually Disqualifieds in the operations dashboard? do you happen to know, would it be a simple status change?
You can delete them or leave them as "Signed & DECLINED" and they are not counted in financials.
@Ryan do you happen to know if my password changed? I just entered the one that you gave me before, but like then it pops up again right away
It's been connection issues, give me a minute to check it out.
I am running Gen Fin Log too, let me know if PG Admin access works
I ran it twice, and it failed, but I shut down PGAdmin and its doing the same thing, but I think it's an outdated version of pgadmin, so idk if I need to update it, but I think I need Joe to help me out with that
It's been a lightsail issue lately, not sure how to resolve besides "Reboot Server" option in AWS. Let me do that.
Generate Fin Log Lambda is working, almost done.
@deleted-U072JS2NHRQ, reboot did the trick. Lambda humming along now.
PERFECT, that's good, i'll keep an eye out for it and then do the S1's
@deleted-U072JS2NHRQ, I decided to put you into Looker Enterprise like I have a few others at TIP and Shield to start. But you will be a "User" not just a "Viewer" but we'll need to make sure I get the permissions correct so you see the data properly in the Looker Explore. Let me push our session to early next week. What time do you leave each day?
that's fine with me, no worries! and I leave at 2pm pacific time each day, today I'm leaving at like 11:30 to vote
is looker studio and looker enterprise different? or are they pretty much the same thing?
Look at Enterprise is totally different than the free data studio
I'm still skipping the ASA portion, correct? Just do the talk time part?
I’ll import the Rose, don’t do the talk time revenue until I let you know
wait, so i'm good to do the talk time, right? just wanna double check
Hey @Ryan, was our meeting cancelled? I Totally forgot about it, some fires came up with the benchmark so i'm working on those rn, my bad if i missed it
@deleted-U072JS2NHRQ, Nick McFadden said he has you in Looker Enterprise already, are you?
I'm in Google Cloud Platform, and for Looker we use is Brittany's login I believe, I'll get with Nick today to confirm, cuz I'm working in looker currently on a specific dashboard, but I don't know if I have access ONLY to that 1 dashboard I'm working on, or if I have access to Looker Enterprise in general
So, I can log into this url with my google account: https://lookerstudio.google.com/reporting/dc00d988-cefb-4547-8cb2-c1cba702cfa2/page/p_egcs507emd/edit
but I cannot log into this url with my google account, I have to use Brittany's login: https://shieldlegal.cloud.looker.com/login
I don't know enough about Google's ecosystem to know the difference between the two
I don't know if Looker Studio and Looker Enterprise are different or the same, so I might not have my own access to Looker Enterprise, I'm not 100% sure.
Got it. Ok. Let me schedule Looker enterprise setup for you and confirm access. I’ll setup training next week when I’m in office.
This is the new Looker though:https://shieldlegal.cloud.looker.com/login
gotcha, sounds good, thank you! 🙂 I'm excited for this, I like making dashboards
am I doing things as normal today? I saw you ran the lambda @Ryan, just wanna confirm before i start
I ran Lambda, you can do the rest
gotcha, and for the talk time revenue, do you want me to skip the ASA portion of it, or just do the minutes/revenue update?
When you say you're importing them, you mean this part right? There's more code, but
Yes, give me five minutes to finish
Nothing is different today. I ran Lambda and will import ASA, you do the S1, Declines, Contract IDs and Slack Alerts plus add the CRQ (Case Reviews, RET (e-signs) and POST (ASA) Connex One talk time revenue.
Importing ASA leads now into Fin Log table, will confirm when done.
gotcha, I just wasnt familiar with what import pertained to, but thank you! I'll get them done here in a sec 🙂
Hey @Ryan I’m not gonna be in today, just a heads up
Is anything an issue if we add a "Secondary Lead ID" or "Intake Lead ID" into the General Questions tab for all Lawruler leads? in regards to the financials and any automations you guys have?
Ask Brian Hirst and Nick McFadden, but I don’t believe so. He should make sure we can get these fields from API
Gotcha, I added like a Milestone Tracking tab to the Lawruler leads, but everyone was like woah woah, other firms are getting milestone tabs that are blank. So I removed it lol but I'm trying to figure out how to do tracking for more than just flatirons and lawruler sucks lol
Will this tab be accurate ? And Nick McFadden really n da to use Flatirons Benchmark report as requirement La to design it yeah? That report needs to be a post retainer standard.
I had to remove it, because it was being sent to all case types, but the tab was like kinda meant as a 'Reporting catch-all' tab where we put any relevant reporting fields in there so that we can pull them, because we've been tracking post retainer progress through the intakes, which is not the way to go
but it will be, I'm revamping the benchmark and putting it in a lookerstudio dash
I didn't know if we're allowed to use it or not, but I will check into that
I saw it demoed and it looked slick.
checking into it now, let's hope it'll be useful for what we need
Hey @Ryan can you help me figure out who to allocate this to? 623661 It's Auto Accidents BCL attorney referral
Like does the case type have shield in it? I think it does I’m pretty sure, gimme like 5 min to check I am running to the bathroom real quick
If it does have Shield Legal in the case type name as the lead source at the very end, we need to fix that in Law Ruler because these are organic leads for Ben Crump, therefore they’re not technically shield retail
Just change the database lead source to BLX, that’s how I’ve been doing it until we get that name changed in Law Ruler
Hey @Ryan, idk if this is true, but is your dashboard able to capture WHEN a certain lead goes into a certain status? for the operations dashboard?
In the old database that we are using now as production system, we have a copy of the nightly status report for all status changes, and then we added a column that tells you if it was ingested by the financial log. So we will have many rows for one lead ID where it shows you the old status, and the current statuses.
That same thing is being built by Dustin for the new system. It sure how he is storing the “changes history” but even if he doesn’t, I will build a table in the new system that will keep a record of everything in Law Ruler that change status, and the timestamp of when that happened.
If you needed the raw status report table data for a specific instance right now, let me know
are you able to send me like a csv or xlsx copy of it just so I can see how it's formatted?
it's just for curiosity purposes honestly, it'll help me visualize how things work on the database side a little more
My bad @Ryan I was getting myself moved into the new office, but computer is up and functioning now!
Oh, welcome to the new digs. How nice is that place!?!
It's SO nice, BOUGIE as hell, like Camerons office has it own kitchen and shit, there's granite countertops everywhere, it's SO nice
like I feel like I just walked into a rich friends mansion 😂
Literally! we don't even have enough people to fill out this whole place it feels like
Hey @Ryan I’m working from home cuz I’m still sick but I’m having internet issues, the Cox app says it’s an outage that should be fixed by like 8am pacific time, so I’ll do the S1’s and stuff around then or earlier, I’ll be checking to see if my internet if fixed periodically
I'll do the S1s and Contract and Slack Posts, do DELETES when you can.
@Ryan for the Declines, "Billable Declined by Firm" is okay to change the status to, right? first time I've run across some where that's their current status and not signed & Declined
@deleted-U072JS2NHRQ, correct
@Ryan are we doing the ASA Portion monthly or weekly still? and should I wait for you to do it?
I did it, you are good to complete it
@deleted-U072JS2NHRQ, please update the S1 value for the below to be PL-TikTok_MB-ML, CP not doing Chowchilla.
I got that off of the excel sheet in the slack channel, should I not be doing that? or is something funky going on with it
@deleted-U072JS2NHRQ, nevermind, it was a rogue, random lead submitted from CP's site, leave as is. I'll update the financials.
Gotcha, and there's 2 auto accidents that I don't know what to do with, I checked the e-signs pivot and any past ones have been unallocated
I’ll check them, leave them as is for now.
Also, they told me that the 25th would be the last day I'm doing S1's and the Talk Time Revenue I guess? I don't know why they're so adamant that I stop doing that stuff, it's the only on-the-job SQL I'm able to use basically lol but I just wanted to give you a heads up! 🙂
Like whoever is above me, idk who specifically, Brittany told me that once I get my promotion/new role I won't have to work on the S1 and Talk time revenue starting on the 25th, but I know she got out of a meeting with some people about my new role, so idk who. 🤷♂️:skintone3:
Got it, I’ll get this to James’s team on TIP side then.
@deleted-U072JS2NHRQ, I did S1s, please post to channels.
Where'd all these come from? 😮 oh my god, did I just do the Case name and number? I'm so sorry, I thought I did the whole thing, that's my bad
@deleted-U072JS2NHRQ, tomorrow just do the DECLINES, I'll do S1s, ContractIDs and TIP Slack Alerts.
Edward hasn't been able to get PGAdmin, do you want me to the S1's and the talk time revenue today?
I'll probably talk with Brittany to see if I'm able to keep doing this, because this is the only way I can use SQL, which kinda irks me that they're taking me off of it tbh. I want to be able to use my SQL skills, even if it's just using random select statements and practicing certain functions like partitions and stuff.
Yeah, I will get you onto Looker Enterprise as an Explore User, then you can use it for SQL as needed for reports soon.
AWEsome! thank you! I appreciate that a lot, that'll be super helpful
Do you want to do the ASA renaming portion? I'll do the rest of the Talk time revenue, I think the code for the ASA renaming portion that I have is outdated
About 5 more minutes, standby. And when done, double check S1 and contract IDs, hopefully it didnt revert to blanks/ NULLs again
no worries, I got nothin but time 😎 I'll let you know if anything comes up
Hey @Ryan, how does the operations dashboard know to pull lead data from LawRuler? We're finding a lot of errors from back in like April that are in the dashboard now, but I'm wondering like why are they getting pulled in a couple months after?
*Thread Reply:* The ones we're finding are Intake leads but they're in Secondary Interview - Completed They were changed to Secondary Interview - Completed back in April and have since been changed back into Signed e-sign QA in Lawruler, but it's still stuck in Secondary Interview - Completed in the dash/pgadmin
*Thread Reply:* I've been switching them to Signed e-Sign QA
*Thread Reply:* Here's a couple examples: 486995 (I just fixed this one) 485213 464004 463029
*Thread Reply:* That is because I ran a large sweep to close October and backfilled some I believe
*Thread Reply:* Ohhhhh gotcha gotcha, I'll check into this more and update any status's that are out of whack
*Thread Reply:* Isn't the dash supposed to pull updated status's though?
what's the trigger for something being imported into the dashboard?
So these lead's were moved into Signed e-Sign FINAL, then Secondary Interview - Completed then Signed e-Sign QA Do we know why the dash is pulling Secondary Interview - Completed as the first billable status?
OK so these are the ones I've changed so far that are intakes in Secondary Interview Completed status for some reason: Camp Lejeune - DL - Flatirons - Shield Legal 403088 486303 486110 486442 374666 427366 478051 444710 467673 467400 463076 486995 485213 464004 463029
Hair Relaxer - DL - Flatirons - Shield Legal 467492
CPAP 601826 601855 601913 601919
Chowchilla 597718 592466
Firefighting Foam 577539 582831
I'm looking into August (off by 1), September(off by 1) but I will have to check into October (off by 2) and November (off by 19) at a later time cuz I have to work on some other things right now
Don’t worry about the 19 for November, that’s yesterday. We haven’t finished numbers yet.
Just as a heads up, I think only Shield people have to be doing this S1 stuff I believe, I don't know if Edward is going to be able to do it. I found out yesterday that they want me to stop doing it because I'm TIP and not Shield, apparently Cameron wants like a separation of responsibilities, for Shield to handle the financial stuff or something, and for TIP to handle whatever TIP handles. So I'd confirm with whoever you gotta confirm with, cuz I'm not 100% sure. I don't THINK Edward is going to the Shield side
Do the declines and talk time revenue, that is 100% TIP
Oh, yeah I already did them, Edward hasn't gotten PGAdmin yet, but I'll talk to Brittany about it then cuz I should be able to keep doing it if it's TIP data
The S1s, ContractIDs and Slack Posts are for Shield but it’s still TIP data in TIP system.
Cameron and I have been working on getting tip stuff to tip, and back-and-forth
Train up Edward ASAP, I’ll retrain and then get this automated anyways.
Hey @Ryan, you doing the ASA name change portion today? so that I can do the talk time revenue part?
Edward still doesn't have PGAdmin yet, so I'm gonna still be doing this for a bit probably
That part was fixed, so you are good to do Talk Time Revenue for Edward. I pressed Joe S. to get PG Admin on his and Zek's machines today. I'll advise. Let Britt know.
The GenFinLog lambda was updated with all "current billable statuses" last week.
Hey @Ryan can you add me to the ethylene oxide campaign channel?
I tried and it said needed Admin approval, that’s on TIP side maybe? Send me posts for that channel
"Jesse" "Morris-Brown" "S1:" "PLFacebookMBCPCMPETOTD02" "Joaquin" "Williams" "S1:" "PL-FacebookMB-JA_CMP-EOCO001"
These are both DL Flatirons, but these two are all that's left for today
can you send Edward his login info for pgadmin?
he's getting it installed now and I'll help him plug in all the data stuff
Do you want me to train edward on the talk time revenue, or did you want me to still do it for now?
Train him but you can keep doing it, just let him be the backup. He’ll need to understand what we are doing with dialer data soon.
Hey @Ryan , I’m trying to help Greg Owen out with a reconciliation of the LegaFi - NEC case type. He’s saying that it’s showing 53 contracts signed, but I’m only seeing 40 in LawRuler and the Operations dashboard. This is a screenshot of what Greg sent me, it seems like a different dashboard or a different view. Can you check into this for us? Thank you!
Use reconciliation dashboard and send me scrapshot
I have an appointment I have to get to but I can check it later after I’m back and send you a screenshot
@deleted-U072JS2NHRQ , make the date February 9th, numbers for 2/10 are not ready.
I made it for 2.9.25 and it's still the same numbers, and i'll check the days
Nov , TIP has one on the 18th that Shield doesn't have. Dec Matches none in Jan Feb, Shield has one on the 4th, while TIP does not
@deleted-U072JS2NHRQ, I only will have 10 in Feb, this one is a TEST lead left at a billable status: 622856
yeah, that's correct, but it's the shield dashboard that has the extra 12
@deleted-U072JS2NHRQ, there are 2 line items in SL side, you did not select both, so we are good.
oh, my bad, but okay, thank you for the help, it's much appreciated!
Ryan, can you double check something for me? it might be super important
on the call time calculator, I think the formula might be wrong for some of the cells
all 3, you see the change from 21 to 22, then going downwards from 22
I'll update it in PGAdmin and just backdate all of it if you want?
All I did was copy and paste the formulas from above in the history that were correct and pasted it over the error ones, go ahead and update it on your own please
Hey Ryan, quick question not super urgent, did you use looker enterprise or looker studio for like your operations dashboard? just wondering
Looker Enterprise, put a request in with James Turner if you need one. We hope to be off of DataStudio by years end.
Hey @Ryan, I know Edward reached out to you in regards to getting me a Looker Enterprise Dev account, but I wanted to ask you how the 'viewing' works, from what I found is that the firms will need accounts to view the dashboards I make. Brittany advised me of that, but I found that PowerBI Premium will allow external firms view the dashboards that I create at no cost for viewing it. I wanted to see what you think, cuz idk if the firms already have a viewing account or not - but we're just trying to be cost-conscientious.
The dashboards I'm making will replace our Monday reports, so it'll be 200+ reports delivered to X amount of firms for them to view at their convenience to get counts whenever they need.
@deleted-U072JS2NHRQ , we cannot have three BI tools. Someone asked about Domo. But we are on the GCP and PostGres stack so let’s stick with viewing.
Also, we want ours with secure credential login, this is highly sensitive information we share.
We are looking for a user roll for you, it allows you to build visual, sequel, and create dashboards. They’re just checking on data privacy for the financials and other things that are only for management to see. We got you.
Thank you! James said as long as I can edit the LookML part in Looker i'll be golden