mirror of
https://github.com/itflow-org/itflow
synced 2026-03-19 12:14:50 +00:00
Merge pull request #552 from chandachewe10/master
SHOWING REVENUES IN EACH PARTICULAR MONTH COLUMN
This commit is contained in:
@@ -92,7 +92,7 @@ $sql_categories = mysqli_query($mysqli,"SELECT * FROM categories WHERE category_
|
|||||||
$payment_amount_for_month = $row['payment_amount_for_month'];
|
$payment_amount_for_month = $row['payment_amount_for_month'];
|
||||||
|
|
||||||
//Revenues
|
//Revenues
|
||||||
$sql_revenues = mysqli_query($mysqli,"SELECT SUM(revenue_amount) AS revenue_amount_for_month FROM revenues WHERE revenue_id = $category_id AND YEAR(revenue_date) = $year AND MONTH(revenue_date) = $month");
|
$sql_revenues = mysqli_query($mysqli,"SELECT SUM(revenue_amount) AS revenue_amount_for_month FROM revenues WHERE revenue_category_id = $category_id AND YEAR(revenue_date) = $year AND MONTH(revenue_date) = $month");
|
||||||
$row = mysqli_fetch_array($sql_revenues);
|
$row = mysqli_fetch_array($sql_revenues);
|
||||||
$revenues_amount_for_month = $row['revenue_amount_for_month'];
|
$revenues_amount_for_month = $row['revenue_amount_for_month'];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user