Error de componente al cambiar el valor del campo comision en la lista de vendedores
git-svn-id: https://192.168.0.254/svn/Proyectos.Acana_FactuGES2/trunk@599 f4e31baf-9722-1c47-927c-6f952f962d4b
This commit is contained in:
parent
64028da66b
commit
f4e7bb4936
File diff suppressed because it is too large
Load Diff
@ -261,13 +261,18 @@ end;
|
||||
procedure TfEditorComision.OnComisionChanged(Sender: TObject);
|
||||
begin
|
||||
inherited;
|
||||
FImporteTotalFacturas := frViewFacturasComision1.cxGridView.DataController.Summary.FooterSummaryValues[1];
|
||||
|
||||
FImporteTotalFacturas := frViewFacturasComision1.cxGridView.DataController.Summary.FooterSummaryValues[1];
|
||||
//Recalculamos comisiones
|
||||
if Assigned(FController)
|
||||
and (not VarIsNull(FImporteTotalFacturas))
|
||||
and (FImporteTotalFacturas > 0) then
|
||||
FController.RecalcularComisiones(Comision, FImporteTotalFacturas);
|
||||
begin
|
||||
if Comision.Vendedores.DataTable.Editing then
|
||||
Comision.Vendedores.post; //fallo componente no se enteraría del cambio
|
||||
|
||||
FController.RecalcularComisiones(Comision, FImporteTotalFacturas);
|
||||
end;
|
||||
end;
|
||||
|
||||
procedure TfEditorComision.OnFacturasComisionAfterSummary(ASender: TcxDataSummary);
|
||||
|
||||
@ -60,8 +60,8 @@ inherited frViewVendedoresComision: TfrViewVendedoresComision
|
||||
Caption = 'Comisi'#243'n'
|
||||
DataBinding.FieldName = 'COMISION'
|
||||
PropertiesClassName = 'TcxSpinEditProperties'
|
||||
Properties.DisplayFormat = ',0.00 %;-,0.00 %'
|
||||
Properties.EditFormat = ',0.00 %;-,0.00 %'
|
||||
Properties.AssignedValues.DisplayFormat = True
|
||||
Properties.AssignedValues.EditFormat = True
|
||||
Properties.ImmediatePost = True
|
||||
Properties.MaxValue = 100.000000000000000000
|
||||
HeaderAlignmentHorz = taRightJustify
|
||||
|
||||
Loading…
Reference in New Issue
Block a user