varie listini
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
package it.integry.ems.migration.model;
|
||||
|
||||
import it.integry.ems.migration._base.BaseMigration;
|
||||
import it.integry.ems.migration._base.MigrationModelInterface;
|
||||
|
||||
public class Migration_20250512161113 extends BaseMigration implements MigrationModelInterface {
|
||||
|
||||
@Override
|
||||
public void up() throws Exception {
|
||||
if (isHistoryDB())
|
||||
return;
|
||||
|
||||
|
||||
createOrUpdateFunction("f_getPrzNettoAcqArtUm", "CREATE FUNCTION [dbo].[f_getPrzNettoAcqArtUm] (@dataValidita datetime, @codAlis varchar(5), @codArtFor varchar(20), @codMart varchar(15) )\n" +
|
||||
"RETURNS decimal(20, 5) AS \n" +
|
||||
"BEGIN \n" +
|
||||
" DECLARE @lc_prezzoNetto decimal(20,5)\n" +
|
||||
"\n" +
|
||||
" begin\n" +
|
||||
" \n" +
|
||||
" SELECT @lc_prezzoNetto = listino.prz_acq_netto_um\n" +
|
||||
" FROM dbo.getListinoAcquisto (@dataValidita,@codAlis,@codArtFor,@codMart,'N', null) listino\n" +
|
||||
" end\n" +
|
||||
" return (@lc_prezzoNetto)\n" +
|
||||
"END;");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void down() throws Exception {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -243,7 +243,8 @@ public class SalesRules extends QueryRules {
|
||||
.setCodPromo(vtbListData.getCodPromo())
|
||||
.setDescrizione(vtbListData.getDescrPromo())
|
||||
.setDataInizSellIn(vtbListData.getDataIniz())
|
||||
.setDataFineSellIn(vtbListData.getDataFine());
|
||||
.setDataFineSellIn(vtbListData.getDataFine())
|
||||
.setFlagVolantino(vtbListData.getFlagVolantino());
|
||||
vtbPromo.setOperation(OperationType.INSERT_OR_UPDATE);
|
||||
|
||||
return vtbPromo;
|
||||
|
||||
@@ -190,6 +190,9 @@ public class MtbLisvData extends EntityBase {
|
||||
@MapToTable("descr_promo")
|
||||
private String descrPromo;
|
||||
|
||||
@MapToTable("flag_volantino")
|
||||
private Boolean flagVolantino;
|
||||
|
||||
@MapToTable("note_lisv")
|
||||
private String noteLisv;
|
||||
|
||||
@@ -654,6 +657,15 @@ public class MtbLisvData extends EntityBase {
|
||||
return this;
|
||||
}
|
||||
|
||||
public Boolean getFlagVolantino() {
|
||||
return flagVolantino;
|
||||
}
|
||||
|
||||
public MtbLisvData setFlagVolantino(Boolean flagVolantino) {
|
||||
this.flagVolantino = flagVolantino;
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getNoteLisv() {
|
||||
return noteLisv;
|
||||
}
|
||||
|
||||
@@ -86,6 +86,9 @@ public class VtbListData extends EntityBase {
|
||||
@MapToTable("descr_promo")
|
||||
private String descrPromo;
|
||||
|
||||
@MapToTable("flag_volantino")
|
||||
private Boolean flagVolantino;
|
||||
|
||||
@JsonProperty
|
||||
private String descrizione;
|
||||
|
||||
@@ -270,6 +273,15 @@ public class VtbListData extends EntityBase {
|
||||
return this;
|
||||
}
|
||||
|
||||
public Boolean getFlagVolantino() {
|
||||
return flagVolantino;
|
||||
}
|
||||
|
||||
public VtbListData setFlagVolantino(Boolean flagVolantino) {
|
||||
this.flagVolantino = flagVolantino;
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getDescrizione() {
|
||||
return descrizione;
|
||||
}
|
||||
|
||||
@@ -541,7 +541,8 @@ public class ListiniVenditaServices {
|
||||
.setDataFine(x.getDataFine())
|
||||
.setVersione(x.getVersione())
|
||||
.setDescrPromo(x.getDescrPromo())
|
||||
.setNote(x.getNoteLisv());
|
||||
.setNote(x.getNoteLisv())
|
||||
.setFlagVolantino(x.getFlagVolantino());
|
||||
return vtbListData;
|
||||
}
|
||||
).toList();
|
||||
|
||||
Reference in New Issue
Block a user