creazione colli da documento di vendita
All checks were successful
IntegryManagementSystem_Multi/pipeline/head This commit looks good

This commit is contained in:
2025-05-08 16:51:49 +02:00
parent 8c1caed359
commit 05bee71bd6
5 changed files with 30 additions and 13 deletions

View File

@@ -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 {
}
}

View File

@@ -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) {

View File

@@ -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)

View File

@@ -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);

View File

@@ -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;
}