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);
|
procedure TfEditorComision.OnComisionChanged(Sender: TObject);
|
||||||
begin
|
begin
|
||||||
inherited;
|
inherited;
|
||||||
FImporteTotalFacturas := frViewFacturasComision1.cxGridView.DataController.Summary.FooterSummaryValues[1];
|
|
||||||
|
|
||||||
|
FImporteTotalFacturas := frViewFacturasComision1.cxGridView.DataController.Summary.FooterSummaryValues[1];
|
||||||
//Recalculamos comisiones
|
//Recalculamos comisiones
|
||||||
if Assigned(FController)
|
if Assigned(FController)
|
||||||
and (not VarIsNull(FImporteTotalFacturas))
|
and (not VarIsNull(FImporteTotalFacturas))
|
||||||
and (FImporteTotalFacturas > 0) then
|
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;
|
end;
|
||||||
|
|
||||||
procedure TfEditorComision.OnFacturasComisionAfterSummary(ASender: TcxDataSummary);
|
procedure TfEditorComision.OnFacturasComisionAfterSummary(ASender: TcxDataSummary);
|
||||||
|
|||||||
@ -60,8 +60,8 @@ inherited frViewVendedoresComision: TfrViewVendedoresComision
|
|||||||
Caption = 'Comisi'#243'n'
|
Caption = 'Comisi'#243'n'
|
||||||
DataBinding.FieldName = 'COMISION'
|
DataBinding.FieldName = 'COMISION'
|
||||||
PropertiesClassName = 'TcxSpinEditProperties'
|
PropertiesClassName = 'TcxSpinEditProperties'
|
||||||
Properties.DisplayFormat = ',0.00 %;-,0.00 %'
|
Properties.AssignedValues.DisplayFormat = True
|
||||||
Properties.EditFormat = ',0.00 %;-,0.00 %'
|
Properties.AssignedValues.EditFormat = True
|
||||||
Properties.ImmediatePost = True
|
Properties.ImmediatePost = True
|
||||||
Properties.MaxValue = 100.000000000000000000
|
Properties.MaxValue = 100.000000000000000000
|
||||||
HeaderAlignmentHorz = taRightJustify
|
HeaderAlignmentHorz = taRightJustify
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user