[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: [mv] "currency convert" oddity or bug?
Quoting Mike Heins (mikeh@minivend.com):
>Precedence. The [item-price] tag is interpreted in the surrounding loop,
>and will not change with locale in the way that you want.
>[setlocale currency=eur_EUR]
> [price [item-code]]
Thanks for the fast answer.
I had subconsciously suspected that it might have to do with precedence :-)
The [price item-code]] works. However:
a) I need this also for discount-price, subtotal, etc... since dual currency
display is wanted for _all_ amounts.
These are not accessible via [price ...], are they?
I assume this might be achieved with a user-defined tag, similiar to [loc]?
I would then either need to access the "non-price-divided" value of the
amount field in question, or re-multiply.
b) the name of the currency is not properly reset when changing _to_ the
currency in mv_currency (or mv_locale if mv_currency not used)!
Especially this shows up with the [subtotal] after multi-currency
item-lists.
See the example in my initial post:
>>de_DE DM 19,90 EUR 10,17 CZK 398,00 CZK 19,90
>>en_GB GBP 6.86 EUR 3,51 CZK 137,24 DM 6,86
>>en_US $ 11.37 EUR 5,81 CZK 227,43 DM 11,37
>>cz_CZ KCS 398,00 EUR 203,49 EUR 7.960,00 DM 398,00
in the first line, the last currency should show as DM, not CZK,
in the last line, the third currency should show as CZK (the first "KCS"
also, but this was because of my hand-editing...)
in both cases, the currency shown is the one from the immediately preceding
entry.
Can you help with this?
Yours truly
Klaus