Patch level : 10.0
Files correlati : ve0, ve6 Ricompilazione Demo : [ ] Commento : Il flag "ricarica descrizioni" ora gestisce anche l'eventuale descrizione aggiuntiva git-svn-id: svn://10.65.10.50/branches/R_10_00@22546 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
eca1e42393
commit
e2adc60990
@ -19,7 +19,7 @@
|
||||
// Definizione della classe dell'applicazione motore
|
||||
class TMotore_application : public TRelation_application
|
||||
{
|
||||
TArray _file; // Tutti i fiels da usare
|
||||
TArray _file; // Tutti i file da usare
|
||||
|
||||
// Puntatore al profilo del documento caricato
|
||||
TConfig * _config_ditta;
|
||||
|
@ -3088,8 +3088,8 @@ error_type TContabilizzazione::write_all_re(TDocumento& doc, TMovimentoPN_VE & m
|
||||
error_type TContabilizzazione::compile_head_anticipo(TDocumento& doc)
|
||||
{
|
||||
TString descr;
|
||||
TString16 codcaus = doc.clifor().vendite().get(CFV_CODCAUSINC);
|
||||
|
||||
TString8 codcaus = doc.clifor().vendite().get(CFV_CODCAUSINC);
|
||||
if (codcaus.blank())
|
||||
codcaus = doc.tipo().caus_anticipo();
|
||||
const TDate datareg = _movimento->curr().get_date(MOV_DATAREG);
|
||||
@ -3111,7 +3111,7 @@ error_type TContabilizzazione::compile_head_anticipo(TDocumento& doc)
|
||||
head.zero(MOV_DATA74TER);
|
||||
head.put(MOV_TIPODOC,_caus->tipo_doc());
|
||||
head.put(MOV_CODCAUS,_caus->codice());
|
||||
descr = doc.get_bool(DOC_ACCSALDO) ? "Saldo fattura" : "Acconto fattura";
|
||||
descr = doc.get_bool(DOC_ACCSALDO) ? TR("Saldo fattura") : TR("Acconto fattura");
|
||||
descr << " n. " << doc.numero();
|
||||
descr << " del " << doc.get_date(DOC_DATADOC).string();
|
||||
head.put(MOV_DESCR,descr);
|
||||
|
@ -665,11 +665,23 @@ bool TConsegna_ordini::elabora(TLista_documenti& doc_in, TLista_documenti& doc_o
|
||||
const TString& codart = outrec.get(RDOC_CODARTMAG);
|
||||
if (codart.full() && reload_descriptions())
|
||||
{
|
||||
outrec.put(RDOC_DESCR, cache().get(LF_ANAMAG, codart, ANAMAG_DESCR));
|
||||
const TRectype& anamag = cache().get(LF_ANAMAG, codart);
|
||||
outrec.put(RDOC_DESCR, anamag.get(ANAMAG_DESCR));
|
||||
|
||||
// Euroforesi 12/01/2012 richiede anche descrizione aggiuntiva
|
||||
const TString& agg = anamag.get(ANAMAG_DESCRAGG);
|
||||
if (agg.full())
|
||||
{
|
||||
outrec.put(RDOC_DESCLUNGA, true);
|
||||
outrec.put(RDOC_DESCEST, agg);
|
||||
}
|
||||
else
|
||||
{
|
||||
outrec.zero(RDOC_DESCLUNGA);
|
||||
outrec.zero(RDOC_DESCEST);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (prezzo_da_ordine())
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user