From beff383d8d7389946ebe8f43a82df833c203f502 Mon Sep 17 00:00:00 2001 From: david Date: Thu, 18 Sep 2008 15:59:29 +0000 Subject: [PATCH] =?UTF-8?q?Presupuestos=20de=20cliente=20->=20En=20el=20in?= =?UTF-8?q?forme,=20numerar=20los=20cap=C3=ADtulos=20en=20el=20resumen.?= 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.Tecsitel_FactuGES2/trunk@596 0c75b7a4-871f-7646-8a2f-f78d34cc349f --- Database/scripts/factuges.sql | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Database/scripts/factuges.sql b/Database/scripts/factuges.sql index da3f6797..0d1c8cd9 100644 --- a/Database/scripts/factuges.sql +++ b/Database/scripts/factuges.sql @@ -3599,6 +3599,7 @@ begin EXISTE = 1; end + num_capitulos = 1; if (existe = 1) then begin contador = 0; @@ -3611,12 +3612,13 @@ begin do begin contador = contador + 1; + num_capitulos = num_capitulos + 1; if ((tipo_detalle <> 'Concepto') or (contador = num_filas)) then begin total_acumulado = total_acumulado + importe_total; importe_total = total_acumulado; tipo_detalle = 'Titulo'; - concepto = 'General'; + concepto = 'CAPÍTULO ' || num_capitulos ||'. General'; visible = 1; ID = -1; posicion = -1; @@ -3649,8 +3651,9 @@ begin end if (tipo_detalle = 'Subtotal') then begin - concepto = concepto_capitulo; + concepto = 'CAPÍTULO ' || num_capitulos || '. ' || concepto_capitulo; tipo_detalle = tipo; + num_capitulos = num_capitulos + 1; suspend; end end