fix: Adjust banking transactions function to include manual credits in payment calculations
Playwright Tests / test (push) Canceled after 0s
Playwright Tests / test (push) Canceled after 0s
This commit is contained in:
@@ -42,7 +42,8 @@ BEGIN
|
|||||||
AND NOT (ISNULL(bt_.[AccountNumberOfPayer],'') IN ('DE52301502000002091478') AND ISNULL(bt_.[SepaRemittanceInformation],'') like ('%umbuchung%'))
|
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_.[AccountNumberOfPayer],'') IN ('DE23501108006161606386') AND ISNULL(bt_.[SepaRemittanceInformation],'') like ('%ebay%'))
|
||||||
AND NOT (ISNULL(bt_.[SepaRemittanceInformation],'') like ('%Umsatzsteuer%'))
|
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 (
|
), bs0manu as (
|
||||||
SELECT bs.[taID], [invid] = spl.[value], [manu] = cast(1 as bit)
|
SELECT bs.[taID], [invid] = spl.[value], [manu] = cast(1 as bit)
|
||||||
|
|||||||
Reference in New Issue
Block a user