first commit
verify / verify (push) Canceled after 0s

This commit is contained in:
2026-10-23 15:32:43 +02:00
commit 9ee0258672
35 changed files with 2580 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
-- Consulta de solo lectura: no cambia importes, tarifas ni marcas de pago.
-- Revisar la factura o el registro original antes de completar estos datos.
SELECT id, id_case, id_created, created, description, hours, rate, amount, payment,
CASE WHEN payment IS TRUE THEN 'Requiere coste historico antes de recalcular'
ELSE 'Pendiente: bloquea el reparto desde su posicion' END AS review_reason
FROM activities
WHERE id_paytype=1 AND id_status=5 AND amount IS NULL
AND (hours IS NULL OR rate IS NULL)
ORDER BY id_case, created, id;