Merge pull request 'fix: hotfix 7366 6943' (!3360) from hotfix-7366-6943CreditBillingDataAWB into master
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
Reviewed-on: #3360 Reviewed-by: Alex Moreno <alexm@verdnatura.es>
This commit is contained in:
commit
d95482ea54
|
@ -19,6 +19,9 @@
|
||||||
},
|
},
|
||||||
"created": {
|
"created": {
|
||||||
"type": "date"
|
"type": "date"
|
||||||
|
},
|
||||||
|
"workerFk": {
|
||||||
|
"type": "number"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"relations": {
|
"relations": {
|
||||||
|
@ -33,4 +36,4 @@
|
||||||
"foreignKey": "workerFk"
|
"foreignKey": "workerFk"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -91,6 +91,11 @@ module.exports = Self => {
|
||||||
arg: 'landed',
|
arg: 'landed',
|
||||||
type: 'date',
|
type: 'date',
|
||||||
description: 'The landed date'
|
description: 'The landed date'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
arg: 'awbFk',
|
||||||
|
type: 'number',
|
||||||
|
description: 'The awbFk id'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
returns: {
|
returns: {
|
||||||
|
@ -168,7 +173,9 @@ module.exports = Self => {
|
||||||
t.totalEntries,
|
t.totalEntries,
|
||||||
t.isRaid,
|
t.isRaid,
|
||||||
t.daysInForward,
|
t.daysInForward,
|
||||||
|
t.awbFk,
|
||||||
am.name agencyModeName,
|
am.name agencyModeName,
|
||||||
|
a.code awbCode,
|
||||||
win.name warehouseInName,
|
win.name warehouseInName,
|
||||||
wout.name warehouseOutName,
|
wout.name warehouseOutName,
|
||||||
cnt.code continent
|
cnt.code continent
|
||||||
|
@ -176,6 +183,7 @@ module.exports = Self => {
|
||||||
JOIN vn.agencyMode am ON am.id = t.agencyModeFk
|
JOIN vn.agencyMode am ON am.id = t.agencyModeFk
|
||||||
JOIN vn.warehouse win ON win.id = t.warehouseInFk
|
JOIN vn.warehouse win ON win.id = t.warehouseInFk
|
||||||
JOIN vn.warehouse wout ON wout.id = t.warehouseOutFk
|
JOIN vn.warehouse wout ON wout.id = t.warehouseOutFk
|
||||||
|
JOIN vn.awb a ON a.id = t.awbFk
|
||||||
JOIN warehouse wo ON wo.id = t.warehouseOutFk
|
JOIN warehouse wo ON wo.id = t.warehouseOutFk
|
||||||
JOIN country c ON c.id = wo.countryFk
|
JOIN country c ON c.id = wo.countryFk
|
||||||
LEFT JOIN continent cnt ON cnt.id = c.continentFk) AS t`
|
LEFT JOIN continent cnt ON cnt.id = c.continentFk) AS t`
|
||||||
|
|
Loading…
Reference in New Issue