Patch level : 12.0 no patch
Files correlati : Commento : corretta la get_coddest dei documenti estesi, quando esiste un indirizzo di spedizione.
This commit is contained in:
parent
4c024d3cd6
commit
b73823580b
@ -303,6 +303,13 @@ bool TDocumentoEsteso::get_coddest(TString& coddest, TString& pec) const
|
|||||||
{
|
{
|
||||||
const TCli_for & clifo = clifor();
|
const TCli_for & clifo = clifor();
|
||||||
|
|
||||||
|
const int codindsp = get_int(DOC_CODINDSP);
|
||||||
|
|
||||||
|
if (codindsp > 0)
|
||||||
|
coddest = clifo.indsp(codindsp).get(IND_PADESTIN);
|
||||||
|
|
||||||
|
if (coddest.blank())
|
||||||
|
{
|
||||||
coddest = clifo.vendite().get(CFV_PADESTIN);
|
coddest = clifo.vendite().get(CFV_PADESTIN);
|
||||||
pec = clifo.get("PEC");
|
pec = clifo.get("PEC");
|
||||||
if (coddest.empty())
|
if (coddest.empty())
|
||||||
@ -320,12 +327,7 @@ bool TDocumentoEsteso::get_coddest(TString& coddest, TString& pec) const
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
pec = "";
|
pec = "";
|
||||||
|
}
|
||||||
const int codindsp = get_int(DOC_CODINDSP);
|
|
||||||
|
|
||||||
if (codindsp > 0)
|
|
||||||
coddest = clifo.indsp(codindsp).get(IND_PADESTIN);
|
|
||||||
|
|
||||||
|
|
||||||
return coddest.full();
|
return coddest.full();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user