From 2416f80dba61213c17773cfa60bf4015f83f28ee Mon Sep 17 00:00:00 2001 From: root Date: Fri, 26 Apr 2019 18:58:56 -0400 Subject: [PATCH] Profit and Loss Report Completed --- report_profit_loss.php | 352 ++++++++++++++++++++++++++++++++++------- 1 file changed, 297 insertions(+), 55 deletions(-) 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 + $ + $ + $ + $ + $