money
money copied to clipboard
Deprecation message about "symbol_position: :after" is a bit misleading
Hi,
When using this configuration:
Spree::Money.default_formatting_rules = { symbol_position: :after }
I'm getting this deprecation message: "symbol_position: :after is deprecated - you can replace it with format: %n %u"
But replacing default_formatting_rules = { format: "%n %u" } seems not equivalent to { symbol_position: :after } for negative numbers.
With { symbol_position: :after }, a negative number is displayed correctly : "-15 €".
With { format: "%n %u" }, a negative number is wrongly displayed like this: "15 -€".
I read the code and examples but I didn't find the way to correctly displayed negative number with euro symbol as suffix and also removing the deprecation message.
Thanks for your help