This commit is contained in:
parent
d52dc788c8
commit
afcb590a9e
|
@ -49,8 +49,8 @@ BEGIN
|
|||
b.price3 = @t3:= IF(r.rate3 = 0, b.buyingValue,ROUND((b.buyingValue + @CF + @EF + @PF) / ((100 - r.rate3 - it.promo ) /100) ,2)), -- He añadido que el coste sea igual a tarifa3 si t3 = 0
|
||||
b.price2 = @t2:= round(@t3 * (1 + ((r.rate2 - r.rate3)/100)),2),
|
||||
b.price2 = @t2:= IF(@t2 <= @t3,@t3 , @t2)
|
||||
WHERE t.landed = vLanded
|
||||
AND t.warehouseInFk = vWarehouseFk;
|
||||
WHERE tr.landed = vLanded
|
||||
AND tr.warehouseInFk = vWarehouseFk;
|
||||
|
||||
DROP TEMPORARY TABLE tmp.rate;
|
||||
END LOOP;
|
||||
|
|
Loading…
Reference in New Issue