Changes
Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com>
This commit is contained in:
co-authored by
renee-png
parent
150f460745
commit
778bb0e54a
@@ -65,33 +65,55 @@ export function buildVarMap(ctx: LoadedContext): VarMap {
|
||||
const c = ctx.client;
|
||||
if (c) {
|
||||
m["client.name"] = c.name || "";
|
||||
m["clientName"] = c.name || "";
|
||||
m["client.address"] = fmtAddress(c);
|
||||
m["clientAddress"] = fmtAddress(c);
|
||||
m["client.address_line1"] = c.address_line1 || "";
|
||||
m["clientAddressLine1"] = c.address_line1 || "";
|
||||
m["client.address_line2"] = c.address_line2 || "";
|
||||
m["clientAddressLine2"] = c.address_line2 || "";
|
||||
m["client.city"] = c.city || "";
|
||||
m["client.state"] = c.state || "";
|
||||
m["client.postal_code"] = c.postal_code || "";
|
||||
m["client.contact_name"] = c.primary_contact_name || "";
|
||||
m["clientContactName"] = c.primary_contact_name || "";
|
||||
m["client.contact_email"] = c.primary_contact_email || "";
|
||||
m["clientContactEmail"] = c.primary_contact_email || "";
|
||||
m["client.contact_phone"] = c.primary_contact_phone || "";
|
||||
m["clientContactPhone"] = c.primary_contact_phone || "";
|
||||
m["client.management_company"] = c.management_company || "";
|
||||
m["managementCompany"] = c.management_company || "";
|
||||
}
|
||||
const k = ctx.cases;
|
||||
if (k) {
|
||||
m["case.number"] = k.case_number || "";
|
||||
m["caseNumber"] = k.case_number || "";
|
||||
m["case.title"] = k.title || "";
|
||||
m["caseTitle"] = k.title || "";
|
||||
m["case.caption"] = k.case_caption || "";
|
||||
m["caseCaption"] = k.case_caption || "";
|
||||
m["case.court"] = k.court || "";
|
||||
m["court"] = k.court || "";
|
||||
m["case.court_case_number"] = k.court_case_number || "";
|
||||
m["courtCaseNumber"] = k.court_case_number || "";
|
||||
m["case.judge"] = k.judge || "";
|
||||
m["judge"] = k.judge || "";
|
||||
m["case.jurisdiction"] = k.jurisdiction || "";
|
||||
m["jurisdiction"] = k.jurisdiction || "";
|
||||
m["case.opposing_party"] = k.opposing_party || "";
|
||||
m["opposingParty"] = k.opposing_party || "";
|
||||
m["case.opposing_counsel"] = k.opposing_counsel || "";
|
||||
m["opposingCounsel"] = k.opposing_counsel || "";
|
||||
m["case.opposing_counsel_firm"] = k.opposing_counsel_firm || "";
|
||||
m["opposingCounselFirm"] = k.opposing_counsel_firm || "";
|
||||
m["case.opposing_counsel_email"] = k.opposing_counsel_email || "";
|
||||
m["opposingCounselEmail"] = k.opposing_counsel_email || "";
|
||||
m["case.opposing_counsel_phone"] = k.opposing_counsel_phone || "";
|
||||
m["opposingCounselPhone"] = k.opposing_counsel_phone || "";
|
||||
m["case.filing_date"] = k.filing_date || "";
|
||||
m["filingDate"] = k.filing_date || "";
|
||||
m["case.next_hearing_date"] = k.next_hearing_date || "";
|
||||
m["nextHearingDate"] = k.next_hearing_date || "";
|
||||
}
|
||||
ctx.clientFields.forEach((f) => {
|
||||
m[`client.field.${f.key}`] = f.value;
|
||||
|
||||
Reference in New Issue
Block a user