Обновить dags/pogasheniya.py

This commit is contained in:
bn_user 2025-11-13 21:16:23 +00:00
parent 8e73504043
commit 999889f418
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ def pogasheniya(**kwargs):
, osv.date_end , osv.date_end
FROM oborotno_salbdovaya_vedomostb osv FROM oborotno_salbdovaya_vedomostb osv
LEFT JOIN pogasheniya p on p.uid_dogovor = osv.uid_subkonto2 and p.schet = osv.schet LEFT JOIN pogasheniya p on p.uid_dogovor = osv.uid_subkonto2 and p.schet = osv.schet
WHERE p.uid_dogovor is null and osv.schet::text like '%03%'::text OR osv.schet::text like '%01%'::text WHERE p.uid_dogovor is null and (osv.schet::text like '%03%'::text OR osv.schet::text like '%01%'::text)
UNION ALL UNION ALL
SELECT SELECT
'76.07.1' schet '76.07.1' schet