Se redondean a dos cifras la suma acumulada de los detalles para soluciónar el descuadre de centimos cuando son 4 cifras
git-svn-id: https://192.168.0.254/svn/Proyectos.LuisLeon_FactuGES2/trunk@261 b2cfbe5a-eba1-4a0c-8b32-7feea0a119f2
This commit is contained in:
parent
85fc7faa6c
commit
f087881450
@ -103,7 +103,7 @@ implementation
|
||||
{ TControllerDetallesBase }
|
||||
|
||||
uses
|
||||
cxControls, SysUtils, DB, uDAInterfaces, Dialogs;
|
||||
cxControls, SysUtils, DB, uDAInterfaces, Dialogs, uNumUtils;
|
||||
|
||||
|
||||
procedure TControllerDetallesBase.ActualizarTotales(ADataTable: IDAStronglyTypedDataTable);
|
||||
@ -291,9 +291,11 @@ procedure TControllerDetallesBase.CalculoDetalleConcepto(DataTable: TDADataTable
|
||||
begin
|
||||
with DataTable do
|
||||
begin
|
||||
ImporteAcumulado := ImporteAcumulado + FieldByName(CAMPO_IMPORTE_TOTAL).AsFloat;
|
||||
ImporteAcumulado := ImporteAcumulado + RoundCurrency(FieldByName(CAMPO_IMPORTE_TOTAL).AsCurrency);
|
||||
// ImporteAcumulado := ImporteAcumulado + FieldByName(CAMPO_IMPORTE_TOTAL).AsFloat;
|
||||
if not Opcional then
|
||||
ImporteTotal := ImporteTotal + FieldByName(CAMPO_IMPORTE_TOTAL).AsFloat;
|
||||
ImporteTotal := ImporteTotal + RoundCurrency(FieldByName(CAMPO_IMPORTE_TOTAL).AsCurrency);
|
||||
// ImporteTotal := ImporteTotal + FieldByName(CAMPO_IMPORTE_TOTAL).AsFloat;
|
||||
end;
|
||||
end;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user