7691-testToMaster #2703
|
@ -139,7 +139,7 @@ module.exports = Self => {
|
|||
IF(pkg.volume, pkg.volume, pkg.width * pkg.depth * pkg.height) / 1000000
|
||||
) as DECIMAL(10,0)
|
||||
) as volumeKg,
|
||||
ROUND(GREATEST(
|
||||
GREATEST(
|
||||
CAST(SUM(b.weight * b.stickers) AS INT),
|
||||
CAST(
|
||||
SUM(vc.aerealVolumetricDensity *
|
||||
|
@ -150,7 +150,7 @@ module.exports = Self => {
|
|||
) / 1000000
|
||||
) AS INT
|
||||
)
|
||||
) / t.kg * 100, 0) percentageKg
|
||||
/ t.kg * 100, 0) percentageKg
|
||||
FROM travel t
|
||||
LEFT JOIN supplier s ON s.id = t.cargoSupplierFk
|
||||
LEFT JOIN entry e ON e.travelFk = t.id
|
||||
|
|
Loading…
Reference in New Issue