Arreglo de caso producido en un presupuesto cuya cantidad es 0 y tiene descuento.
git-svn-id: https://192.168.0.254/svn/Proyectos.Tecsitel_FactuGES2/trunk@1027 0c75b7a4-871f-7646-8a2f-f78d34cc349f
This commit is contained in:
parent
d4f7c2176d
commit
b6f93816ab
@ -3817,6 +3817,7 @@ for select pre.id, pre.id_presupuesto, pre.posicion, pre.tipo_detalle,
|
||||
F_RTFTOTEXT(F_RTFTOTEXT(pre.CONCEPTO)) as CONCEPTO,
|
||||
pre.cantidad, pre.unidad_medida,
|
||||
case
|
||||
when (pre.cantidad = 0) then 0
|
||||
when (pre.descuento <> 0) then (pre.importe_total / pre.cantidad)
|
||||
else pre.importe_unidad
|
||||
end as importe_unidad,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user