Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
there is no decimal points have been sets for Iranian Rial currency which make it use default 2 digit decimal points which is wrong.
Comment | File | Size | Author |
---|---|---|---|
#6 | commerce-iranian-rial-2074141-0.patch | 917 bytes | sepehr.sadatifar |
#4 | commerce-iranian-rial-2074141-2.patch | 816 bytes | sepehr.sadatifar |
#1 | commerce-iranian-rial-2074141-0.patch | 816 bytes | sepehr.sadatifar |
Comments
Comment #1
sepehr.sadatifar CreditAttribution: sepehr.sadatifar commentedComment #3
rszrama CreditAttribution: rszrama commentedLooks like the patch failed b/c it uses a . instead of a ,. Can you point me to any Iranian eCommerce sites for currency formatting reference?
Comment #4
sepehr.sadatifar CreditAttribution: sepehr.sadatifar commentedoops! sry.
I think this is a good reference (see "E" column in "Active codes" table).
Comment #5
sepehr.sadatifar CreditAttribution: sepehr.sadatifar commentedComment #6
sepehr.sadatifar CreditAttribution: sepehr.sadatifar commenteda patch which covers both this issue and another issue with Iranian rial symbol character.
Comment #7
sepehr.sadatifar CreditAttribution: sepehr.sadatifar commented@rszrama will this patch commited any soon?
Comment #8
rszrama CreditAttribution: rszrama commentedWait, I don't understand - that Wikipedia page says the Iranian rial uses two decimal places. Any ideas why?
Comment #9
sepehr.sadatifar CreditAttribution: sepehr.sadatifar commented@rszrama at the time of writing the comment it was 0 decimal points in wikipedia article (see here). after some digging it turned out that officially Iranian rial uses two decimal points which means it divides to a minor currency unit (dinar) which because rial itself has a very low value we don't even have a official paper money or coin for dinar in iran but we have an unofficial major unit (toman).
so if we want to be conformed with ISO 4217 we should have these corrections on current code:
1- use rial for major unit instead of toman which is an unoffical unit.
2- use dinar for minor unit.
I strongly suggest we don't use minor unit of `dinar` because believe me, even iranian people don't know it's the official minor unit of iran currency!
my preference is to use unofficial major unit of `toman` and minor unit of `rial` and have 0 for decimal points.
Comment #11
bojanz CreditAttribution: bojanz commentedValidated #6 against CLDR, and committed. Thanks!