mirror of https://github.com/itflow-org/itflow
Move variable default values for reporting to inc_all_reports
This commit is contained in:
parent
00dd605d8d
commit
7e644d8f9f
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
?>
|
||||
|
||||
<div class="card card-dark">
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ $sql_clients = mysqli_query($mysqli,"SELECT * FROM clients WHERE company_id = $s
|
|||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$recurring_total = 0; // Default value: 0
|
||||
|
||||
while ($row = mysqli_fetch_array($sql_clients)) {
|
||||
$client_id = $row['client_id'];
|
||||
$client_name = htmlentities($row['client_name']);
|
||||
|
|
|
|||
Loading…
Reference in New Issue