3scale/issues-test — Issue #505: pricing rules resolution on plan views
Author: HakubJozak
Created: 2012-02-10 18:02:55+00:00
State: open
Labels: bug

The ptricing can be $0.006 per hit, for instance in httfor ps://developer-admin.peekyou.com/admin/apiconfig/plans/206/edit?type=application_plan

however, the view of the plans (via widgets) rounds to 0.01.

That's dangerous because people don't make sense of the pricing (it actually happened).

Make the precision one more (0.001), for smaller values print

if value >= 0.001
puts value
else
puts "#{(value*1000).round} per k"
end

(note: there is no proper view of plans for either provider of buyer, already on pivotal)

Tasks

https://www.pivotaltracker.com/story/show/16449141