diff --git a/DepartmentPortal/Common/DesktopTools/BaseControls/BaseControlDecimal.cs b/DepartmentPortal/Common/DesktopTools/BaseControls/BaseControlDecimal.cs index b052ccb..02f9fc7 100644 --- a/DepartmentPortal/Common/DesktopTools/BaseControls/BaseControlDecimal.cs +++ b/DepartmentPortal/Common/DesktopTools/BaseControls/BaseControlDecimal.cs @@ -77,7 +77,7 @@ namespace DesktopTools.BaseControls public bool CheckValueForControl() => true; - public object GetValueFromControl() => !_mustFilling && checkBoxNullable.Checked ? null : Convert.ToDouble(numericUpDown.Value); + public object GetValueFromControl() => !_mustFilling && checkBoxNullable.Checked ? null : Convert.ToDecimal(numericUpDown.Value); public string GetPropertyName() => _propertyName; }