Bugs: Browse | Submit New | Admin

[#25769] Deriver does not use source pivot currency when pivot is non-USD

Date:
2009-05-04 03:01
Priority:
3
Submitted By:
Brian Kenn (zappo)
Assigned To:
Nobody (None)
Category:
None
State:
Open
Summary:
Deriver does not use source pivot currency when pivot is non-USD

Detailed description
In deriver.rb the code for -

def pivot_currency
  @pivot_currency || @source.pivot_currency || :USD
end

should be -

def pivot_currency
  @source.pivot_currency || @pivot_currency || :USD
end

The variable @pivot_currency is initialized to :USD by base.rb in the super initialize. It is set to nil in the class
initialized, but this is overwritten by base.rb.

This means that the pivot currency will always be USD, even if the @source.pivot_currency is different.

Add A Comment: Notepad

Please login


Followup

No Followups Have Been Posted

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

No Changes Have Been Made to This Item