Permalink
Browse files

Fix amount_to_s for booking templates showing % when absolute.

  • Loading branch information...
huerlisi committed Apr 18, 2011
1 parent df0288d commit a6e5d48899db6d071597afe98242b1cb1b3b7fcb
@@ -8,7 +8,7 @@ def amount_relations_as_collection
end
def amount_to_s(booking_template)
- if booking_template.amount_relates_to
+ if booking_template.amount_relates_to.present?
return "%.2f%%" % (booking_template.amount.to_f * 100)
else
return currency_fmt(booking_template.amount)
@@ -14,4 +14,3 @@
= list_link_for(:edit, booking_template)
= list_link_for(:delete, booking_template)
=# link_to image_tag('16x16/copy.png', :title => 'Copy'), copy_booking_template_path(booking_template), :remote => true
-
@@ -13,4 +13,3 @@
%td.action-links
= list_link_for(:edit, charge_booking_template)
= list_link_for(:delete, charge_booking_template)
-

0 comments on commit a6e5d48

Please sign in to comment.