From 53d986e0bdeb4dee96df355416b9941a0720e257 Mon Sep 17 00:00:00 2001 From: "johnny@pittpc.com" Date: Mon, 8 Feb 2021 14:54:57 -0500 Subject: [PATCH] Fixed Cashflow Largest value for YAxis in dashboard --- dashboard.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/dashboard.php b/dashboard.php index dc0f1f7a..2520b6ef 100644 --- a/dashboard.php +++ b/dashboard.php @@ -487,17 +487,18 @@ var myLineChart = new Chart(ctx, { pointBorderWidth: 2, data: [ 0 AND $invoice_for_month > $largest_invoice_month){ $largest_invoice_month = $invoice_for_month; } - ?> @@ -522,11 +523,13 @@ var myLineChart = new Chart(ctx, { pointBorderWidth: 2, data: [ 0 AND expenses.company_id = $session_company_id"); $row = mysqli_fetch_array($sql_expenses); $expenses_for_month = $row['expense_amount_for_month']; - $largest_expense_month = 0; if($expenses_for_month > 0 AND $expenses_for_month > $largest_expense_month){ $largest_expense_month = $expenses_for_month;