Merge remote-tracking branch 'origin/master'

This commit is contained in:
M_Kececi
2026-06-24 19:05:26 +03:00
parent aca2cf5d02
commit 62bf272f17
22 changed files with 88 additions and 88 deletions

View File

@@ -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