From 6a6749ba04475a1d8391fb7bd51f13115956388a Mon Sep 17 00:00:00 2001 From: roberto Date: Tue, 11 Nov 2008 18:58:00 +0000 Subject: [PATCH] Se adaptan los presupuestos para que puedan meter bonificaciones como en el preograma antiguo. git-svn-id: https://192.168.0.254/svn/Proyectos.Tecsitel_FactuGES2/trunk@763 0c75b7a4-871f-7646-8a2f-f78d34cc349f --- Database/scripts/factuges.sql | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Database/scripts/factuges.sql b/Database/scripts/factuges.sql index 8a90eddc..94b9535c 100644 --- a/Database/scripts/factuges.sql +++ b/Database/scripts/factuges.sql @@ -3839,6 +3839,18 @@ begin suspend; end end + + /* Tratar la bonificaciones */ + for select id, DESCRIPCION_BONIFICACION as concepto, -1* IMPORTE_BONIFICACION as importe_total, 1 + from presupuestos_cliente + where id = :AID + into :ID, :CONCEPTO, :IMPORTE_TOTAL, :VISIBLE + do + begin + contador = contador + 1; + concepto_capitulo = concepto; + suspend; + end end ^