j-sm-n / black_thursday

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 - Which merchants have pending invoices? #57

Closed jesse-spevack closed 7 years ago

jesse-spevack commented 7 years ago

Which merchants have pending invoices:

sa = SalesAnalyst.new

sa.merchants_with_pending_invoices #=> [merchant, merchant, merchant] Note: an invoice is considered pending if none of its transactions are successful.

https://github.com/turingschool/curriculum/blob/master/source/projects/black_thursday/iteration_4.markdown#iteration-4-merchant-analytics