Explorar o código

Core: bug when calculating account balance in decimal

Herman Schoenfeld %!s(int64=7) %!d(string=hai) anos
pai
achega
092d93f528
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/core/UAccounts.pas

+ 1 - 1
src/core/UAccounts.pas

@@ -1266,7 +1266,7 @@ end;
 
 class function TAccountComp.FormatMoneyDecimal(Money : Int64) : Single;
 begin
-  RoundTo( Money / 10000, -4);
+  Result := RoundTo( Money / 10000.0, -4);
 end;
 
 class function TAccountComp.GetECInfoTxt(const EC_OpenSSL_NID: Word): AnsiString;