diff --git a/BBWY.Client/Converters/InputNumberConverter.cs b/BBWY.Client/Converters/InputNumberConverter.cs index 1d951673..ce9c2890 100644 --- a/BBWY.Client/Converters/InputNumberConverter.cs +++ b/BBWY.Client/Converters/InputNumberConverter.cs @@ -18,7 +18,10 @@ namespace BBWY.Client.Converters if (string.IsNullOrEmpty(strValue)) return null; decimal result; - if (strValue.IndexOf('.') == strValue.Length - 1 || !decimal.TryParse(strValue, out result)) + var dotIndex = strValue.IndexOf('.'); + if (dotIndex == strValue.Length - 1 || + (dotIndex != -1 && strValue.EndsWith("0")) || + !decimal.TryParse(strValue, out result)) return DependencyProperty.UnsetValue; return result; } diff --git a/BBWY.Client/GlobalContext.cs b/BBWY.Client/GlobalContext.cs index 31a74106..c8e7d4bb 100644 --- a/BBWY.Client/GlobalContext.cs +++ b/BBWY.Client/GlobalContext.cs @@ -13,7 +13,7 @@ namespace BBWY.Client { ShopServiceGroupList = new List(); ShopServiceGroupLowerList = new List(); - ClientVersion = "10185"; + ClientVersion = "10186"; } private User user;