Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -46,7 +46,7 @@ func GetStatements(ctx context.Context, params models.StatementParams) ([]models
|
||||
(
|
||||
(b.CurrAccTypeCode = 3 AND EXISTS (
|
||||
SELECT 1
|
||||
FROM CustomerAttributesFilter PF WITH (NOLOCK)
|
||||
FROM CustomerAttributesFilter PF
|
||||
WHERE (PF.CurrAccCode = b.CurrAccCode OR LEFT(PF.CurrAccCode, 8) = LEFT(b.CurrAccCode, 8))
|
||||
AND %s
|
||||
))
|
||||
@@ -57,7 +57,7 @@ func GetStatements(ctx context.Context, params models.StatementParams) ([]models
|
||||
SELECT
|
||||
CurrAccCode,
|
||||
VendorAtt01 = MAX(CASE WHEN AttributeTypeCode = 1 THEN AttributeCode END)
|
||||
FROM prCurrAccAttribute WITH (NOLOCK)
|
||||
FROM prCurrAccAttribute
|
||||
WHERE CurrAccTypeCode = 1
|
||||
GROUP BY CurrAccCode
|
||||
) VF
|
||||
|
||||
Reference in New Issue
Block a user