Merge branch 'master' into develop
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:
@@ -53,6 +53,6 @@ public class GiacenzaController {
|
||||
@RequestParam(CommonConstants.PROFILE_DB) String configuration,
|
||||
@RequestParam String codMdep) throws Exception {
|
||||
|
||||
return ServiceRestResponse.createPositiveResponse(giacenzaService.retrieveGiacenza(codMdep));
|
||||
return ServiceRestResponse.createPositiveResponse(giacenzaService.retrieveGiacenza(codMdep, true));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -552,7 +552,7 @@ public class PvmServiceSave {
|
||||
|
||||
List<GiacenzaDTO> giacenzaPv = new ArrayList<>();
|
||||
if (saveGiacenza) {
|
||||
giacenzaPv = giacenzaService.retrieveGiacenza(codMdep);
|
||||
giacenzaPv = giacenzaService.retrieveGiacenza(codMdep, false);
|
||||
}
|
||||
|
||||
MtbColt collo = new MtbColt();
|
||||
|
||||
@@ -513,7 +513,7 @@ public class GiacenzaService {
|
||||
}
|
||||
}
|
||||
|
||||
public List<GiacenzaDTO> retrieveGiacenza(String codMdep) throws Exception {
|
||||
public List<GiacenzaDTO> retrieveGiacenza(String codMdep, boolean readOrdini) throws Exception {
|
||||
|
||||
String sql = Query.format(
|
||||
"SELECT cod_mdep FROM stb_gest_setup_depo WHERE gest_name = %s AND section = %s AND key_section = %S AND value = %S",
|
||||
@@ -677,6 +677,8 @@ public class GiacenzaService {
|
||||
String listiniAcquisto = setupGest.getSetup("DATI_AZIENDA", "GIACENZA_DA_INV", "LISTINI_ACQUISTO");
|
||||
List<String> listini = Arrays.asList(listiniAcquisto.split("\\|"));
|
||||
|
||||
if (readOrdini ) {
|
||||
|
||||
sql = "WITH incoming_stock_documenti AS (\n" +
|
||||
"/*\n" +
|
||||
"Estrazione dei documenti (bolle web) di merce consegnata\n" +
|
||||
@@ -789,6 +791,7 @@ public class GiacenzaService {
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
return listGiacenza;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user