aggiunta giacenza nella procedura di Tuidi
This commit is contained in:
@@ -375,6 +375,8 @@ public class DialogoJsonDTO {
|
||||
|
||||
private String note;
|
||||
|
||||
private BigDecimal giacenza;
|
||||
|
||||
public String getCodMart() {
|
||||
return codMart;
|
||||
}
|
||||
@@ -482,6 +484,15 @@ public class DialogoJsonDTO {
|
||||
this.note = note;
|
||||
return this;
|
||||
}
|
||||
|
||||
public BigDecimal getGiacenza() {
|
||||
return giacenza;
|
||||
}
|
||||
|
||||
public RowDTO setGiacenza(BigDecimal giacenza) {
|
||||
this.giacenza = giacenza;
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
||||
public static class SpeseDTO {
|
||||
|
||||
@@ -14,6 +14,7 @@ import it.integry.ems_model.types.OperationType;
|
||||
import it.integry.ems_model.utility.UtilityBigDecimal;
|
||||
import it.integry.ems_model.utility.UtilityDB;
|
||||
import it.integry.ems_model.utility.UtilityHashMap;
|
||||
import it.integry.ems_model.utility.UtilityString;
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
@@ -80,6 +81,7 @@ public class OrdiniImportService {
|
||||
.setNumCnf(x.getNumCnf())
|
||||
.setValUnt(x.getValUnt())
|
||||
.setDataCons(x.getDataCons())
|
||||
.setSystemNote(x.getGiacenza() != null?String.format("{\"giacenza\":\"%s\"}", UtilityString.bigDecimalToString(x.getGiacenza(), "###0.00")):null)
|
||||
).toList();
|
||||
|
||||
dtbOrdt.setDtbOrdr(dtbOrdrs);
|
||||
|
||||
Reference in New Issue
Block a user