Merge branch 'master' into feature/RefactoringGestioneColli
All checks were successful
IntegryManagementSystem_Multi/pipeline/head This commit looks good
All checks were successful
IntegryManagementSystem_Multi/pipeline/head This commit looks good
# Conflicts: # ems-engine/src/main/java/it/integry/ems/production/service/MesProductionServiceV2.java
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
package it.integry.ems.migration.model;
|
||||
|
||||
import it.integry.ems.migration._base.BaseMigration;
|
||||
import it.integry.ems.migration._base.MigrationModelInterface;
|
||||
|
||||
public class Migration_20251006125427 extends BaseMigration implements MigrationModelInterface {
|
||||
|
||||
@Override
|
||||
public void up() throws Exception {
|
||||
if (isHistoryDB())
|
||||
return;
|
||||
|
||||
createSetup("w_mriassegna_costo_dlg", "SETUP", "CALCOLO_COSTO_DA_DISTINTA", "A+B+C+D",
|
||||
"Formula calcolo costo da distinta base: A = Costo Materiali B = Costo manodopera C = Costo manodopera magazzino D = Costo servizi", false, null, false, false,
|
||||
false, false, false, null, false, null);
|
||||
|
||||
executeStatement("delete from stb_gest_setup where gest_name = 'w_mriassegna_costo_dlg' and key_section = 'FLAG_COSTO_DISTINTA_NO_MDO'");
|
||||
executeStatement("delete from stb_gest_setup where gest_name = 'w_mriassegna_costo_dlg' and key_section = 'FLAG_COSTO_DISTINTA_NO_SERVIZI'");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void down() throws Exception {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
package it.integry.ems.migration.model;
|
||||
|
||||
import it.integry.ems.migration._base.BaseMigration;
|
||||
import it.integry.ems.migration._base.IntegryCustomerDB;
|
||||
import it.integry.ems.migration._base.MigrationModelInterface;
|
||||
|
||||
public class Migration_20251006151622 extends BaseMigration implements MigrationModelInterface {
|
||||
|
||||
@Override
|
||||
public void up() throws Exception {
|
||||
if (isHistoryDB())
|
||||
return;
|
||||
|
||||
if (!isCustomerDb(IntegryCustomerDB.Maggio_MaggioSrl))
|
||||
return;
|
||||
|
||||
updateSetupValue("w_mriassegna_costo_dlg", "SETUP", "CALCOLO_COSTO_DA_DISTINTA", "A",
|
||||
"Formula calcolo costo da distinta base: A = Costo Materiali B = Costo manodopera C = Costo manodopera magazzino D = Costo servizi", false, null, false, false, false,
|
||||
false, false, null, false, null);
|
||||
|
||||
executeStatement("DELETE\n" +
|
||||
"FROM stb_gest_setup_depo\n" +
|
||||
"WHERE gest_name = 'w_mriassegna_costo_dlg'\n" +
|
||||
" AND section = 'SETUP'\n" +
|
||||
" AND key_section = 'CALCOLO_COSTO_DA_DISTINTA'"
|
||||
);
|
||||
|
||||
executeStatement("DELETE\n" +
|
||||
"FROM wtb_gest_setup_user\n" +
|
||||
"WHERE gest_name = 'w_mriassegna_costo_dlg'\n" +
|
||||
" AND section = 'SETUP'\n" +
|
||||
" AND key_section = 'CALCOLO_COSTO_DA_DISTINTA'"
|
||||
);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void down() throws Exception {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -117,10 +117,10 @@ public class TtbLine extends EntityBase {
|
||||
private String flagAttivaCambioMerce;
|
||||
|
||||
@SqlField(value = "num_max_art_reso", defaultObjectValue = "0")
|
||||
private int numMaxArtReso;
|
||||
private Integer numMaxArtReso;
|
||||
|
||||
@SqlField(value = "num_max_art_reso_buco", defaultObjectValue = "0")
|
||||
private int numMaxArtResoBuco;
|
||||
private Integer numMaxArtResoBuco;
|
||||
|
||||
@SqlField(value = "linee_cambio_merce")
|
||||
private String lineeCambioMerce;
|
||||
@@ -135,7 +135,7 @@ public class TtbLine extends EntityBase {
|
||||
private BigDecimal moltiplicatorePrezzoBase;
|
||||
|
||||
@SqlField(value = "num_min_art_col", defaultObjectValue = "0", nullable = false)
|
||||
private short numMinArtCol;
|
||||
private Short numMinArtCol;
|
||||
|
||||
@EntityChild
|
||||
private List<TtbLinePeriod> ttbLinePeriod = new ArrayList<>();
|
||||
@@ -398,22 +398,6 @@ public class TtbLine extends EntityBase {
|
||||
this.flagAttivaCambioMerce = flagAttivaCambioMerce;
|
||||
}
|
||||
|
||||
public int getNumMaxArtReso() {
|
||||
return numMaxArtReso;
|
||||
}
|
||||
|
||||
public void setNumMaxArtReso(int numMaxArtReso) {
|
||||
this.numMaxArtReso = numMaxArtReso;
|
||||
}
|
||||
|
||||
public int getNumMaxArtResoBuco() {
|
||||
return numMaxArtResoBuco;
|
||||
}
|
||||
|
||||
public void setNumMaxArtResoBuco(int numMaxArtResoBuco) {
|
||||
this.numMaxArtResoBuco = numMaxArtResoBuco;
|
||||
}
|
||||
|
||||
public String getLineeCambioMerce() {
|
||||
return lineeCambioMerce;
|
||||
}
|
||||
@@ -455,11 +439,29 @@ public class TtbLine extends EntityBase {
|
||||
this.moltiplicatorePrezzoBase = moltiplicatorePrezzoBase;
|
||||
}
|
||||
|
||||
public short getNumMinArtCol() {
|
||||
public Integer getNumMaxArtReso() {
|
||||
return numMaxArtReso;
|
||||
}
|
||||
|
||||
public TtbLine setNumMaxArtReso(Integer numMaxArtReso) {
|
||||
this.numMaxArtReso = numMaxArtReso;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Integer getNumMaxArtResoBuco() {
|
||||
return numMaxArtResoBuco;
|
||||
}
|
||||
|
||||
public TtbLine setNumMaxArtResoBuco(Integer numMaxArtResoBuco) {
|
||||
this.numMaxArtResoBuco = numMaxArtResoBuco;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Short getNumMinArtCol() {
|
||||
return numMinArtCol;
|
||||
}
|
||||
|
||||
public TtbLine setNumMinArtCol(short numMinArtCol) {
|
||||
public TtbLine setNumMinArtCol(Short numMinArtCol) {
|
||||
this.numMinArtCol = numMinArtCol;
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -232,10 +232,14 @@ public class PvmAccettazioneService {
|
||||
"WHERE dtb_ordt.cod_mdep = %S\n" +
|
||||
" AND dtb_ordt.cod_anag = %s\n" +
|
||||
" AND dtb_ordt.flag_evaso_forzato = 'N'\n" +
|
||||
" AND dtb_ordr.data_cons BETWEEN DATEADD(WEEK, -1, %s) AND %s",
|
||||
" AND EXISTS (select * \n" +
|
||||
" FROM wdtb_docr \n" +
|
||||
" WHERE wdtb_docr.data_ord = dtb_ordr.data_ord AND \n" +
|
||||
" wdtb_docr.num_ord = dtb_ordr.num_ord AND \n" +
|
||||
" wdtb_docr.data_doc = %s AND \n" +
|
||||
" wdtb_docr.cod_anag = %s) ",
|
||||
codMdep, accettazioneDTO.getDocumento().getCodAnag(),
|
||||
accettazioneDTO.getDocumento().getDataDoc(),
|
||||
accettazioneDTO.getDocumento().getDataDoc());
|
||||
accettazioneDTO.getDocumento().getDataDoc(), accettazioneDTO.getDocumento().getCodAnag());
|
||||
|
||||
List<DtbOrdt> ordini = UtilityDB.executeSimpleQueryDTO(multiDBTransactionManager.getPrimaryConnection(), sql, DtbOrdt.class);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user