- aggiunti editorFold in creazione certificati rg
All checks were successful
IntegryManagementSystem_Multi/pipeline/head This commit looks good
All checks were successful
IntegryManagementSystem_Multi/pipeline/head This commit looks good
- corretta setup gramm
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
package it.integry.ems.migration.model;
|
||||
|
||||
import it.integry.ems.migration._base.BaseMigration;
|
||||
import it.integry.ems.migration._base.MigrationModelInterface;
|
||||
|
||||
public class Migration_20250325102742 extends BaseMigration implements MigrationModelInterface {
|
||||
|
||||
@Override
|
||||
public void up() throws Exception {
|
||||
if (isHistoryDB())
|
||||
return;
|
||||
|
||||
updateSetupValue("PVM","MONITORAGGIO_LINEE_V2","CALC_DATASCAD_DA_DATA_ORD","N","Se impostata viene utilizzata la data dell'ordine invece che la data odierna per il calcolo della scadenza del lotto proposto",false,"SI_NO",false,true,false,false,false,null,false);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void down() throws Exception {
|
||||
}
|
||||
}
|
||||
@@ -70,6 +70,7 @@ public class OrtoFruttaProductionService {
|
||||
public EntityBase accettazioneDaRaccolta(AccettazioneOrtoFruttaDTO dto) throws Exception {
|
||||
|
||||
|
||||
//<editor-fold desc="Acquisizione Dati">
|
||||
if (dto.getUntMis().equalsIgnoreCase("KG") && UtilityBigDecimal.isNullOrZero(dto.getPesoLordoCamion()))
|
||||
throw new Exception("Peso lordo non configurato!");
|
||||
|
||||
@@ -96,8 +97,6 @@ public class OrtoFruttaProductionService {
|
||||
if (UtilityString.isNullOrEmpty(dto.getCodJfas())) {
|
||||
dto.setCodJfas(codJfas);
|
||||
}
|
||||
|
||||
|
||||
//controllo se il DDT richiesto è già occupato da un altro certificato
|
||||
String sql = "SELECT data_collo,ser_collo,num_collo,gestione\n" +
|
||||
"FROM mtb_colt\n" +
|
||||
@@ -110,7 +109,9 @@ public class OrtoFruttaProductionService {
|
||||
if (mtbcolt != null && (UtilityInteger.isNullOrZero(dto.getNumCollo()) || mtbcolt.getNumCollo().compareTo(dto.getNumCollo()) != 0)) {
|
||||
throw new Exception("Il documento di trasporto inserito è già esistente!");
|
||||
}
|
||||
//</editor-fold>
|
||||
|
||||
//<editor-fold desc="Salvataggio dati base collo e Activity">
|
||||
MtbColt collo;
|
||||
//creo collo base se non esiste
|
||||
if (UtilityInteger.isNullOrZero(dto.getNumCollo())) {
|
||||
@@ -144,7 +145,9 @@ public class OrtoFruttaProductionService {
|
||||
entityProcessor.processEntity(activity, true, multiDBTransactionManager);
|
||||
activityId = activity.getActivityId();
|
||||
}
|
||||
//</editor-fold>
|
||||
|
||||
//<editor-fold desc="Salvataggio dati partita">
|
||||
List<MtbPartitaMagCarat> datiPartita;
|
||||
MtbPartitaMagCarat lottoProd = new MtbPartitaMagCarat();
|
||||
MtbPartitaMagCarat modalitaRaccolta = new MtbPartitaMagCarat();
|
||||
@@ -213,7 +216,9 @@ public class OrtoFruttaProductionService {
|
||||
part.setMtbPartitaMagCarat(datiPartita);
|
||||
|
||||
entityProcessor.processEntity(part, true, multiDBTransactionManager);
|
||||
//</editor-fold>
|
||||
|
||||
//<editor-fold desc="Generazione Certificato">
|
||||
//Genero testata certificato di lavoro
|
||||
String codDtipLavCar = setupGest.getSetup(multiDBTransactionManager.getPrimaryConnection(), "CRUSCOTTO_PRODUZIONE",
|
||||
"SETUP",
|
||||
@@ -317,6 +322,9 @@ public class OrtoFruttaProductionService {
|
||||
entityProcessor.processEntity(docLav, true, multiDBTransactionManager);
|
||||
UtilityEntity.throwEntityException(docLav);
|
||||
}
|
||||
//</editor-fold>
|
||||
|
||||
//<editor-fold desc="Posizionamento merce">
|
||||
MtbAart articolo = new MtbAart();
|
||||
articolo.setCodMart(dto.getCodMart())
|
||||
.setOperation(OperationType.SELECT_OBJECT);
|
||||
@@ -369,6 +377,7 @@ public class OrtoFruttaProductionService {
|
||||
WMSUtility.spostaArtsTraUL(collo, colloDest, false, entityProcessor, requestDataDTO);
|
||||
}
|
||||
|
||||
//</editor-fold>
|
||||
|
||||
List<MtbColt> lista = new ArrayList<>();
|
||||
lista.add(collo);
|
||||
|
||||
Reference in New Issue
Block a user