Add Income to Purchases
[cs356-p2-videostore.git] / app / views / purchase / income_results.rhtml
diff --git a/app/views/purchase/income_results.rhtml b/app/views/purchase/income_results.rhtml
new file mode 100644 (file)
index 0000000..eafd83f
--- /dev/null
@@ -0,0 +1,7 @@
+<h1>Income from <%= @begin_date %> to <%= @end_date %></h1>
+
+<p><b>Number of Merchandise Items Sold: </b><%= @merch_count %></p>
+<p><b>Income from Merchandise: </b><%= number_to_currency(@merch_sum) %></p>
+<p><b>Number of Rentals: </b><%= @rent_count %></p>
+<p><b>Income from Rentals: </b><%= number_to_currency(@rent_sum) %></p>
+<p><b>Total Income: </b><%= number_to_currency(@total) %></p>