mirror of
https://github.com/itflow-org/itflow
synced 2026-03-28 16:25:40 +00:00
Move variable default values for reporting to inc_all_reports
This commit is contained in:
@@ -9,3 +9,7 @@ include("reports_side_nav.php");
|
|||||||
include("inc_wrapper.php");
|
include("inc_wrapper.php");
|
||||||
include("inc_alert_feedback.php");
|
include("inc_alert_feedback.php");
|
||||||
|
|
||||||
|
// Set variable default values
|
||||||
|
$largest_income_month = 0;
|
||||||
|
$largest_invoice_month = 0;
|
||||||
|
$recurring_total = 0;
|
||||||
|
|||||||
@@ -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");
|
$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;
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div class="card card-dark">
|
<div class="card card-dark">
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ $sql_clients = mysqli_query($mysqli,"SELECT * FROM clients WHERE company_id = $s
|
|||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php
|
<?php
|
||||||
$recurring_total = 0; // Default value: 0
|
|
||||||
while ($row = mysqli_fetch_array($sql_clients)) {
|
while ($row = mysqli_fetch_array($sql_clients)) {
|
||||||
$client_id = $row['client_id'];
|
$client_id = $row['client_id'];
|
||||||
$client_name = htmlentities($row['client_name']);
|
$client_name = htmlentities($row['client_name']);
|
||||||
|
|||||||
Reference in New Issue
Block a user