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 {
|
||||
List<MtbColt> colli = testata.getMtbColt().stream().filter(x -> x.getNativeSql() == null).collect(Collectors.toList());
|
||||
for (MtbColt mtbColt: colli) {
|
||||
boolean cancellaRifDoc;
|
||||
if ( mtbColt.getCancellaRifDoc()==null) {
|
||||
if ( mtbColt.getOperation() == OperationType.DELETE) {
|
||||
cancellaRifDoc = true;
|
||||
mtbColt.setOperation(OperationType.UPDATE);
|
||||
} else {
|
||||
cancellaRifDoc = false;
|
||||
}
|
||||
} else {
|
||||
boolean cancellaRifDoc = false;
|
||||
if ( mtbColt.getCancellaRifDoc() !=null) {
|
||||
cancellaRifDoc = mtbColt.getCancellaRifDoc();
|
||||
}
|
||||
if (mtbColt.getOperation() != OperationType.DELETE) {
|
||||
|
||||
@@ -781,7 +781,7 @@ public class DocumentiDirettiService {
|
||||
.setCodMart(ulRowDTO.getCodMart())
|
||||
.setPartitaMag(ulRowDTO.getPartitaMag())
|
||||
.setQtaTot(ulRowDTO.getQtaCol())
|
||||
.setDataOrd(UtilityLocalDate.localDateToDate(ulRowDTO.getDataOrd()))
|
||||
.setDataOrd(ulRowDTO.getDataOrd()!=null?UtilityLocalDate.localDateToDate(ulRowDTO.getDataOrd()):null)
|
||||
.setNumOrd(ulRowDTO.getNumOrd())
|
||||
.setRigaOrd(ulRowDTO.getRigaOrd())
|
||||
.setTargetMtbColt(uds)
|
||||
|
||||
@@ -99,11 +99,13 @@ public class ViaggiService {
|
||||
}
|
||||
|
||||
if (!UtilityList.isNullOrEmpty(pedane)) {
|
||||
String listino = setupGest.getSetup("DTB_DOCT", "FATTURA_PEDANE", "LISTINO");
|
||||
dtbDoct
|
||||
.setCodDtip(tipoDocResi)
|
||||
.setCodMdep(creaViaggioDTO.getCodMdep())
|
||||
.setCodAnag(datiClienteFornTrasp.getCodAnag())
|
||||
.setIdViaggio(viaggio.getIdViaggio())
|
||||
.setListino(listino)
|
||||
.setDtbDocr(new ArrayList<>());
|
||||
|
||||
dtbDoct.setOperation(OperationType.DELETE_THEN_INSERT);
|
||||
|
||||
@@ -12,7 +12,7 @@ public class CreateUDSRequestOrderDTO {
|
||||
private String gestione;
|
||||
private LocalDate dataOrd;
|
||||
private LocalDate dataCons;
|
||||
private int numOrd;
|
||||
private Integer numOrd;
|
||||
|
||||
|
||||
public String getGestione() {
|
||||
@@ -42,11 +42,11 @@ public class CreateUDSRequestOrderDTO {
|
||||
return this;
|
||||
}
|
||||
|
||||
public int getNumOrd() {
|
||||
public Integer getNumOrd() {
|
||||
return numOrd;
|
||||
}
|
||||
|
||||
public CreateUDSRequestOrderDTO setNumOrd(int numOrd) {
|
||||
public CreateUDSRequestOrderDTO setNumOrd(Integer numOrd) {
|
||||
this.numOrd = numOrd;
|
||||
return this;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user