fix: Adjust banking transactions function to include manual credits in payment calculations
Playwright Tests / test (push) Canceled after 0s

This commit is contained in:
Stefan
2026-09-18 12:33:47 +02:00
parent 9569c1b65e
commit e628454030
@@ -42,7 +42,8 @@ BEGIN
AND NOT (ISNULL(bt_.[AccountNumberOfPayer],'') IN ('DE52301502000002091478') AND ISNULL(bt_.[SepaRemittanceInformation],'') like ('%umbuchung%'))
AND NOT (ISNULL(bt_.[AccountNumberOfPayer],'') IN ('DE23501108006161606386') AND ISNULL(bt_.[SepaRemittanceInformation],'') like ('%ebay%'))
AND NOT (ISNULL(bt_.[SepaRemittanceInformation],'') like ('%Umsatzsteuer%'))
AND ISNULL(bt_.AccountNumberOfPayer,'') <> ''
-- manual credits (fds__setBankingtransaction_manual, account 999) carry no payer IBAN but must count as payments
AND (ISNULL(bt_.AccountNumberOfPayer,'') <> '' OR bt_.[TransactionTypeIdCode] = 'MAN')
)
), bs0manu as (
SELECT bs.[taID], [invid] = spl.[value], [manu] = cast(1 as bit)