[FIX] purchase: Purchase Analysis view was using incorrect JOIN order