Merge pull request 'feat: refs #7237 company_getSuppliersDebt' (!2336) from 7237-company_getSuppliersDebt into master
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
Reviewed-on: #2336 Reviewed-by: Carlos Andrés <carlosap@verdnatura.es>
This commit is contained in:
commit
8be8dc8f74
|
@ -188,7 +188,7 @@ BEGIN
|
||||||
FROM tPendingDuedates vp
|
FROM tPendingDuedates vp
|
||||||
LEFT JOIN supplier s ON s.id = vp.supplierFk
|
LEFT JOIN supplier s ON s.id = vp.supplierFk
|
||||||
LEFT JOIN client c ON c.fi = s.nif
|
LEFT JOIN client c ON c.fi = s.nif
|
||||||
JOIN clientRisk cr ON cr.clientFk = c.id
|
LEFT JOIN clientRisk cr ON cr.clientFk = c.id
|
||||||
AND cr.companyFk = vp.companyFk
|
AND cr.companyFk = vp.companyFk
|
||||||
LEFT JOIN supplierAccount sa ON sa.supplierFk = s.id
|
LEFT JOIN supplierAccount sa ON sa.supplierFk = s.id
|
||||||
LEFT JOIN bankEntity be ON be.id = sa.bankEntityFk
|
LEFT JOIN bankEntity be ON be.id = sa.bankEntityFk
|
||||||
|
|
Loading…
Reference in New Issue