From 8632ddac4e0b92d44b0f97bc03b90d25cf52a2b3 Mon Sep 17 00:00:00 2001 From: david Date: Tue, 6 Oct 2009 12:14:56 +0000 Subject: [PATCH] =?UTF-8?q?Ticket=20#50=20->=20Bot=C3=B3n=20'Generar=20con?= =?UTF-8?q?trato'=20aparece=20activo=20cuando=20no=20tengo=20nada=20selecc?= =?UTF-8?q?ionado=20en=20el=20grid?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://192.168.0.254/svn/Proyectos.Acana_FactuGES2/trunk@440 f4e31baf-9722-1c47-927c-6f952f962d4b --- .../Views/uEditorPresupuestosCliente.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Modulos/Presupuestos de cliente/Views/uEditorPresupuestosCliente.pas b/Source/Modulos/Presupuestos de cliente/Views/uEditorPresupuestosCliente.pas index 3be514ff..52f898d0 100644 --- a/Source/Modulos/Presupuestos de cliente/Views/uEditorPresupuestosCliente.pas +++ b/Source/Modulos/Presupuestos de cliente/Views/uEditorPresupuestosCliente.pas @@ -281,7 +281,7 @@ procedure TfEditorPresupuestosCliente.actGenerarContratoUpdate(Sender: TObject); begin inherited; (Sender as TAction).Enabled := HayDatos - and not (ViewGrid.NumSeleccionados > 1) + and (ViewGrid.NumSeleccionados = 1) and (FPresupuestos.REF_CONTRATO = '') and ViewGrid.esSeleccionCeldaDatos and (FPresupuestos.SITUACION = SITUACION_PRESUPUESTO_ACEPTADO);