Skip to content

Commit

Permalink
Merge pull request #15580 from lpichler/fix_chargeback_report_with_un…
Browse files Browse the repository at this point in the history
…assigned_rates

Fix chargeback report with unassigned rates
(cherry picked from commit 03df095)

https://bugzilla.redhat.com/show_bug.cgi?id=1472837
  • Loading branch information
gtanzillo authored and simaishi committed Jul 19, 2017
1 parent 0adac10 commit c759eb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/miq_report/formatting.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def format(col, value, options = {})
# Chargeback Reports: Add the selected currency in the assigned rate to options
if Chargeback.db_is_chargeback?(db)
@rates_cache ||= Chargeback::RatesCache.new
options[:unit] = @rates_cache.currency_for_report
options[:unit] = @rates_cache.currency_for_report if @rates_cache.currency_for_report
end

format.merge!(options) if format # Merge additional options that were passed in as overrides
Expand Down

0 comments on commit c759eb3

Please sign in to comment.