added improvements on set proces and minor other improvements
This commit is contained in:
@@ -54,6 +54,7 @@ BEGIN
|
||||
, bt.NameOfPayer
|
||||
, bt.SepaRemittanceInformation
|
||||
, bt.EndToEndReference
|
||||
, [IsManual] = CAST(CASE WHEN bt.[TransactionTypeIdCode] = 'MAN' THEN 1 ELSE 0 END AS bit)
|
||||
, [order] = ROW_NUMBER() OVER (ORDER BY bt.[valuedate] DESC)
|
||||
FROM
|
||||
dbo.[fds__bankingtransactions] as bt
|
||||
@@ -67,7 +68,7 @@ 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 ,'') <> ''
|
||||
AND (ISNULL(bt.AccountNumberOfPayer ,'') <> '' OR bt.[TransactionTypeIdCode] = 'MAN')
|
||||
) AND
|
||||
CASE WHEN inv.[InvId] is null THEN 1
|
||||
WHEN (ISNULL(inv.ispayed,0) = 1 and fds = 1) THEN 0
|
||||
|
||||
Reference in New Issue
Block a user