diff --git a/report_profit_loss.php b/report_profit_loss.php index f85fd075..16cd4037 100644 --- a/report_profit_loss.php +++ b/report_profit_loss.php @@ -1,17 +1,42 @@ - +
-
Profit & Loss
- - +
Profit & Loss
+ +
+ +
@@ -31,65 +56,282 @@ - - Income Category Type - $0.00 - $0.00 - $0.00 - $0.00 - $0.00 - - - Income Category Type 2 - $0.00 - $0.00 - $0.00 - $0.00 - $0.00 - + + + + + + + + $ + + + + $ + + + + $ + + + + $ + + $ + + + + Gross Profit - $0.00 - $0.00 - $0.00 - $0.00 - $0.00 + + + $ + + + + $ + + + + $ + + + + $ + + $ +

Expenses - - Expense Category Type - $0.00 - $0.00 - $0.00 - $0.00 - $0.00 - - - Expense Category Type 2 - $0.00 - $0.00 - $0.00 - $0.00 - $0.00 - + + + + + + + + $ + + + + $ + + + + $ + + + + $ + + $ + + + + Total Expenses


- $0.00 - $0.00 - $0.00 - $0.00 - $0.00 + 0 AND YEAR(expense_date) = $year AND MONTH(expense_date) = $month"); + $row = mysqli_fetch_array($sql_expenses); + $expense_total_amount_for_quarter_one = $expense_total_amount_for_quarter_one + $row['expense_total_amount_for_month']; + } + + ?> + + $ + + 0 AND YEAR(expense_date) = $year AND MONTH(expense_date) = $month"); + $row = mysqli_fetch_array($sql_expenses); + $expense_total_amount_for_quarter_two = $expense_total_amount_for_quarter_two + $row['expense_total_amount_for_month']; + } + + ?> + + $ + + 0 AND YEAR(expense_date) = $year AND MONTH(expense_date) = $month"); + $row = mysqli_fetch_array($sql_expenses); + $expense_total_amount_for_quarter_three = $expense_total_amount_for_quarter_three + $row['expense_total_amount_for_month']; + } + + ?> + + $ + + 0 AND YEAR(expense_date) = $year AND MONTH(expense_date) = $month"); + $row = mysqli_fetch_array($sql_expenses); + $expense_total_amount_for_quarter_four = $expense_total_amount_for_quarter_four + $row['expense_total_amount_for_month']; + } + + $total_expenses_for_all_four_quarters = $expense_total_amount_for_quarter_one + $expense_total_amount_for_quarter_two + $expense_total_amount_for_quarter_three + $expense_total_amount_for_quarter_four; + + ?> + + $ + + $ + + Net Profit - $0.00 - $0.00 - $0.00 - $0.00 - $0.00 + $ + $ + $ + $ + $