creazione colli da documento di vendita
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:
@@ -0,0 +1,22 @@
|
|||||||
|
package it.integry.ems.migration.model;
|
||||||
|
|
||||||
|
import it.integry.ems.migration._base.BaseMigration;
|
||||||
|
import it.integry.ems.migration._base.IntegryCustomer;
|
||||||
|
import it.integry.ems.migration._base.MigrationModelInterface;
|
||||||
|
|
||||||
|
public class Migration_20250508164056 extends BaseMigration implements MigrationModelInterface {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void up() throws Exception {
|
||||||
|
if (isHistoryDB())
|
||||||
|
return;
|
||||||
|
|
||||||
|
if (!isCustomer(IntegryCustomer.Agricoper)) return;
|
||||||
|
|
||||||
|
updateSetupValue("DATI_AZIENDA", "SETUP", "LOGIN_OVER_WEBSERVICES", "S");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void down() throws Exception {
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -601,15 +601,8 @@ public class DocumentRules extends QueryRules {
|
|||||||
public static void completeDatiDocMtbColt(Connection connection, DtbDoct testata) throws SQLException {
|
public static void completeDatiDocMtbColt(Connection connection, DtbDoct testata) throws SQLException {
|
||||||
List<MtbColt> colli = testata.getMtbColt().stream().filter(x -> x.getNativeSql() == null).collect(Collectors.toList());
|
List<MtbColt> colli = testata.getMtbColt().stream().filter(x -> x.getNativeSql() == null).collect(Collectors.toList());
|
||||||
for (MtbColt mtbColt: colli) {
|
for (MtbColt mtbColt: colli) {
|
||||||
boolean cancellaRifDoc;
|
boolean cancellaRifDoc = false;
|
||||||
if ( mtbColt.getCancellaRifDoc()==null) {
|
if ( mtbColt.getCancellaRifDoc() !=null) {
|
||||||
if ( mtbColt.getOperation() == OperationType.DELETE) {
|
|
||||||
cancellaRifDoc = true;
|
|
||||||
mtbColt.setOperation(OperationType.UPDATE);
|
|
||||||
} else {
|
|
||||||
cancellaRifDoc = false;
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
cancellaRifDoc = mtbColt.getCancellaRifDoc();
|
cancellaRifDoc = mtbColt.getCancellaRifDoc();
|
||||||
}
|
}
|
||||||
if (mtbColt.getOperation() != OperationType.DELETE) {
|
if (mtbColt.getOperation() != OperationType.DELETE) {
|
||||||
|
|||||||
@@ -781,7 +781,7 @@ public class DocumentiDirettiService {
|
|||||||
.setCodMart(ulRowDTO.getCodMart())
|
.setCodMart(ulRowDTO.getCodMart())
|
||||||
.setPartitaMag(ulRowDTO.getPartitaMag())
|
.setPartitaMag(ulRowDTO.getPartitaMag())
|
||||||
.setQtaTot(ulRowDTO.getQtaCol())
|
.setQtaTot(ulRowDTO.getQtaCol())
|
||||||
.setDataOrd(UtilityLocalDate.localDateToDate(ulRowDTO.getDataOrd()))
|
.setDataOrd(ulRowDTO.getDataOrd()!=null?UtilityLocalDate.localDateToDate(ulRowDTO.getDataOrd()):null)
|
||||||
.setNumOrd(ulRowDTO.getNumOrd())
|
.setNumOrd(ulRowDTO.getNumOrd())
|
||||||
.setRigaOrd(ulRowDTO.getRigaOrd())
|
.setRigaOrd(ulRowDTO.getRigaOrd())
|
||||||
.setTargetMtbColt(uds)
|
.setTargetMtbColt(uds)
|
||||||
|
|||||||
@@ -99,11 +99,13 @@ public class ViaggiService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!UtilityList.isNullOrEmpty(pedane)) {
|
if (!UtilityList.isNullOrEmpty(pedane)) {
|
||||||
|
String listino = setupGest.getSetup("DTB_DOCT", "FATTURA_PEDANE", "LISTINO");
|
||||||
dtbDoct
|
dtbDoct
|
||||||
.setCodDtip(tipoDocResi)
|
.setCodDtip(tipoDocResi)
|
||||||
.setCodMdep(creaViaggioDTO.getCodMdep())
|
.setCodMdep(creaViaggioDTO.getCodMdep())
|
||||||
.setCodAnag(datiClienteFornTrasp.getCodAnag())
|
.setCodAnag(datiClienteFornTrasp.getCodAnag())
|
||||||
.setIdViaggio(viaggio.getIdViaggio())
|
.setIdViaggio(viaggio.getIdViaggio())
|
||||||
|
.setListino(listino)
|
||||||
.setDtbDocr(new ArrayList<>());
|
.setDtbDocr(new ArrayList<>());
|
||||||
|
|
||||||
dtbDoct.setOperation(OperationType.DELETE_THEN_INSERT);
|
dtbDoct.setOperation(OperationType.DELETE_THEN_INSERT);
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ public class CreateUDSRequestOrderDTO {
|
|||||||
private String gestione;
|
private String gestione;
|
||||||
private LocalDate dataOrd;
|
private LocalDate dataOrd;
|
||||||
private LocalDate dataCons;
|
private LocalDate dataCons;
|
||||||
private int numOrd;
|
private Integer numOrd;
|
||||||
|
|
||||||
|
|
||||||
public String getGestione() {
|
public String getGestione() {
|
||||||
@@ -42,11 +42,11 @@ public class CreateUDSRequestOrderDTO {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getNumOrd() {
|
public Integer getNumOrd() {
|
||||||
return numOrd;
|
return numOrd;
|
||||||
}
|
}
|
||||||
|
|
||||||
public CreateUDSRequestOrderDTO setNumOrd(int numOrd) {
|
public CreateUDSRequestOrderDTO setNumOrd(Integer numOrd) {
|
||||||
this.numOrd = numOrd;
|
this.numOrd = numOrd;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user