Arreglo redondeo en recibos y sacar informacion hit
git-svn-id: https://192.168.0.254/svn/Proyectos.Cullere_FactuGES2/trunk@12 e61cf4a9-ab77-6246-bebb-cff159b4cb7d
This commit is contained in:
parent
81a1881f35
commit
6519e97ddb
@ -110,7 +110,10 @@ var
|
||||
begin
|
||||
Cadena := '';
|
||||
Entero := Trunc(Cifra);
|
||||
Decimal := Trunc(((Cifra - Entero) * 100));
|
||||
|
||||
//Se quita el trunc ya que falla el redondeo y hay desfase de 1 centimo
|
||||
// Decimal := Trunc(((Cifra - Entero) * 100));
|
||||
Decimal := Round((Cifra - Entero) * 100);
|
||||
|
||||
if (Decimal > 0) then
|
||||
Cadena := ' CON ' + IntToLetras(Decimal) + ' CÉNTIMOS';
|
||||
|
||||
@ -201,7 +201,8 @@ begin
|
||||
if (ARecord.DisplayTexts[Sender.Index] <> 'Sin incidencias') then
|
||||
begin
|
||||
AIsHintMultiLine := True;
|
||||
AHintText := ARecord.Values[cxGridViewINCIDENCIAS.Index]
|
||||
if not VarIsNull(ARecord.Values[cxGridViewINCIDENCIAS.Index]) then
|
||||
AHintText := ARecord.Values[cxGridViewINCIDENCIAS.Index];
|
||||
end;
|
||||
end;
|
||||
|
||||
|
||||
@ -277,7 +277,8 @@ begin
|
||||
if (ARecord.DisplayTexts[Sender.Index] <> 'Sin incidencias') then
|
||||
begin
|
||||
AIsHintMultiLine := True;
|
||||
AHintText := ARecord.Values[cxGridViewINCIDENCIAS.Index]
|
||||
if not VarIsNull(ARecord.Values[cxGridViewINCIDENCIAS.Index]) then
|
||||
AHintText := ARecord.Values[cxGridViewINCIDENCIAS.Index];
|
||||
end;
|
||||
end;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user