Black Thursday is a system that is able to load, parse, search, and execute business intelligence queries against the data from a typical e-commerece business in Ruby.
0
stars
0
forks
source link
Business Intelligence - find total revenue by date #55
sa.total_revenue_by_date(date) #=> $$
Note: When calculating revenue the unit_price listed within invoice_items should be used. The invoice_item.unit_price represents the final sale price of an item after sales, discounts or other intermediary price changes.
Find out the total revenue for a given date:
sa = SalesAnalyst.new
sa.total_revenue_by_date(date) #=> $$ Note: When calculating revenue the unit_price listed within invoice_items should be used. The invoice_item.unit_price represents the final sale price of an item after sales, discounts or other intermediary price changes.
https://github.com/turingschool/curriculum/blob/master/source/projects/black_thursday/iteration_4.markdown#iteration-4-merchant-analytics