Added getPricesAffected function

Added getPricesAffected
Added getPricesAffected unit tests