mirror of
https://github.com/Sea-Haven-Industries/payments-dashboard.git
synced 2026-10-01 18:33:12 +00:00
Merge master into feature/boa-api-integration
Brings in dashboard UI improvements (drill-down modals, redesign, ACH reference labels) while preserving BoA OAuth integration code.
This commit is contained in:
commit
d065b320eb
2 changed files with 298 additions and 116 deletions
|
|
@ -81,6 +81,8 @@ export const handler = async (event) => {
|
|||
let count = 0;
|
||||
for (const row of normalizedRows) {
|
||||
const checkNumber = (row["Check Number"] || "").trim();
|
||||
if (!checkNumber) continue;
|
||||
|
||||
const method = (row["Method"] || "").trim();
|
||||
let status = (row["Status"] || "").trim();
|
||||
const sendOn = (row["Send Payment On"] || "").trim();
|
||||
|
|
@ -124,7 +126,7 @@ export const handler = async (event) => {
|
|||
":payee": (row["Payee"] || "").trim(),
|
||||
":check_number": checkNumber,
|
||||
":invoice_numbers": (row["Invoice Numbers"] || "").trim(),
|
||||
":send_payment_on": (row["Send Payment On"] || "").trim(),
|
||||
":send_payment_on": sendOn,
|
||||
":amount_usd": parseAmount(row["Amount in USD"]),
|
||||
":status": status,
|
||||
":company_subsidiary": (row["Company/Subsidiary"] || "").trim(),
|
||||
|
|
@ -134,14 +136,14 @@ export const handler = async (event) => {
|
|||
count++;
|
||||
|
||||
// Only process checks for CashPro
|
||||
if (method !== "Check" || !checkNumber) continue;
|
||||
if (method !== "Check") continue;
|
||||
|
||||
if (!existing) {
|
||||
// New check → issue
|
||||
newChecks.push({
|
||||
checkNumber,
|
||||
amount: parseAmount(row["Amount in USD"]).toFixed(2),
|
||||
issueDate: toISODate(row["Send Payment On"] || ""),
|
||||
issueDate: toISODate(sendOn),
|
||||
});
|
||||
} else if (
|
||||
cancelStatuses.includes(status.toLowerCase()) &&
|
||||
|
|
@ -151,7 +153,7 @@ export const handler = async (event) => {
|
|||
cancelChecks.push({
|
||||
checkNumber,
|
||||
amount: parseAmount(row["Amount in USD"]).toFixed(2),
|
||||
issueDate: toISODate(row["Send Payment On"] || ""),
|
||||
issueDate: toISODate(sendOn),
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,14 +19,111 @@ async function getSlackToken() {
|
|||
return cachedToken;
|
||||
}
|
||||
|
||||
// --- Shared helpers used by both home view and modals ---
|
||||
|
||||
const formatCurrency = (value) =>
|
||||
new Intl.NumberFormat("en-US", { style: "currency", currency: "USD" }).format(
|
||||
Number(value || 0)
|
||||
);
|
||||
|
||||
const parseMDYLocal = (value) => {
|
||||
if (!value) return null;
|
||||
const parts = String(value).split("/");
|
||||
if (parts.length !== 3) return null;
|
||||
const [mm, dd, yyyy] = parts.map((p) => parseInt(p, 10));
|
||||
if (!mm || !dd || !yyyy) return null;
|
||||
return new Date(yyyy, mm - 1, dd);
|
||||
};
|
||||
|
||||
const formatDisplayDate = (date) =>
|
||||
date.toLocaleDateString("en-US", { weekday: "short", month: "short", day: "numeric", year: "numeric" });
|
||||
|
||||
const skipStatuses = ["voided", "cancelled", "canceled", "marked as void", "cleared"];
|
||||
|
||||
const ageBuckets = [
|
||||
{ label: "0 – 15 days", min: 0, max: 15 },
|
||||
{ label: "15 – 30 days", min: 15, max: 30 },
|
||||
{ label: "30 – 45 days", min: 30, max: 45 },
|
||||
{ label: "45 – 60 days", min: 45, max: 60 },
|
||||
{ label: "60 – 90 days", min: 60, max: 90 },
|
||||
{ label: "90+ days", min: 90, max: Infinity },
|
||||
];
|
||||
|
||||
const byDate = (a, b) => {
|
||||
const da = parseMDYLocal(a.send_payment_on);
|
||||
const db = parseMDYLocal(b.send_payment_on);
|
||||
return (da || 0) - (db || 0);
|
||||
};
|
||||
|
||||
// --- Categorize payments into buckets ---
|
||||
|
||||
function categorizePayments(payments) {
|
||||
const today = new Date();
|
||||
today.setHours(0, 0, 0, 0);
|
||||
const daysSince = (dt) => Math.floor((today - dt) / (1000 * 60 * 60 * 24));
|
||||
|
||||
const scheduledChecks = [];
|
||||
const scheduledACH = [];
|
||||
const outstandingChecks = [];
|
||||
|
||||
for (const p of payments) {
|
||||
if (p.method !== "ACH" && p.method !== "Check") continue;
|
||||
const dt = parseMDYLocal(p.send_payment_on);
|
||||
if (!dt) continue;
|
||||
const status = (p.status || "").toLowerCase();
|
||||
if (skipStatuses.includes(status)) continue;
|
||||
|
||||
if (dt >= today) {
|
||||
if (p.method === "Check") scheduledChecks.push(p);
|
||||
else scheduledACH.push(p);
|
||||
} else if (p.method === "Check") {
|
||||
outstandingChecks.push(p);
|
||||
}
|
||||
}
|
||||
|
||||
scheduledChecks.sort(byDate);
|
||||
scheduledACH.sort(byDate);
|
||||
|
||||
const bucketedOutstanding = ageBuckets.map((bucket) => {
|
||||
const items = outstandingChecks.filter((p) => {
|
||||
const age = daysSince(parseMDYLocal(p.send_payment_on));
|
||||
return age >= bucket.min && age < bucket.max;
|
||||
});
|
||||
items.sort(byDate);
|
||||
const total = items.reduce((sum, p) => sum + p.amount_usd, 0);
|
||||
return { ...bucket, items, total };
|
||||
});
|
||||
|
||||
return { today, daysSince, scheduledChecks, scheduledACH, outstandingChecks, bucketedOutstanding };
|
||||
}
|
||||
|
||||
// --- Main handler ---
|
||||
|
||||
export const handler = async (event) => {
|
||||
const body = JSON.parse(event.body || "{}");
|
||||
// Decode body — API Gateway may base64-encode it
|
||||
let rawBody = event.body || "";
|
||||
if (event.isBase64Encoded) {
|
||||
rawBody = Buffer.from(rawBody, "base64").toString("utf-8");
|
||||
}
|
||||
|
||||
// Slack sends block_actions as form-encoded: payload=<JSON>
|
||||
let body;
|
||||
if (rawBody.startsWith("payload=")) {
|
||||
body = JSON.parse(decodeURIComponent(rawBody.replace("payload=", "")));
|
||||
} else {
|
||||
body = JSON.parse(rawBody || "{}");
|
||||
}
|
||||
|
||||
// Handle Slack URL verification challenge
|
||||
if (body.type === "url_verification") {
|
||||
return { statusCode: 200, body: body.challenge };
|
||||
}
|
||||
|
||||
// Handle button clicks → open modal
|
||||
if (body.type === "block_actions") {
|
||||
return handleBlockAction(body);
|
||||
}
|
||||
|
||||
// Only process app_home_opened events
|
||||
if (body.event?.type !== "app_home_opened") {
|
||||
return { statusCode: 200, body: JSON.stringify({ ok: true }) };
|
||||
|
|
@ -34,32 +131,16 @@ export const handler = async (event) => {
|
|||
|
||||
const userId = body.event.user;
|
||||
|
||||
// Get metadata
|
||||
const { Item: metadata } = await ddb.send(
|
||||
new GetCommand({ TableName: TABLE_NAME, Key: { pk: "metadata" } })
|
||||
);
|
||||
|
||||
// Scan all payment items
|
||||
const payments = [];
|
||||
let lastKey;
|
||||
do {
|
||||
const result = await ddb.send(
|
||||
new ScanCommand({
|
||||
TableName: TABLE_NAME,
|
||||
FilterExpression: "begins_with(pk, :prefix)",
|
||||
ExpressionAttributeValues: { ":prefix": "payment#" },
|
||||
ExclusiveStartKey: lastKey,
|
||||
})
|
||||
);
|
||||
payments.push(...result.Items);
|
||||
lastKey = result.LastEvaluatedKey;
|
||||
} while (lastKey);
|
||||
const payments = await scanPayments();
|
||||
|
||||
if (!payments.length) {
|
||||
return { statusCode: 200, body: JSON.stringify({ error: "No payment data" }) };
|
||||
}
|
||||
|
||||
// Build and publish the home view
|
||||
const view = buildHomeView(payments, metadata);
|
||||
const slackToken = await getSlackToken();
|
||||
|
||||
|
|
@ -82,86 +163,158 @@ export const handler = async (event) => {
|
|||
return { statusCode: 200, body: JSON.stringify({ ok: true }) };
|
||||
};
|
||||
|
||||
function buildHomeView(payments, metadata) {
|
||||
const formatCurrency = (value) =>
|
||||
new Intl.NumberFormat("en-US", { style: "currency", currency: "USD" }).format(
|
||||
Number(value || 0)
|
||||
);
|
||||
// --- Block action handler (button clicks) ---
|
||||
|
||||
const parseMDYLocal = (value) => {
|
||||
if (!value) return null;
|
||||
const parts = String(value).split("/");
|
||||
if (parts.length !== 3) return null;
|
||||
const [mm, dd, yyyy] = parts.map((p) => parseInt(p, 10));
|
||||
if (!mm || !dd || !yyyy) return null;
|
||||
return new Date(yyyy, mm - 1, dd);
|
||||
};
|
||||
async function handleBlockAction(body) {
|
||||
const action = body.actions?.[0];
|
||||
if (!action) return { statusCode: 200, body: JSON.stringify({ ok: true }) };
|
||||
|
||||
const formatDisplayDate = (date) =>
|
||||
date.toLocaleDateString("en-US", { weekday: "short", month: "short", day: "numeric" });
|
||||
const triggerId = body.trigger_id;
|
||||
const actionId = action.action_id;
|
||||
|
||||
const today = new Date();
|
||||
today.setHours(0, 0, 0, 0);
|
||||
const payments = await scanPayments();
|
||||
const { today, daysSince, scheduledChecks, scheduledACH, bucketedOutstanding } = categorizePayments(payments);
|
||||
|
||||
// Categorize payments
|
||||
const scheduledChecks = [];
|
||||
const scheduledACH = [];
|
||||
const outstandingChecks = [];
|
||||
let modalTitle = "";
|
||||
let items = [];
|
||||
|
||||
const skipStatuses = ["voided", "cancelled", "canceled", "marked as void", "cleared"];
|
||||
const ninetyDaysAgo = new Date(today);
|
||||
ninetyDaysAgo.setDate(ninetyDaysAgo.getDate() - 90);
|
||||
if (actionId.startsWith("view_scheduled_")) {
|
||||
const dateKey = actionId.replace("view_scheduled_checks_", "").replace("view_scheduled_ach_", "");
|
||||
const method = actionId.includes("_checks_") ? "Check" : "ACH";
|
||||
const source = method === "Check" ? scheduledChecks : scheduledACH;
|
||||
|
||||
for (const p of payments) {
|
||||
if (p.method !== "ACH" && p.method !== "Check") continue;
|
||||
items = source.filter((p) => {
|
||||
const dt = parseMDYLocal(p.send_payment_on);
|
||||
return dt && dt.toISOString().split("T")[0] === dateKey;
|
||||
});
|
||||
|
||||
const dt = parseMDYLocal(p.send_payment_on);
|
||||
if (!dt) continue;
|
||||
|
||||
const status = (p.status || "").toLowerCase();
|
||||
if (skipStatuses.includes(status)) continue;
|
||||
|
||||
if (dt >= today) {
|
||||
// Future — scheduled
|
||||
if (p.method === "Check") scheduledChecks.push(p);
|
||||
else scheduledACH.push(p);
|
||||
} else if (p.method === "Check") {
|
||||
// Past-due check not cleared — outstanding
|
||||
outstandingChecks.push(p);
|
||||
const dt = items[0] ? parseMDYLocal(items[0].send_payment_on) : null;
|
||||
modalTitle = dt ? formatDisplayDate(dt) : dateKey;
|
||||
} else if (actionId.startsWith("view_outstanding_")) {
|
||||
const bucketIdx = parseInt(actionId.replace("view_outstanding_", ""), 10);
|
||||
const bucket = bucketedOutstanding[bucketIdx];
|
||||
if (bucket) {
|
||||
items = bucket.items;
|
||||
modalTitle = bucket.label;
|
||||
}
|
||||
}
|
||||
|
||||
// Sort by date
|
||||
const byDate = (a, b) => {
|
||||
const da = parseMDYLocal(a.send_payment_on);
|
||||
const db = parseMDYLocal(b.send_payment_on);
|
||||
return (da || 0) - (db || 0);
|
||||
};
|
||||
scheduledChecks.sort(byDate);
|
||||
scheduledACH.sort(byDate);
|
||||
if (!items.length) {
|
||||
return { statusCode: 200, body: JSON.stringify({ ok: true }) };
|
||||
}
|
||||
|
||||
// Split outstanding into <=90 days and >90 days
|
||||
const outstanding90 = outstandingChecks.filter((p) => parseMDYLocal(p.send_payment_on) >= ninetyDaysAgo);
|
||||
const outstandingOver90 = outstandingChecks.filter((p) => parseMDYLocal(p.send_payment_on) < ninetyDaysAgo);
|
||||
const modalBlocks = buildPaymentListBlocks(items);
|
||||
|
||||
const buildScheduledBlocks = (title, emoji, items) => {
|
||||
const slackToken = await getSlackToken();
|
||||
const res = await fetch("https://slack.com/api/views.open", {
|
||||
method: "POST",
|
||||
headers: {
|
||||
Authorization: `Bearer ${slackToken}`,
|
||||
"Content-Type": "application/json; charset=utf-8",
|
||||
},
|
||||
body: JSON.stringify({
|
||||
trigger_id: triggerId,
|
||||
view: {
|
||||
type: "modal",
|
||||
title: { type: "plain_text", text: modalTitle.slice(0, 24) },
|
||||
close: { type: "plain_text", text: "Close" },
|
||||
blocks: modalBlocks,
|
||||
},
|
||||
}),
|
||||
});
|
||||
|
||||
const data = await res.json();
|
||||
if (!data.ok) {
|
||||
console.error("Slack views.open error:", JSON.stringify(data));
|
||||
}
|
||||
|
||||
return { statusCode: 200, body: JSON.stringify({ ok: true }) };
|
||||
}
|
||||
|
||||
// --- Build modal payment list ---
|
||||
|
||||
function buildPaymentListBlocks(items) {
|
||||
const total = items.reduce((sum, p) => sum + p.amount_usd, 0);
|
||||
|
||||
const blocks = [
|
||||
{
|
||||
type: "context",
|
||||
elements: [
|
||||
{
|
||||
type: "mrkdwn",
|
||||
text: `${items.length} payment${items.length !== 1 ? "s" : ""} · ${formatCurrency(total)} total`,
|
||||
},
|
||||
],
|
||||
},
|
||||
{ type: "divider" },
|
||||
];
|
||||
|
||||
for (const p of items) {
|
||||
const dt = parseMDYLocal(p.send_payment_on);
|
||||
const dateStr = dt ? formatDisplayDate(dt) : "N/A";
|
||||
const payee = p.payee || "—";
|
||||
const checkNum = p.check_number || "—";
|
||||
|
||||
blocks.push({
|
||||
type: "section",
|
||||
fields: [
|
||||
{ type: "mrkdwn", text: `*${payee}*\n${p.method === "ACH" ? "Reference" : "Check"} #${checkNum}` },
|
||||
{ type: "mrkdwn", text: `*${formatCurrency(p.amount_usd)}*\n${dateStr}` },
|
||||
],
|
||||
});
|
||||
}
|
||||
|
||||
return blocks;
|
||||
}
|
||||
|
||||
// --- Scan all payments from DynamoDB ---
|
||||
|
||||
async function scanPayments() {
|
||||
const payments = [];
|
||||
let lastKey;
|
||||
do {
|
||||
const result = await ddb.send(
|
||||
new ScanCommand({
|
||||
TableName: TABLE_NAME,
|
||||
FilterExpression: "begins_with(pk, :prefix)",
|
||||
ExpressionAttributeValues: { ":prefix": "payment#" },
|
||||
ExclusiveStartKey: lastKey,
|
||||
})
|
||||
);
|
||||
payments.push(...result.Items);
|
||||
lastKey = result.LastEvaluatedKey;
|
||||
} while (lastKey);
|
||||
return payments;
|
||||
}
|
||||
|
||||
// --- Build the App Home view ---
|
||||
|
||||
function buildHomeView(payments, metadata) {
|
||||
const { today, daysSince, scheduledChecks, scheduledACH, outstandingChecks, bucketedOutstanding } = categorizePayments(payments);
|
||||
|
||||
const buildScheduledBlocks = (title, emoji, items, methodKey) => {
|
||||
const total = items.reduce((sum, p) => sum + p.amount_usd, 0);
|
||||
|
||||
const blocks = [
|
||||
{
|
||||
type: "section",
|
||||
text: {
|
||||
type: "mrkdwn",
|
||||
text: `*${emoji} ${title}*\n${items.length} payments • ${formatCurrency(total)}`,
|
||||
},
|
||||
type: "header",
|
||||
text: { type: "plain_text", text: `${emoji} ${title}` },
|
||||
},
|
||||
{
|
||||
type: "context",
|
||||
elements: [
|
||||
{
|
||||
type: "mrkdwn",
|
||||
text: `${items.length} payment${items.length !== 1 ? "s" : ""} · ${formatCurrency(total)} total`,
|
||||
},
|
||||
],
|
||||
},
|
||||
{ type: "divider" },
|
||||
];
|
||||
|
||||
if (!items.length) {
|
||||
blocks.push({
|
||||
type: "section",
|
||||
text: { type: "mrkdwn", text: "_None_" },
|
||||
text: { type: "mrkdwn", text: "_No upcoming payments_" },
|
||||
});
|
||||
blocks.push({ type: "divider" });
|
||||
return blocks;
|
||||
|
|
@ -180,16 +333,20 @@ function buildHomeView(payments, metadata) {
|
|||
const group = grouped[key];
|
||||
const dayTotal = group.payments.reduce((sum, p) => sum + p.amount_usd, 0);
|
||||
const dateLabel = group.date ? formatDisplayDate(group.date) : "Unknown";
|
||||
const daysUntil = group.date ? Math.ceil((group.date - today) / (1000 * 60 * 60 * 24)) : null;
|
||||
const daysTag = daysUntil === 0 ? ":rotating_light: _Today_" : daysUntil === 1 ? "_Tomorrow_" : daysUntil != null ? `_in ${daysUntil} days_` : "";
|
||||
|
||||
blocks.push({
|
||||
type: "section",
|
||||
fields: [
|
||||
{ type: "mrkdwn", text: `*${dateLabel}*` },
|
||||
{
|
||||
type: "mrkdwn",
|
||||
text: `${group.payments.length} payments • ${formatCurrency(dayTotal)}`,
|
||||
},
|
||||
],
|
||||
text: {
|
||||
type: "mrkdwn",
|
||||
text: `*${dateLabel}* ${daysTag}\n${group.payments.length} payment${group.payments.length !== 1 ? "s" : ""} · *${formatCurrency(dayTotal)}*`,
|
||||
},
|
||||
accessory: {
|
||||
type: "button",
|
||||
text: { type: "plain_text", text: "View" },
|
||||
action_id: `view_scheduled_${methodKey}_${key}`,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
|
|
@ -202,64 +359,87 @@ function buildHomeView(payments, metadata) {
|
|||
|
||||
const blocks = [
|
||||
{
|
||||
type: "section",
|
||||
text: {
|
||||
type: "mrkdwn",
|
||||
text: `*:warning: Outstanding Checks*\n${outstandingChecks.length} checks • ${formatCurrency(totalAll)}`,
|
||||
},
|
||||
type: "header",
|
||||
text: { type: "plain_text", text: ":warning: Outstanding Checks" },
|
||||
},
|
||||
{
|
||||
type: "context",
|
||||
elements: [
|
||||
{
|
||||
type: "mrkdwn",
|
||||
text: `${outstandingChecks.length} check${outstandingChecks.length !== 1 ? "s" : ""} · ${formatCurrency(totalAll)} total`,
|
||||
},
|
||||
],
|
||||
},
|
||||
{ type: "divider" },
|
||||
];
|
||||
|
||||
if (!outstandingChecks.length) {
|
||||
blocks.push({
|
||||
type: "section",
|
||||
text: { type: "mrkdwn", text: "_None_" },
|
||||
text: { type: "mrkdwn", text: ":white_check_mark: _All checks have cleared_" },
|
||||
});
|
||||
blocks.push({ type: "divider" });
|
||||
return blocks;
|
||||
}
|
||||
|
||||
const total90 = outstanding90.reduce((sum, p) => sum + p.amount_usd, 0);
|
||||
const totalOver90 = outstandingOver90.reduce((sum, p) => sum + p.amount_usd, 0);
|
||||
for (let i = 0; i < bucketedOutstanding.length; i++) {
|
||||
const bucket = bucketedOutstanding[i];
|
||||
if (!bucket.items.length) continue;
|
||||
|
||||
blocks.push({
|
||||
type: "section",
|
||||
fields: [
|
||||
{ type: "mrkdwn", text: `*90 days or less*` },
|
||||
{ type: "mrkdwn", text: `${outstanding90.length} checks • ${formatCurrency(total90)}` },
|
||||
],
|
||||
});
|
||||
|
||||
blocks.push({
|
||||
type: "section",
|
||||
fields: [
|
||||
{ type: "mrkdwn", text: `*Over 90 days*` },
|
||||
{ type: "mrkdwn", text: `${outstandingOver90.length} checks • ${formatCurrency(totalOver90)}` },
|
||||
],
|
||||
});
|
||||
blocks.push({
|
||||
type: "section",
|
||||
text: {
|
||||
type: "mrkdwn",
|
||||
text: `*${bucket.label}*\n${bucket.items.length} check${bucket.items.length !== 1 ? "s" : ""} · *${formatCurrency(bucket.total)}*`,
|
||||
},
|
||||
accessory: {
|
||||
type: "button",
|
||||
text: { type: "plain_text", text: "View" },
|
||||
action_id: `view_outstanding_${i}`,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
blocks.push({ type: "divider" });
|
||||
return blocks;
|
||||
};
|
||||
|
||||
// Summary bar
|
||||
const totalScheduled = scheduledChecks.length + scheduledACH.length;
|
||||
const totalScheduledAmt = [...scheduledChecks, ...scheduledACH].reduce((sum, p) => sum + p.amount_usd, 0);
|
||||
const totalOutstandingAmt = outstandingChecks.reduce((sum, p) => sum + p.amount_usd, 0);
|
||||
|
||||
return {
|
||||
type: "home",
|
||||
blocks: [
|
||||
{
|
||||
type: "header",
|
||||
text: { type: "plain_text", text: "Payments Dashboard" },
|
||||
text: { type: "plain_text", text: ":bank: Payments Dashboard" },
|
||||
},
|
||||
{
|
||||
type: "context",
|
||||
elements: [
|
||||
{ type: "mrkdwn", text: `*Last updated:* ${metadata?.last_updated || "N/A"}` },
|
||||
{ type: "mrkdwn", text: `*Source:* ${metadata?.file_name || "N/A"}` },
|
||||
{ type: "mrkdwn", text: `Last updated · ${metadata?.last_updated || "N/A"}` },
|
||||
{ type: "mrkdwn", text: `Source · ${metadata?.file_name || "N/A"}` },
|
||||
],
|
||||
},
|
||||
{ type: "divider" },
|
||||
...buildScheduledBlocks("Scheduled Checks", ":calendar:", scheduledChecks),
|
||||
...buildScheduledBlocks("Scheduled ACH", ":calendar:", scheduledACH),
|
||||
{
|
||||
type: "section",
|
||||
fields: [
|
||||
{
|
||||
type: "mrkdwn",
|
||||
text: `:calendar: *Scheduled*\n${totalScheduled} payments · ${formatCurrency(totalScheduledAmt)}`,
|
||||
},
|
||||
{
|
||||
type: "mrkdwn",
|
||||
text: `:warning: *Outstanding*\n${outstandingChecks.length} checks · ${formatCurrency(totalOutstandingAmt)}`,
|
||||
},
|
||||
],
|
||||
},
|
||||
{ type: "divider" },
|
||||
...buildScheduledBlocks("Scheduled Checks", ":ledger:", scheduledChecks, "checks"),
|
||||
...buildScheduledBlocks("Scheduled ACH", ":electric_plug:", scheduledACH, "ach"),
|
||||
...buildOutstandingBlocks(),
|
||||
],
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue