Archives
Trending
Support
Login
clear text
XML
Django
JavaScript
MATLAB
C
C++
C#
Python
SQL
Shell
Bash
Markdown
YAML
JSON
HTML
CSS
PHP
Java
Ruby
Go
Rust
Swift
Kotlin
Arduino
TypeScript
Perl
Autohotkey
Lua
SQF
R
Scala
Haskell
Groovy
Dart
Clojure
VB.NET
Objective-C
PowerShell
Bash
CoffeeScript
Verilog
BEGIN declare v_cant int; declare v_monto DOUBLE; declare v_idgiro int; SET v_monto = 0; -- Obtener el idgiro del puesto select p.idgiro into v_idgiro from p_puesto p where p.idpuesto = vidpuesto; -- Verificar si el puesto tiene el servicio activo select count(*) INTO v_cant from p_puesto_servicio ps where ps.idservicio = 3 and ps.idpuesto = vidpuesto and ps.activo = 1; if v_cant > 0 THEN -- Evaluar idgiro y asignar los valores correspondientes select CASE WHEN v_idgiro IN (2, 6, 9) THEN 13 ELSE 8 END into v_monto from g_recibo_cargos gc where idconcepto = 7 and periodo = vperiodo; end if; RETURN v_monto; END;
Mark as private (unlisted)
for 30 minutes
for 6 hours
for 1 day
for 1 week
for 1 month
for 1 year
everlasting (like CCCP)