diff --git a/Database/scripts/factuges.sql b/Database/scripts/factuges.sql index 70a07214..ed107ec7 100644 --- a/Database/scripts/factuges.sql +++ b/Database/scripts/factuges.sql @@ -3969,7 +3969,7 @@ begin begin contador = 0; /* Existen conceptos sin capitulo */ - for select tipo_detalle, importe_total, coalesce(visible, 1) + for select tipo_detalle, coalesce(importe_total,0), coalesce(visible, 1) from presupuestos_cliente_detalles where id_presupuesto = :AID order by id_presupuesto, posicion @@ -4000,7 +4000,7 @@ begin /* Tratar el resto de las filas */ for select id, id_presupuesto, posicion, tipo_detalle, - F_RTFTOTEXT(concepto) as concepto, importe_total, coalesce(visible, 1) + F_RTFTOTEXT(concepto) as concepto, coalesce(importe_total,0), coalesce(visible, 1) from presupuestos_cliente_detalles where id_presupuesto = :AID and tipo_detalle in ('Titulo', 'Titulo opcional', 'Subtotal')