mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 10:54:52 +00:00
Some UI Enhancements, Fixed issue where dashboard was calculating transfers as well as payment as income, fixed missing syntax in cron.php, fixed issue where invoice notes were not showing under guest invoice view, updated the db to comply with mysql strict mode
This commit is contained in:
@@ -18,7 +18,7 @@ $sql_payment_years = mysqli_query($mysqli,"SELECT DISTINCT YEAR(payment_date) AS
|
||||
|
||||
|
||||
//Get Total income Do not grab transfer payment as these have an invoice_id of 0
|
||||
$sql_total_income = mysqli_query($mysqli,"SELECT SUM(payment_amount) AS total_income FROM payments WHERE YEAR(payment_date) = $year");
|
||||
$sql_total_income = mysqli_query($mysqli,"SELECT SUM(payment_amount) AS total_income FROM payments WHERE YEAR(payment_date) = $year AND invoice_id > 0");
|
||||
$row = mysqli_fetch_array($sql_total_income);
|
||||
$total_income = $row['total_income'];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user