Bug 1331883

Summary: Chargeback costs reported in USD only even when rates are assigned non USD currencies
Product: Red Hat CloudForms Management Engine Reporter: Nandini Chandra <nachandr>
Component: ReportingAssignee: Libor Pichler <lpichler>
Status: CLOSED ERRATA QA Contact: Nandini Chandra <nachandr>
Severity: high Docs Contact:
Priority: high    
Version: 5.6.0CC: cpelland, jhardy, lpichler, obarenbo, simaishi
Target Milestone: GA   
Target Release: 5.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: chargeback
Fixed In Version: 5.6.0.6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-06-29 15:56:25 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Nandini Chandra 2016-04-29 22:26:08 UTC
Description of problem:
-----------------------


Version-Release number of selected component (if applicable):
---------------------------
5.6.0.4


How reproducible:
----------------
Always


Steps to Reproduce:
-------------------
1)Add a custom chargeback rate.Select a non-USD currency.Assign the Chargeback rate to some entity:Enterprise etc.
2)Generate a Chargeback report.


Actual results:
--------------
Chargeback costs are reported in USD.


Expected results:
----------------
Chargeback costs should be reported in the correct currency.


Additional info:
----------------

Comment 2 Nandini Chandra 2016-04-29 22:27:03 UTC
https://github.com/ManageIQ/manageiq/issues/7723

Comment 3 Libor Pichler 2016-05-19 14:59:25 UTC
https://github.com/ManageIQ/manageiq/pull/8444

Comment 4 Libor Pichler 2016-05-19 15:13:09 UTC
currency which is displayed on chargeback report result is dependent on currently assigned rate.

but we have storage and compute rate and there can be set up currency separately
so compute have precedence.

- if we have both assigned => currency from currently assigned compute rate is taken
- if we have only storate rate assigned => currency from currently assigned storage rate is taken

Comment 5 Nandini Chandra 2016-05-26 16:42:43 UTC
Verified in 5.6.0.8

Comment 7 errata-xmlrpc 2016-06-29 15:56:25 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2016:1348