inserito campo incoterms nella dtb_ordt e note_incoterms nella vtb_viaggi

This commit is contained in:
2025-02-26 14:44:21 +01:00
parent 0ca1cfd288
commit 64c20d7eff
3 changed files with 44 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
package it.integry.ems.migration.model;
import it.integry.ems.migration._base.BaseMigration;
import it.integry.ems.migration._base.MigrationModelInterface;
public class Migration_20250226143555 extends BaseMigration implements MigrationModelInterface {
@Override
public void up() throws Exception {
if (isHistoryDB())
return;
executeStatement("alter table dtb_ordt add incoterms varchar(20)",
"alter table vtb_viaggi add note_incoterms varchar(20)");
}
@Override
public void down() throws Exception {
}
}

View File

@@ -378,6 +378,9 @@ public class DtbOrdt extends DtbDocOrdT implements EquatableEntityInterface<DtbO
@SqlField(value = "cod_lingua", maxLength = 5)
private String codLingua;
@SqlField(value = "incoterms", maxLength = 20)
private String incoterms;
private BigDecimal cambio;
private String userName;
@@ -1366,6 +1369,15 @@ public class DtbOrdt extends DtbDocOrdT implements EquatableEntityInterface<DtbO
return this;
}
public String getIncoterms() {
return incoterms;
}
public DtbOrdt setIncoterms(String incoterms) {
this.incoterms = incoterms;
return this;
}
@Override
public List<DtbOrdr> getRows() {
return getDtbOrdr();

View File

@@ -85,6 +85,9 @@ public class VtbViaggi extends EntityBase {
@SqlField(value = "incoterms", maxLength = 40)
private String incoterms;
@SqlField(value = "note_incoterms", maxLength = 20)
private String noteIncoterms;
@Priority(value = 101, copyPk = false)
private List<VtbViaggi> vtbViaggiList;
@@ -298,6 +301,15 @@ public class VtbViaggi extends EntityBase {
return this;
}
public String getNoteIncoterms() {
return noteIncoterms;
}
public VtbViaggi setNoteIncoterms(String noteIncoterms) {
this.noteIncoterms = noteIncoterms;
return this;
}
public enum Stato implements IBaseEnum<Stato> {
PIANIFICATO((short) 0), CARICO((short) 1), SPEDITO((short) 2);