diff --git a/inc_all_reports.php b/inc_all_reports.php index 16dacb34..2a0ddc38 100644 --- a/inc_all_reports.php +++ b/inc_all_reports.php @@ -9,3 +9,7 @@ include("reports_side_nav.php"); include("inc_wrapper.php"); include("inc_alert_feedback.php"); +// Set variable default values +$largest_income_month = 0; +$largest_invoice_month = 0; +$recurring_total = 0; diff --git a/report_income_summary.php b/report_income_summary.php index 06053e4f..a5312f2d 100644 --- a/report_income_summary.php +++ b/report_income_summary.php @@ -17,10 +17,6 @@ $sql_payment_years = mysqli_query($mysqli, "SELECT DISTINCT YEAR(payment_date) A $sql_categories = mysqli_query($mysqli, "SELECT * FROM categories WHERE category_type = 'Income' AND company_id = $session_company_id ORDER BY category_name ASC"); -// Default values -$largest_income_month = 0; -$largest_invoice_month = 0; - ?>