Fix quantità in retrieveFabbisogno

This commit is contained in:
2024-03-07 11:54:47 +01:00
parent 388ff5c36e
commit ed5817d6e2

View File

@@ -18,7 +18,7 @@ public class WMSApprovvigionamentoLineeService {
public List<WMSApprovvigionamentoLineeDTO> retrieveFabbisogno(String numOrd, String codMdep) throws Exception {
String sql = "declare @codMdep varchar(5)\n" +
"set @codMdep = '34';\n" +
"set @codMdep = " + UtilityDB.valueToString(codMdep) + ";\n" +
" \n" +
" \n" +
"WITH withdraw_mtb_colr AS (SELECT cod_mart,\n" +
@@ -72,7 +72,7 @@ public class WMSApprovvigionamentoLineeService {
" INNER JOIN mtb_aart ON grouped_ord.cod_mart = mtb_aart.cod_mart\n" +
" GROUP BY grouped_ord.cod_mart, mtb_aart.unt_mis, grouped_ord.cod_jfas)\t\t\t\t\n" +
"\t\t\t\t ,\n" +
" ord_without_positioned_mtb_colt AS (SELECT tmp_ord.cod_mart,\n" +
" ord_without_positioned_mtb_colt AS (SELECT DISTINCT tmp_ord.cod_mart,\n" +
" tmp_ord.cod_jfas,\n" +
" ISNULL(custom_mtb_colr_on_linea.posizione, tmp_ord.cod_jfas) AS posizione,\n" +
" unt_mis,\n" +