Patch level : 12.0 494

Files correlati     : ve0.exe ve6.exe

richieste da CRPA
Modificata la descrizione nell'ordine nell'evasione ordini per renderla più leggibile.
Non aggiornava il protocollo IVA se preso dal registro (saltata una precedente correzione ?)

git-svn-id: svn://10.65.10.50/branches/R_10_00@24251 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
bonazzi 2018-01-07 21:39:00 +00:00
parent a761af19ec
commit 733a27925a
2 changed files with 17 additions and 4 deletions

View File

@ -1221,6 +1221,7 @@ error_type TContabilizzazione::compile_head_mov(TDocumento& doc)
_error = ultprot_error; _error = ultprot_error;
return _error; return _error;
} }
reg.update(ult_prot, doc.data());
} }
else // oppure dal numero di documento else // oppure dal numero di documento
ult_prot = doc.numero(); ult_prot = doc.numero();
@ -4370,8 +4371,20 @@ error_type TContabilizzazione::write_regolarizzazione(const TDocumento& doc, TMo
descr << TR("Regolarizzazione ") << doc.get(DOC_CODNUM) << '/' << doc.numero() << TR(" del ") << doc.get(DOC_DATADOC); descr << TR("Regolarizzazione ") << doc.get(DOC_CODNUM) << '/' << doc.numero() << TR(" del ") << doc.get(DOC_DATADOC);
head.put(MOV_DESCR,descr); head.put(MOV_DESCR,descr);
TBill contocf; caus.bill(1, contocf);
char tcf_reg = contocf.tipo();
if (tcf_reg == 'F')
{
head.put(MOV_TIPO, "F");
head.put(MOV_CODCF, doc.clifor().get_long(CLI_CODCF));
}
else
{
// Reperisce l'eventuale cliente associato al fornitore e lo propone
head.put(MOV_TIPO, "C"); head.put(MOV_TIPO, "C");
head.put(MOV_CODCF, doc.clifor().get_long(CLI_CODCFASS)); head.put(MOV_CODCF, doc.clifor().get_long(CLI_CODCFASS));
}
// Scrive sulla testata dell'anticipo il numero di documento originale // Scrive sulla testata dell'anticipo il numero di documento originale
head.put(MOV_DPROVV, doc.get(DOC_PROVV)); head.put(MOV_DPROVV, doc.get(DOC_PROVV));

View File

@ -2964,13 +2964,13 @@ bool TDocument_tree::get_description(TString& str) const
const TCodice_articolo codart = rec.get(RDOC_CODART); const TCodice_articolo codart = rec.get(RDOC_CODART);
str = codart; str = codart;
str.left_just(21); str.left_just(21);
str << rec.get(RDOC_DESCR).left(30); str << rec.get(RDOC_DESCR);
str.left_just(52);
const TString& tipodoc = testata.get(DOC_TIPODOC); const TString& tipodoc = testata.get(DOC_TIPODOC);
const TTipo_documento& tipo = cached_tipodoc(tipodoc); const TTipo_documento& tipo = cached_tipodoc(tipodoc);
if (codart.not_empty()) if (codart.not_empty())
{ {
str.left_just(52);
const real qta = rec.get_real(tipo.field_qta()); const real qta = rec.get_real(tipo.field_qta());
str << qta.string("###.###.##@,@@@"); str << qta.string("###.###.##@,@@@");