mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-20 09:44:26 +08:00
remove space decimal separator
This commit is contained in:
@@ -12,7 +12,6 @@ const (
|
|||||||
DECIMAL_SEPARATOR_DEFAULT DecimalSeparator = 0
|
DECIMAL_SEPARATOR_DEFAULT DecimalSeparator = 0
|
||||||
DECIMAL_SEPARATOR_DOT DecimalSeparator = 1
|
DECIMAL_SEPARATOR_DOT DecimalSeparator = 1
|
||||||
DECIMAL_SEPARATOR_COMMA DecimalSeparator = 2
|
DECIMAL_SEPARATOR_COMMA DecimalSeparator = 2
|
||||||
DECIMAL_SEPARATOR_SPACE DecimalSeparator = 3
|
|
||||||
DECIMAL_SEPARATOR_INVALID DecimalSeparator = 255
|
DECIMAL_SEPARATOR_INVALID DecimalSeparator = 255
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -25,8 +24,6 @@ func (f DecimalSeparator) String() string {
|
|||||||
return "Dot"
|
return "Dot"
|
||||||
case DECIMAL_SEPARATOR_COMMA:
|
case DECIMAL_SEPARATOR_COMMA:
|
||||||
return "Comma"
|
return "Comma"
|
||||||
case DECIMAL_SEPARATOR_SPACE:
|
|
||||||
return "Space"
|
|
||||||
case DECIMAL_SEPARATOR_INVALID:
|
case DECIMAL_SEPARATOR_INVALID:
|
||||||
return "Invalid"
|
return "Invalid"
|
||||||
default:
|
default:
|
||||||
|
|||||||
@@ -301,7 +301,7 @@ func (s *UserService) UpdateUser(c core.Context, user *models.User, modifyUserLa
|
|||||||
updateCols = append(updateCols, "short_time_format")
|
updateCols = append(updateCols, "short_time_format")
|
||||||
}
|
}
|
||||||
|
|
||||||
if core.DECIMAL_SEPARATOR_DEFAULT <= user.DecimalSeparator && user.DecimalSeparator <= core.DECIMAL_SEPARATOR_SPACE {
|
if core.DECIMAL_SEPARATOR_DEFAULT <= user.DecimalSeparator && user.DecimalSeparator <= core.DECIMAL_SEPARATOR_COMMA {
|
||||||
updateCols = append(updateCols, "decimal_separator")
|
updateCols = append(updateCols, "decimal_separator")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -34,7 +34,6 @@ export class DecimalSeparator implements TypeAndName, NumeralSymbolType {
|
|||||||
public static readonly LanguageDefaultType: number = 0;
|
public static readonly LanguageDefaultType: number = 0;
|
||||||
public static readonly Dot = new DecimalSeparator(1, 'Dot', '.');
|
public static readonly Dot = new DecimalSeparator(1, 'Dot', '.');
|
||||||
public static readonly Comma = new DecimalSeparator(2, 'Comma', ',');
|
public static readonly Comma = new DecimalSeparator(2, 'Comma', ',');
|
||||||
public static readonly Space = new DecimalSeparator(3, 'Space', ' ');
|
|
||||||
|
|
||||||
public static readonly Default = DecimalSeparator.Dot;
|
public static readonly Default = DecimalSeparator.Dot;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user