Valorizzato id flag sulla registrazione contabile delle paghe
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,19 @@
|
||||
package it.integry.ems.migration.model;
|
||||
|
||||
import it.integry.ems.migration._base.BaseMigration;
|
||||
import it.integry.ems.migration._base.MigrationModelInterface;
|
||||
|
||||
public class Migration_20241122122341 extends BaseMigration implements MigrationModelInterface {
|
||||
|
||||
@Override
|
||||
public void up() throws Exception {
|
||||
if (isHistoryDB())
|
||||
return;
|
||||
|
||||
renameColumn("ctb_movr_coan", "id_lav" , "id_flav");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void down() throws Exception {
|
||||
}
|
||||
}
|
||||
@@ -670,7 +670,8 @@ public class AccountingRules extends QueryRules {
|
||||
.setImpDare(ctbMovr.getImpDare())
|
||||
.setImpAvere(ctbMovr.getImpAvere())
|
||||
.setCodProd(ctbMovr.getCodProd())
|
||||
.setPartitaMagProd(ctbMovr.getPartitaMagProd());
|
||||
.setPartitaMagProd(ctbMovr.getPartitaMagProd())
|
||||
.setIdFlav(ctbMovr.getIdFlav());
|
||||
ctbMovrCoan.setOperation(OperationType.INSERT);
|
||||
elencoCoan = new ArrayList<>();
|
||||
elencoCoan.add(ctbMovrCoan);
|
||||
|
||||
@@ -119,6 +119,8 @@ public class CtbMovr extends EntityBase {
|
||||
|
||||
private Integer azioneSuPartita;
|
||||
|
||||
private String idFlav;
|
||||
|
||||
@EntityChild
|
||||
private List<CtbMovrCoan> ctbMovrCoan = new ArrayList<>();
|
||||
|
||||
@@ -413,6 +415,15 @@ public class CtbMovr extends EntityBase {
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getIdFlav() {
|
||||
return idFlav;
|
||||
}
|
||||
|
||||
public CtbMovr setIdFlav(String idFlav) {
|
||||
this.idFlav = idFlav;
|
||||
return this;
|
||||
}
|
||||
|
||||
public List<CtbMovrIntercode> getCtbMovrIntercode() {
|
||||
return ctbMovrIntercode;
|
||||
}
|
||||
|
||||
@@ -68,8 +68,8 @@ public class CtbMovrCoan extends EntityBase {
|
||||
@SqlField(value = "partita_mag_prod", maxLength = 20)
|
||||
private String partitaMagProd;
|
||||
|
||||
@SqlField(value = "id_lav", maxLength = 40)
|
||||
private String idLav;
|
||||
@SqlField(value = "id_flav", maxLength = 40)
|
||||
private String idFlav;
|
||||
|
||||
public CtbMovrCoan() {
|
||||
super(logger);
|
||||
@@ -201,11 +201,12 @@ public class CtbMovrCoan extends EntityBase {
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getIdLav() {
|
||||
return idLav;
|
||||
public String getIdFlav() {
|
||||
return idFlav;
|
||||
}
|
||||
|
||||
public void setIdLav(String idLav) {
|
||||
this.idLav = idLav;
|
||||
public CtbMovrCoan setIdFlav(String idFlav) {
|
||||
this.idFlav = idFlav;
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -301,12 +301,14 @@ public class ContabilImportService {
|
||||
}
|
||||
desAgg.toUpperCase();
|
||||
|
||||
CtbMovr movr = new CtbMovr();
|
||||
movr.setCodCcon(mov.getCodCcon());
|
||||
movr.setImpDare(mov.getDareCalc());
|
||||
movr.setImpAvere(mov.getAvereCalc());
|
||||
movr.setCodJfas(mov.getCodJfas());
|
||||
movr.setDesAgg(desAgg);
|
||||
CtbMovr movr =
|
||||
new CtbMovr()
|
||||
.setCodCcon(mov.getCodCcon())
|
||||
.setImpDare(mov.getDareCalc())
|
||||
.setImpAvere(mov.getAvereCalc())
|
||||
.setCodJfas(mov.getCodJfas())
|
||||
.setDesAgg(desAgg)
|
||||
.setIdFlav(mov.getSel_2());
|
||||
if (mov.isCostoCC()) {
|
||||
movr.setDataInizCompRisc(dataIniz);
|
||||
movr.setDataFineCompRisc(dataReg);
|
||||
@@ -315,11 +317,13 @@ public class ContabilImportService {
|
||||
totAvere = totAvere.add(movr.getImpAvere());
|
||||
ctbMovrList.add(movr);
|
||||
if (!UtilityString.isNullOrEmpty(mov.getCodCconCp())) {
|
||||
CtbMovr movr_cp = new CtbMovr();
|
||||
movr_cp.setCodCcon(mov.getCodCconCp());
|
||||
movr_cp.setImpDare(mov.getAvereCalc());
|
||||
movr_cp.setImpAvere(mov.getDareCalc());
|
||||
movr_cp.setCodJfas(mov.getCodJfas());
|
||||
CtbMovr movr_cp =
|
||||
new CtbMovr()
|
||||
.setCodCcon(mov.getCodCconCp())
|
||||
.setImpDare(mov.getAvereCalc())
|
||||
.setImpAvere(mov.getDareCalc())
|
||||
.setCodJfas(mov.getCodJfas());
|
||||
|
||||
movr_cp.setDesAgg(desAgg);
|
||||
if (mov.isCostoCP()) {
|
||||
movr.setDataInizCompRisc(dataIniz);
|
||||
@@ -329,7 +333,6 @@ public class ContabilImportService {
|
||||
totAvere = totAvere.add(movr_cp.getImpAvere());
|
||||
ctbMovrList.add(movr_cp);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if (totDare.compareTo(totAvere) != 0) {
|
||||
|
||||
Reference in New Issue
Block a user