Closed (fixed)
Project:
Units of Measurement
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
29 Mar 2013 at 18:58 UTC
Updated:
15 Dec 2015 at 02:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
bucefal91 commentedhello!
I know it's been quite some time since you asked about it. But in case you still need this, here's a patch that does decent job of integrating Currency module into Units.
This patch introduces a new submodule: units_currency. After you enable it, a new "Currency" measure will be automatically created and it will be filled in with all the currencies that are available from Currency module. All the conversion logic within this "Currency" measure will be executed exactly the same way as it happens in Currency module, i.e. if in Currency module 100 EUR converts into 120 USD, then you'll receive the same 120 USD if you convert 100 EUR within Units module.
Comment #2
bucefal91 commentedI just had a look at my code again and found that Units would import even disabled currencies, which is not the desired behavior. I have just fixed it. I am going to commit it soon.
Comment #4
bucefal91 commentedThe issue is now through.