Patch level : 10.0
Files correlati : Ricompilazione Demo : [ ] Commento : Corretta abilitazione bottone email in base all'indirizzo di posta del cliente correntemente selezionato git-svn-id: svn://10.65.10.50/branches/R_10_00@21922 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
f050c21bde
commit
2e1de295fb
@ -1093,18 +1093,11 @@ void TReport_doc_app::add_ndoc_filter(TString& query, bool from) const
|
||||
void TReport_doc_app::add_filter(TString& query, bool from) const
|
||||
{
|
||||
const char tipost = _msk->get(F_ORDERING)[0];
|
||||
|
||||
switch (tipost)
|
||||
{
|
||||
case 'D' :
|
||||
add_data_filter(query, from);
|
||||
break;
|
||||
case 'C' :
|
||||
add_cli_filter(query, from);
|
||||
break;
|
||||
default :
|
||||
add_ndoc_filter(query, from);
|
||||
break;
|
||||
case 'D': add_data_filter(query, from); break;
|
||||
case 'C': add_cli_filter(query, from); break;
|
||||
default : add_ndoc_filter(query, from); break;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -623,7 +623,7 @@ bool TDocumento::modificabile() const
|
||||
const char stato_attuale = stato();
|
||||
|
||||
if (stato_attuale <= ' ')
|
||||
return TRUE;
|
||||
return true;
|
||||
|
||||
const TString& stati_modifica = tipo().stati_iniziali_modifica();
|
||||
return stati_modifica.blank() || stati_modifica.find(stato_attuale) >= 0;
|
||||
@ -634,7 +634,7 @@ bool TDocumento::cancellabile() const
|
||||
const char stato_attuale = stato();
|
||||
|
||||
if (stato_attuale <= ' ')
|
||||
return TRUE;
|
||||
return true;
|
||||
|
||||
const TString& stati_cancellazione = tipo().stati_iniziali_cancellazione();
|
||||
return stati_cancellazione.blank() || stati_cancellazione.find(stato_attuale) >= 0;
|
||||
@ -807,7 +807,7 @@ int TDocumento::read(TBaseisamfile& f, word op, word lockop)
|
||||
st_agg->add(row(i));
|
||||
else
|
||||
st_agg->sub(row(i));
|
||||
_docs_to_agg.add(key, st_agg, TRUE);
|
||||
_docs_to_agg.add(key, st_agg, true);
|
||||
}
|
||||
else
|
||||
if (lockop == _unlock && o != NULL)
|
||||
@ -1275,7 +1275,7 @@ int TDocumento::write_rewrite(TBaseisamfile & f, bool re) const
|
||||
|
||||
rm.put(RMOVMAG_QUANT, qta);
|
||||
|
||||
TCurrency_documento prezzo(r.prezzo(TRUE, FALSE), *this, TRUE);
|
||||
TCurrency_documento prezzo(r.prezzo(true, FALSE), *this, true);
|
||||
|
||||
prezzo.change_to_firm_val();
|
||||
rm.put(RMOVMAG_PREZZO, prezzo.get_num());
|
||||
@ -1373,7 +1373,7 @@ int TDocumento::write_rewrite(TBaseisamfile & f, bool re) const
|
||||
TLocalisamfile anamag(LF_ANAMAG);
|
||||
TLocalisamfile codalt(LF_CODCORR);
|
||||
codalt.setkey(2);
|
||||
bool docevaso = TRUE;
|
||||
bool docevaso = true;
|
||||
const TDate datacons(get_date(DOC_DATACONS));
|
||||
const TString80 codcms(get(DOC_CODCMS));
|
||||
const TString80 fascms(get(DOC_FASCMS));
|
||||
@ -1447,7 +1447,7 @@ int TDocumento::write_rewrite(TBaseisamfile & f, bool re) const
|
||||
if (st_agg == NULL)
|
||||
{
|
||||
st_agg = new TStats_agg;
|
||||
_docs_to_agg.add(key, st_agg, TRUE);
|
||||
_docs_to_agg.add(key, st_agg, true);
|
||||
}
|
||||
int i;
|
||||
|
||||
@ -1642,7 +1642,7 @@ void TDocumento::calc_provvigione(TProvvigioni_agente & provv, const TString & k
|
||||
|
||||
// Crea le nuove rate provvigionali
|
||||
const bool isnew = provv.items() == 0; // Il documento non ha righe provvigionali
|
||||
TRate_doc& rd = provv.rate(anno, codnum, ndoc, isnew ? TRUE : FALSE);
|
||||
TRate_doc& rd = provv.rate(anno, codnum, ndoc, isnew ? true : FALSE);
|
||||
|
||||
// A questo punto rd e' vuoto: settiamo i dati del documento:
|
||||
TToken_string t;
|
||||
@ -1673,7 +1673,7 @@ void TDocumento::calc_provvigione(TProvvigioni_agente & provv, const TString & k
|
||||
// Impostazione prima rata solo se la provvigione sul fatturato è diversa da 0
|
||||
if (first_rata_ok)
|
||||
{
|
||||
TRata& rt = rd.row(0,TRUE);
|
||||
TRata& rt = rd.row(0,true);
|
||||
rt.set_rata(0); rt.set_datascad(datadoc); rt.set_tipopag(1);
|
||||
rt.set_imprata(anticipo.get_num()); rt.set_impprovv(provv_fat.get_num());
|
||||
rt.set_generata(generata);
|
||||
@ -1688,12 +1688,12 @@ void TDocumento::calc_provvigione(TProvvigioni_agente & provv, const TString & k
|
||||
break;
|
||||
|
||||
const int index = is_anticipo ? i : i - 1;
|
||||
TRata& rt = rd.row(first_rata_ok ? i : i - 1, TRUE);
|
||||
TRata& rt = rd.row(first_rata_ok ? i : i - 1, true);
|
||||
rt.set_rata(i);
|
||||
rt.set_datascad(pag1.data_rata(index));
|
||||
rt.set_tipopag(pag1.tipo_rata(index));
|
||||
rt.set_imprata(pag1.importo_rata(index,valuta ? TRUE : FALSE));
|
||||
rt.set_impprovv(pag2->importo_rata(i-1,valuta ? TRUE : FALSE));
|
||||
rt.set_imprata(pag1.importo_rata(index,valuta ? true : FALSE));
|
||||
rt.set_impprovv(pag2->importo_rata(i-1,valuta ? true : FALSE));
|
||||
rt.set_generata(generata);
|
||||
}
|
||||
|
||||
@ -2404,12 +2404,12 @@ TPagamento& TDocumento::pagamento()
|
||||
{
|
||||
_pag.set_code(codpag);
|
||||
_pag.read();
|
||||
_pag.set_inizio(data_in); // Perche' rispetta rate TRUE?
|
||||
_pag.set_inizio(data_in); // Perche' rispetta rate true?
|
||||
}
|
||||
else
|
||||
{
|
||||
if (data_in != _pag.get_datadoc())
|
||||
_pag.set_inizio(data_in); // Perche' rispetta rate TRUE?
|
||||
_pag.set_inizio(data_in); // Perche' rispetta rate true?
|
||||
}
|
||||
|
||||
return _pag;
|
||||
@ -2711,7 +2711,7 @@ void TDocumento::update_spese_aut(TString_array & spese_aut, bool preserve_old,
|
||||
{
|
||||
if (preserve_old)
|
||||
return;
|
||||
destroy_row(i, TRUE);
|
||||
destroy_row(i, true);
|
||||
if (interactive)
|
||||
sh->destroy(i - 1);
|
||||
}
|
||||
|
@ -1177,7 +1177,7 @@ void TDocumento_mask::cli2mask(bool force_load)
|
||||
set(F_STATOCF, c.get(CLI_STATOCF));
|
||||
check_field( F_CODINDSP );
|
||||
}
|
||||
const TString4 newcodval(get(F_CODVAL));
|
||||
const TString4 newcodval = get(F_CODVAL);
|
||||
|
||||
short pos = id2pos(F_CAMBIO);
|
||||
if ((pos >= 0) && newcodval.empty())
|
||||
@ -1220,6 +1220,10 @@ void TDocumento_mask::cli2mask(bool force_load)
|
||||
|
||||
enable(F_CODCONT, gescontr);
|
||||
enable(F_DESCONT, gescontr);
|
||||
|
||||
// Accendi bottone mail se possibile
|
||||
const TString& email = c.get(CLI_DOCMAIL);
|
||||
enable(DLG_EMAIL, email.full());
|
||||
}
|
||||
|
||||
void TDocumento_mask::sconto_testa2mask()
|
||||
|
Loading…
x
Reference in New Issue
Block a user