modificato l'assegnazione del costo nei documenti di lavorazione che valorizzano il costo
This commit is contained in:
@@ -649,10 +649,10 @@ public class DocOrdCalTotaliRules extends QueryRules {
|
||||
boolean flagValCosto = ((DtbDoct) testata).getDtbTipi().getFlagCosto().equalsIgnoreCase("S");
|
||||
if (row instanceof DtbDocr && (((DtbDocr) row).getCostoUnt() == null || ((DtbDocr) row).getCostoUnt().compareTo(BigDecimal.ZERO) == 0)) {
|
||||
BigDecimal costo = BigDecimal.ZERO;
|
||||
if ("A".equals(gestione) || flagValCosto) {
|
||||
if ("A".equals(gestione) ) {
|
||||
costo = DocumentRules.completeCostoUntDocA(conn, ((DtbDocr) row));
|
||||
} else if ("L".equals(gestione)) {
|
||||
costo = DocumentRules.completeCostoUntDocL(conn, ((DtbDocr) row));
|
||||
costo = DocumentRules.completeCostoUntDocL(conn, ((DtbDocr) row), flagValCosto);
|
||||
}
|
||||
((DtbDocr) row).setCostoUnt(costo);
|
||||
}
|
||||
@@ -663,8 +663,8 @@ public class DocOrdCalTotaliRules extends QueryRules {
|
||||
|
||||
if (calcScpese &&
|
||||
flagSpeseArt &&
|
||||
!((DtbDoct) testata).getGestione().equalsIgnoreCase("L") &&
|
||||
!(((DtbDoct) testata).getGestione().equalsIgnoreCase("A") &&
|
||||
!testata.getGestione().equalsIgnoreCase("L") &&
|
||||
!(testata.getGestione().equalsIgnoreCase("A") &&
|
||||
((DtbDoct) testata).getDtbTipi().getSegnoQtaCar() + ((DtbDoct) testata).getDtbTipi().getSegnoQtaScar() == 0 &&
|
||||
((DtbDoct) testata).getDtbTipi().getSegnoValCar() + ((DtbDoct) testata).getDtbTipi().getSegnoValScar() != 0)) {
|
||||
maxRigaSpesa = addSpeseArt(conn, (DtbDoct) testata, dtbDocr, speseArt, maxRigaSpesa, whereCondExcSpese, cifreDec, ((DtbDocr) row).getVentilazione());
|
||||
|
||||
@@ -340,9 +340,6 @@ public class DtbDocr extends DtbBaseDocR implements EquatableEntityInterface<Dtb
|
||||
@ImportFromParent
|
||||
private BigDecimal cambio;
|
||||
|
||||
@ImportFromParent
|
||||
private String flagCosto;
|
||||
|
||||
@ImportFromParent
|
||||
private String tipoEmissione;
|
||||
|
||||
@@ -375,7 +372,7 @@ public class DtbDocr extends DtbBaseDocR implements EquatableEntityInterface<Dtb
|
||||
|
||||
@JsonProperty("corrispettivo")
|
||||
private boolean //valorizzata a true nella procedura automatica di generazione corrispettivi
|
||||
corrispettivo;
|
||||
corrispettivo;
|
||||
|
||||
private DtbDocr dtbDocrBolla;
|
||||
|
||||
@@ -1270,15 +1267,6 @@ public class DtbDocr extends DtbBaseDocR implements EquatableEntityInterface<Dtb
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getFlagCosto() {
|
||||
return flagCosto;
|
||||
}
|
||||
|
||||
public DtbDocr setFlagCosto(String flagCosto) {
|
||||
this.flagCosto = flagCosto;
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getTipoEmissione() {
|
||||
return tipoEmissione;
|
||||
}
|
||||
@@ -1446,7 +1434,7 @@ public class DtbDocr extends DtbBaseDocR implements EquatableEntityInterface<Dtb
|
||||
if (this == other)
|
||||
return true;
|
||||
|
||||
if(hashCodeKey() != other.hashCodeKey())
|
||||
if (hashCodeKey() != other.hashCodeKey())
|
||||
return false;
|
||||
|
||||
return Objects.equals(getCodAnag(), other.getCodAnag()) && Objects.equals(getCodDtip(), other.getCodDtip()) && Objects.equals(getDataDoc(), other.getDataDoc()) && Objects.equals(getIdRiga(), other.getIdRiga()) && Objects.equals(getNumDoc(), other.getNumDoc()) && Objects.equals(getSerDoc(), other.getSerDoc());
|
||||
@@ -1465,6 +1453,6 @@ public class DtbDocr extends DtbBaseDocR implements EquatableEntityInterface<Dtb
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(getCodAnag(), getCodDtip(), getDataDoc(), getIdRiga(), getNumDoc(), getSerDoc(), getCodAliq(), getCodAnagComp(), getCodArtFor(), getCodCol(), getCodDtipComp(), getCodJcom(), getCodMart(), getCodMdep(), getCodPromo(), getCodTagl(), getCostoUnt(), getDataDocComp(), getDataOrd(), getDescrizione(), getDescrizioneEstesa(), getFlagEvasoForzato(), getImportoRiga(), getNumCnf(), getNumDocComp(), getNumOrd(), getPartitaMag(), getPercGest(), getPercIspe(), getPercOneri(), getPercPromo(), getPercProv(), getPercProv2(), getPesoLordo(), getPosizione(), getQtaCnf(), getQtaDoc(), getQtaDoc2(), getQtaDoc3(), getRapConv(), getRigaOrd(), getSconto5(), getSconto6(), getSconto7(), getSconto8(), getSerDocComp(), getUntDoc(), getUntDoc2(), getUntDoc3(), getValGest(), getValIspe(), getValOneri(), getValPromo(), getValProv(), getValProv2(), getValUnt(), getValUntIva(), getCodMtip(), getMatricola(), getDataInizComp(), getDataFineComp(), getCodKit(), getCodAlis(), getDataInsRow(), getNote(), getCodTcolUi(), getCodTcolUl(), getColliPedana(), getActivityIdRow(), getIdContratto(), getFlagSezione(), getPesoNetto(), getRigaKit(), getFlagIsKit(), getCodJfas(), getGestione(), getCodVdes(), getListino(), getFlagTd(), getSconto1(), getSconto2(), getSconto3(), getSconto4(), getPercAliq(), getDataScad(), getReso(), getFuoriAssortimento(), getMtbAart(), getUntMisDTO(), getGeneraMovCont(), getMtbPartitaMag(), getTipoIva(), getCodFornTd(), getCodVage(), getCodDivi(), getFlagPrzScontati(), getCambio(), getFlagCosto(), getTipoEmissione(), getDataReg(), getCodCcon(), getFlagPrzIva(), getSetDatiLisv(), getCodDtipBolla(), getDataDocBolla(), getSerDocBolla(), getNumDocBolla(), getIdRigaBolla(), getDocAp(), getDataInsTestata(), getCorrispettivo(), getDtbDocrBolla());
|
||||
return Objects.hash(getCodAnag(), getCodDtip(), getDataDoc(), getIdRiga(), getNumDoc(), getSerDoc(), getCodAliq(), getCodAnagComp(), getCodArtFor(), getCodCol(), getCodDtipComp(), getCodJcom(), getCodMart(), getCodMdep(), getCodPromo(), getCodTagl(), getCostoUnt(), getDataDocComp(), getDataOrd(), getDescrizione(), getDescrizioneEstesa(), getFlagEvasoForzato(), getImportoRiga(), getNumCnf(), getNumDocComp(), getNumOrd(), getPartitaMag(), getPercGest(), getPercIspe(), getPercOneri(), getPercPromo(), getPercProv(), getPercProv2(), getPesoLordo(), getPosizione(), getQtaCnf(), getQtaDoc(), getQtaDoc2(), getQtaDoc3(), getRapConv(), getRigaOrd(), getSconto5(), getSconto6(), getSconto7(), getSconto8(), getSerDocComp(), getUntDoc(), getUntDoc2(), getUntDoc3(), getValGest(), getValIspe(), getValOneri(), getValPromo(), getValProv(), getValProv2(), getValUnt(), getValUntIva(), getCodMtip(), getMatricola(), getDataInizComp(), getDataFineComp(), getCodKit(), getCodAlis(), getDataInsRow(), getNote(), getCodTcolUi(), getCodTcolUl(), getColliPedana(), getActivityIdRow(), getIdContratto(), getFlagSezione(), getPesoNetto(), getRigaKit(), getFlagIsKit(), getCodJfas(), getGestione(), getCodVdes(), getListino(), getFlagTd(), getSconto1(), getSconto2(), getSconto3(), getSconto4(), getPercAliq(), getDataScad(), getReso(), getFuoriAssortimento(), getMtbAart(), getUntMisDTO(), getGeneraMovCont(), getMtbPartitaMag(), getTipoIva(), getCodFornTd(), getCodVage(), getCodDivi(), getFlagPrzScontati(), getCambio(), getTipoEmissione(), getDataReg(), getCodCcon(), getFlagPrzIva(), getSetDatiLisv(), getCodDtipBolla(), getDataDocBolla(), getSerDocBolla(), getNumDocBolla(), getIdRigaBolla(), getDocAp(), getDataInsTestata(), getCorrispettivo(), getDtbDocrBolla());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user