feat(salix): refs #7648 #7648 add new fields
gitea/salix/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Javier Segarra 2024-07-01 14:07:46 +02:00
parent f47197cd80
commit f0326860ba
1 changed files with 6 additions and 1 deletions

View File

@ -177,10 +177,15 @@ module.exports = Self => {
s.name AS supplierName, s.name AS supplierName,
s.nickname AS supplierAlias, s.nickname AS supplierAlias,
co.code AS companyCode, co.code AS companyCode,
cu.code AS currencyCode cu.code AS currencyCode,
t.shipped AS shipped,
t.landed AS landed,
t.warehouseInFk AS warehouseId,
w.name AS warehouseName
FROM vn.entry e FROM vn.entry e
JOIN vn.supplier s ON s.id = e.supplierFk JOIN vn.supplier s ON s.id = e.supplierFk
JOIN vn.travel t ON t.id = e.travelFk JOIN vn.travel t ON t.id = e.travelFk
JOIN vn.warehouse w ON w.id = t.warehouseInFk
JOIN vn.company co ON co.id = e.companyFk JOIN vn.company co ON co.id = e.companyFk
JOIN vn.currency cu ON cu.id = e.currencyFk` JOIN vn.currency cu ON cu.id = e.currencyFk`
); );