Finish Levanplast_MonitoraggioLinee_DescrizionePartitaMag
This commit is contained in:
@@ -102,8 +102,18 @@ PopupSelezionePriorita.prototype.open = function () {
|
||||
},
|
||||
{
|
||||
data: "partita_mag",
|
||||
render(partMag) {
|
||||
return partMag ? partMag : "-";
|
||||
render(partMag, type, row) {
|
||||
let text = "-"
|
||||
|
||||
if (partMag) {
|
||||
text = partMag
|
||||
|
||||
if (row.descrizione) {
|
||||
text += `<br> ${row.descrizione}`
|
||||
}
|
||||
}
|
||||
|
||||
return text;
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
@@ -12,6 +12,7 @@ FROM (SELECT mv.cod_mart,
|
||||
mv.descrizione_estesa,
|
||||
mv.unt_mis,
|
||||
mv.partita_mag,
|
||||
mpm.descrizione,
|
||||
mpm.data_scad,
|
||||
SUM(mv.qta_col) AS qta_col,
|
||||
ma.cod_msfa,
|
||||
@@ -36,16 +37,14 @@ FROM (SELECT mv.cod_mart,
|
||||
AND mv.cod_mart = '[codMart]'
|
||||
AND mv.cod_mdep = '[codMdep]'
|
||||
AND ('[visualizzaCarichiScarichiTeorici]' <> 'S' OR (mc.data_doc IS NULL AND mc.num_doc IS NULL))
|
||||
GROUP BY mv.cod_mart, mv.descrizione_estesa,
|
||||
mv.partita_mag, mv.unt_mis,
|
||||
ma.cod_msfa,
|
||||
mum.flag_dig, mpm.data_scad,
|
||||
do.system_note
|
||||
GROUP BY mv.cod_mart, mv.descrizione_estesa, mv.unt_mis, mv.partita_mag, mpm.descrizione, mpm.data_scad,
|
||||
ma.cod_msfa, mum.flag_dig, do.system_note
|
||||
UNION ALL
|
||||
SELECT ma.cod_mart,
|
||||
ma.descrizione_estesa,
|
||||
ma.unt_mis,
|
||||
mpd.partita_mag,
|
||||
mpm.descrizione,
|
||||
mpm.data_scad,
|
||||
SUM(mpd.qta_esistente) AS qta_col,
|
||||
ma.cod_msfa,
|
||||
@@ -71,8 +70,5 @@ FROM (SELECT mv.cod_mart,
|
||||
AND mpd.cod_mdep = '[codMdep]'
|
||||
AND ma.cod_mart NOT IN (SELECT cod_mart FROM amac_art)
|
||||
AND '[visualizzaCarichiScarichiTeorici]' = 'S'
|
||||
GROUP BY ma.cod_mart, ma.descrizione_estesa,
|
||||
ma.unt_mis, mpd.partita_mag,
|
||||
mpm.data_scad, ma.cod_msfa,
|
||||
mum.flag_dig,
|
||||
do.system_note) t
|
||||
GROUP BY ma.cod_mart, ma.descrizione_estesa, ma.unt_mis, mpd.partita_mag, mpm.descrizione, mpm.data_scad,
|
||||
ma.cod_msfa, mum.flag_dig, do.system_note) t
|
||||
Reference in New Issue
Block a user