fix filter sql

This commit is contained in:
Carlos Satorres 2024-06-12 14:01:38 +02:00
parent 0839cd1c7c
commit c44a65abb9
1 changed files with 3 additions and 1 deletions

View File

@ -72,7 +72,9 @@ module.exports = Self => {
cn.name country,
c.countryFk,
pm.name payMethod,
dp.name
dp.name departmentName,
dp.id departmentFk,
c.businessTypeFk = 'worker' isWorker
FROM vn.defaulter d
JOIN vn.client c ON c.id = d.clientFk
JOIN vn.country cn ON cn.id = c.countryFk