Finish DatiDocSpostaUL
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:
@@ -3,6 +3,7 @@ package it.integry.ems.retail.wms.generic.dto;
|
||||
import it.integry.ems_model.entity.MtbColt;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
public class SpostaUlRequestDTO {
|
||||
@@ -10,6 +11,9 @@ public class SpostaUlRequestDTO {
|
||||
private String codMdep;
|
||||
private String posizione;
|
||||
private String annotazioni;
|
||||
private Date dataTrasf;
|
||||
private Integer numTrasf;
|
||||
private String codVvet;
|
||||
private boolean createDocAutomatically = true;
|
||||
private List<MtbColt> mtbColtsToMove = new ArrayList<>();
|
||||
|
||||
@@ -49,6 +53,33 @@ public class SpostaUlRequestDTO {
|
||||
return this;
|
||||
}
|
||||
|
||||
public Date getDataTrasf() {
|
||||
return dataTrasf;
|
||||
}
|
||||
|
||||
public SpostaUlRequestDTO setDataTrasf(Date dataTrasf) {
|
||||
this.dataTrasf = dataTrasf;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Integer getNumTrasf() {
|
||||
return numTrasf;
|
||||
}
|
||||
|
||||
public SpostaUlRequestDTO setNumTrasf(Integer numTrasf) {
|
||||
this.numTrasf = numTrasf;
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getCodVvet() {
|
||||
return codVvet;
|
||||
}
|
||||
|
||||
public SpostaUlRequestDTO setCodVvet(String codVvet) {
|
||||
this.codVvet = codVvet;
|
||||
return this;
|
||||
}
|
||||
|
||||
public boolean isCreateDocAutomatically() {
|
||||
return createDocAutomatically;
|
||||
}
|
||||
|
||||
@@ -40,6 +40,7 @@ import it.integry.ems_model.base.EntityBase;
|
||||
import it.integry.ems_model.config.EmsRestConstants;
|
||||
import it.integry.ems_model.db.ResultSetMapper;
|
||||
import it.integry.ems_model.entity.*;
|
||||
import it.integry.ems_model.exception.GestSetupNotFoundException;
|
||||
import it.integry.ems_model.service.SetupGest;
|
||||
import it.integry.ems_model.types.OperationType;
|
||||
import it.integry.ems_model.types.SetupGestKeySection;
|
||||
@@ -2060,7 +2061,7 @@ public class WMSGenericService {
|
||||
String codDtipToUse = setupGest.getSetupDepo(multiDBTransactionManager.getPrimaryConnection(), "PICKING", "LOGISTICA", "COD_DTIP_DOC_TRASF_INTERNI", requestDTO.getCodMdep());
|
||||
|
||||
if (UtilityString.isNullOrEmpty(codDtipToUse))
|
||||
throw new Exception("La configurazione della setup gest non è completa per gestire gli spostamenti tra depositi");
|
||||
throw new GestSetupNotFoundException("PICKING", "LOGISTICA", "COD_DTIP_DOC_TRASF_INTERNI");
|
||||
|
||||
String codAnag = mtbDepo.getCodAnag();
|
||||
String codVdes = mtbDepo.getCodVdes();
|
||||
@@ -2092,6 +2093,9 @@ public class WMSGenericService {
|
||||
.setCodMdep(codMdepDoc)
|
||||
.setCodVdes(codVdes)
|
||||
.setCodAnag(codAnag)
|
||||
.setDataDoc(requestDTO.getDataTrasf())
|
||||
.setNumDoc(requestDTO.getNumTrasf())
|
||||
.setCodVvet(requestDTO.getCodVvet())
|
||||
.setAnnotazioni(requestDTO.getAnnotazioni())
|
||||
.setCodDtip(codDtipToUse);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user