Merge pull request 'fix: hotfix' (!2918) from hotfix-fixSepaCore into master
Reviewed-on: #2918 Reviewed-by: Javier Segarra <jsegarra@verdnatura.es>
This commit is contained in:
commit
9503e5134d
|
@ -7,8 +7,8 @@ SELECT m.code mandateCode,
|
||||||
sp.name province,
|
sp.name province,
|
||||||
ad.value accountDetailValue
|
ad.value accountDetailValue
|
||||||
FROM client c
|
FROM client c
|
||||||
JOIN mandate m ON m.clientFk = c.id
|
JOIN mandate m ON m.clientFk = c.id
|
||||||
JOIN mandateType mt ON mt.id = m.mandateTypeFk
|
JOIN mandateType mt ON mt.id = m.mandateTypeFk
|
||||||
JOIN supplier s ON s.id = m.companyFk
|
JOIN supplier s ON s.id = m.companyFk
|
||||||
LEFT JOIN country sc ON sc.id = s.countryFk
|
LEFT JOIN country sc ON sc.id = s.countryFk
|
||||||
LEFT JOIN province sp ON sp.id = s.provinceFk
|
LEFT JOIN province sp ON sp.id = s.provinceFk
|
||||||
|
@ -18,7 +18,7 @@ SELECT m.code mandateCode,
|
||||||
WHERE m.companyFk = ?
|
WHERE m.companyFk = ?
|
||||||
AND m.finished IS NULL
|
AND m.finished IS NULL
|
||||||
AND c.id = ?
|
AND c.id = ?
|
||||||
AND mt.name = 'CORE'
|
AND mt.code = 'CORE'
|
||||||
AND adt.description = 'Referencia Remesas'
|
AND adt.description = 'Referencia Remesas'
|
||||||
GROUP BY m.id, ad.value
|
GROUP BY m.id, ad.value
|
||||||
ORDER BY m.created DESC
|
ORDER BY m.created DESC
|
||||||
|
|
Loading…
Reference in New Issue