Sistemata esportazione lotti per gastronomia
All checks were successful
IntegryManagementSystem_Multi/pipeline/head This commit looks good
All checks were successful
IntegryManagementSystem_Multi/pipeline/head This commit looks good
This commit is contained in:
@@ -827,8 +827,15 @@ public class VariazioniPvService {
|
||||
break;
|
||||
case TRACCIABILITA:
|
||||
queryAssortimento =
|
||||
"WITH doc AS (SELECT wdtb_doct.data_reg,\n" +
|
||||
" wdtb_docr.cod_mart,\n" +
|
||||
"WITH componenti AS (SELECT cod_mart, cod_mart AS cod_comp\n" +
|
||||
" FROM mtb_aart\n" +
|
||||
" WHERE articolo_composto = 'N'\n" +
|
||||
" UNION ALL\n" +
|
||||
" SELECT mtb_comp.cod_mart, cod_comp\n" +
|
||||
" FROM mtb_comp\n" +
|
||||
" INNER JOIN mtb_aart ON mtb_comp.cod_mart = mtb_aart.cod_mart AND articolo_composto = 'S'), " +
|
||||
" doc AS (SELECT wdtb_doct.data_reg,\n" +
|
||||
" componenti.cod_comp as cod_mart,\n" +
|
||||
" wdtb_docr.partita_mag,\n" +
|
||||
" wdtb_doct.cod_mdep,\n" +
|
||||
" wdtb_doct.data_ins\n" +
|
||||
@@ -838,14 +845,16 @@ public class VariazioniPvService {
|
||||
" wdtb_doct.data_doc = wdtb_docr.data_doc AND\n" +
|
||||
" wdtb_doct.ser_doc = wdtb_docr.ser_doc AND\n" +
|
||||
" wdtb_doct.num_doc = wdtb_docr.num_doc\n" +
|
||||
" INNER JOIN componenti on wdtb_docr.cod_mart = componenti.cod_mart\n" +
|
||||
" UNION ALL\n" +
|
||||
" SELECT dtb_doct.data_reg, dtb_docr.cod_mart, dtb_docr.partita_mag, dtb_doct.cod_mdep, dtb_doct.data_ins\n" +
|
||||
" SELECT dtb_doct.data_reg, componenti.cod_comp as cod_mart, dtb_docr.partita_mag, dtb_doct.cod_mdep, dtb_doct.data_ins\n" +
|
||||
" FROM dtb_doct\n" +
|
||||
" INNER JOIN dtb_docr\n" +
|
||||
" ON dtb_doct.cod_anag = dtb_docr.cod_anag AND dtb_doct.cod_dtip = dtb_docr.cod_dtip AND\n" +
|
||||
" dtb_doct.data_doc = dtb_docr.data_doc AND dtb_doct.ser_doc = dtb_docr.ser_doc AND\n" +
|
||||
" dtb_doct.num_doc = dtb_docr.num_doc\n" +
|
||||
" INNER JOIN dtb_tipi ON dtb_doct.cod_dtip = dtb_docr.cod_dtip\n" +
|
||||
" INNER JOIN componenti on dtb_docr.cod_mart = componenti.cod_mart\n" +
|
||||
" WHERE dtb_tipi.gestione = 'A' AND dtb_tipi.tipo_emissione = 'DIRETTA' AND dtb_tipi.segno_qta_car = 1 and flag_chk_tracciabilita = 1),\n" +
|
||||
"tmp_assortimento as (" +
|
||||
"SELECT mtb_depo.cod_vlis,\n" +
|
||||
|
||||
Reference in New Issue
Block a user