You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: