Patch level : 4.0 418
Files correlati : ve0.exe ve1.exe ve4.exe ve5.exe ve6.exe Ricompilazione Demo : [ ] Commento : Bug 0000655 Modificare il meccanismo di proposta delle spese automatiche da cliente in modo da proporlo solo se nel documento non sono mai state inserite e al cambio cliente git-svn-id: svn://10.65.10.50/trunk@13999 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
90877654f4
commit
4d9bbac347
@ -855,7 +855,7 @@ int TDocumento::write_rewrite(TBaseisamfile & f, bool re) const
|
|||||||
|
|
||||||
if (!doc_bloccato)
|
if (!doc_bloccato)
|
||||||
{
|
{
|
||||||
if(tipo().spese_aut() && !get_bool("SPESEUPD"))
|
if(tipo().spese_aut() && !get_bool(DOC_SPESEUPD))
|
||||||
{
|
{
|
||||||
TString16 name("CODSP0");
|
TString16 name("CODSP0");
|
||||||
TString_array spese;
|
TString_array spese;
|
||||||
@ -873,7 +873,6 @@ int TDocumento::write_rewrite(TBaseisamfile & f, bool re) const
|
|||||||
|
|
||||||
myself.update_conai();
|
myself.update_conai();
|
||||||
myself.set_row_ids();
|
myself.set_row_ids();
|
||||||
// const int rows = physical_rows();
|
|
||||||
|
|
||||||
long num = get_long("MOVMAG");
|
long num = get_long("MOVMAG");
|
||||||
|
|
||||||
@ -2076,14 +2075,6 @@ void TDocumento::put_str(const char* fieldname, const char* val)
|
|||||||
else
|
else
|
||||||
dirty_fields();
|
dirty_fields();
|
||||||
}
|
}
|
||||||
else
|
|
||||||
if (strcmp(fieldname, DOC_CODCF) == 0)
|
|
||||||
{
|
|
||||||
const TString16 v(val);
|
|
||||||
put("SPESEUPD", TRectype::get("CODCF") == v);
|
|
||||||
TAuto_variable_rectype::put_str(fieldname, v);
|
|
||||||
dirty_fields();
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
TAuto_variable_rectype::put_str(fieldname, val);
|
TAuto_variable_rectype::put_str(fieldname, val);
|
||||||
@ -2149,6 +2140,7 @@ TDocumento & TDocumento::copy(const TDocumento & d)
|
|||||||
TMultiple_rectype::operator=((TMultiple_rectype &)d);
|
TMultiple_rectype::operator=((TMultiple_rectype &)d);
|
||||||
reset_fields(*this);
|
reset_fields(*this);
|
||||||
set_fields(*this);
|
set_fields(*this);
|
||||||
|
put(DOC_SPESEUPD, d.get(DOC_SPESEUPD));
|
||||||
for (int i = physical_rows(); i > 0; i--)
|
for (int i = physical_rows(); i > 0; i--)
|
||||||
{
|
{
|
||||||
TRiga_documento & r = row(i);
|
TRiga_documento & r = row(i);
|
||||||
@ -2213,7 +2205,7 @@ TRecord_array& TDocumento::body(int logicnum) const
|
|||||||
|
|
||||||
void TDocumento::update_spese_aut(TString_array & spese_aut, bool preserve_old, TSheet_field * sh)
|
void TDocumento::update_spese_aut(TString_array & spese_aut, bool preserve_old, TSheet_field * sh)
|
||||||
{
|
{
|
||||||
const bool updated = get_bool("SPESEUPD");
|
const bool updated = get_bool(DOC_SPESEUPD);
|
||||||
if (updated)
|
if (updated)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
@ -2305,7 +2297,7 @@ void TDocumento::update_spese_aut(TString_array & spese_aut, bool preserve_old,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
put("SPESEUPD", true);
|
put(DOC_SPESEUPD, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
real TDocumento::calc_conai_qta(int type)
|
real TDocumento::calc_conai_qta(int type)
|
||||||
|
@ -926,7 +926,6 @@ void TDocumento_mask::spese2mask()
|
|||||||
spese.add(s);
|
spese.add(s);
|
||||||
}
|
}
|
||||||
|
|
||||||
// doc().put("SPESEUPD", FALSE);
|
|
||||||
doc().put(DOC_CODVAL, get(F_CODVAL));
|
doc().put(DOC_CODVAL, get(F_CODVAL));
|
||||||
doc().put(DOC_CAMBIO, get(F_CAMBIO));
|
doc().put(DOC_CAMBIO, get(F_CAMBIO));
|
||||||
doc().put(DOC_CONTROEURO, get(F_CONTROEURO));
|
doc().put(DOC_CONTROEURO, get(F_CONTROEURO));
|
||||||
@ -1445,7 +1444,7 @@ bool TDocumento_mask::occas_handler( TMask_field& f, KEY key )
|
|||||||
|
|
||||||
bool TDocumento_mask::clifo_handler( TMask_field& f, KEY key )
|
bool TDocumento_mask::clifo_handler( TMask_field& f, KEY key )
|
||||||
{
|
{
|
||||||
if (key != K_ENTER && f.to_check(key, TRUE))
|
if (key != K_ENTER && f.to_check(key, true))
|
||||||
{
|
{
|
||||||
TDocumento_mask & m = (TDocumento_mask &) f.mask();
|
TDocumento_mask & m = (TDocumento_mask &) f.mask();
|
||||||
TDocumento & d = m.doc();
|
TDocumento & d = m.doc();
|
||||||
@ -1459,7 +1458,12 @@ bool TDocumento_mask::clifo_handler( TMask_field& f, KEY key )
|
|||||||
|
|
||||||
if ( cli_for.get_bool(CLI_SOSPESO) )
|
if ( cli_for.get_bool(CLI_SOSPESO) )
|
||||||
return f.error_box( "Il codice '%ld' e' sospeso e non puo' essere utilizzato", atol(f.get()));
|
return f.error_box( "Il codice '%ld' e' sospeso e non puo' essere utilizzato", atol(f.get()));
|
||||||
|
|
||||||
|
if (f.focusdirty())
|
||||||
|
d.put(DOC_SPESEUPD, false);
|
||||||
|
|
||||||
m.cli2mask();
|
m.cli2mask();
|
||||||
|
|
||||||
if (cli_for.occasionale())
|
if (cli_for.occasionale())
|
||||||
{
|
{
|
||||||
TOccasionale& occas = d.occas();
|
TOccasionale& occas = d.occas();
|
||||||
@ -1468,6 +1472,7 @@ bool TDocumento_mask::clifo_handler( TMask_field& f, KEY key )
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
d.zero(DOC_OCFPI);
|
d.zero(DOC_OCFPI);
|
||||||
|
|
||||||
}
|
}
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user