This commit is contained in:
2026-04-16 14:20:38 +02:00
parent e23735d07e
commit ef7c5d77dc
441 changed files with 1913 additions and 14 deletions
@@ -96,7 +96,7 @@ def nacti_erp_kody(fb_conn, datum_od, limit=None):
FROM recept r
JOIN recept_epodani ep ON r.id_epodani = ep.id
JOIN kar ON r.idpac = kar.idpac
WHERE r.datum >= ? AND ep.erp IS NOT NULL
WHERE r.datum >= ? AND ep.erp IS NOT NULL AND r.STORNO = 'F'
ORDER BY r.datum DESC
"""