From b4cc8c1a91f408cf29f7a5fbe59d1be64a07e703 Mon Sep 17 00:00:00 2001 From: "johnny@pittpc.com" Date: Fri, 15 Jan 2021 18:20:29 -0500 Subject: [PATCH] Added projected income to cash flow - Projected income is based off the due date and the amount of an invoice --- dashboard.php | 37 +++++++++++++++++++++++++++++++++++-- 1 file changed, 35 insertions(+), 2 deletions(-) diff --git a/dashboard.php b/dashboard.php index ce1c00d4..cecab93b 100644 --- a/dashboard.php +++ b/dashboard.php @@ -435,7 +435,6 @@ var myLineChart = new Chart(ctx, { labels: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], datasets: [{ label: "Income", - fill: false, borderColor: "#007bff", pointBackgroundColor: "#007bff", @@ -472,7 +471,41 @@ var myLineChart = new Chart(ctx, { ?> ], - }, { + }, + { + label: "Projected", + fill: false, + borderColor: "black", + pointBackgroundColor: "black", + pointBorderColor: "black", + pointHoverRadius: 5, + pointHoverBackgroundColor: "black", + pointHitRadius: 50, + pointBorderWidth: 2, + data: [ + 0 AND $invoice_for_month > $largest_invoice_month){ + $largest_invoice_month = $invoice_for_month; + } + + + ?> + + + + + ], + }, + { label: "Expense", lineTension: 0.3, fill: false,