Patch level : 10.1026
Files correlati : ve0.exe Ricompilazione Demo : [ ] Commento : Aggiunto un parametro nel profilo documento CHECK_DOUBLE_ART=X che da un avvestimento quando si inserisce un articolo gia' presente sul documento Modificato HCAOPT in HEAD_CA_OPT git-svn-id: svn://10.65.10.50/branches/R_10_00@22273 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
3023ac833f
commit
6cdba634bf
@ -241,7 +241,7 @@ class TTipo_documento : public TRectype // velib03
|
||||
char _tipocf;
|
||||
char _tipocr;
|
||||
char _check_qta;
|
||||
bool _cnt_prezzi, _show_evaded_lines, _load_cont, _non_evadere, _hca_req;
|
||||
bool _cnt_prezzi, _show_evaded_lines, _load_cont, _non_evadere, _hca_req, _check_double_art;
|
||||
|
||||
protected:
|
||||
void add_formula_if_needed(TConfig& profile, TString& variable, const char* varname, const char* formula);
|
||||
@ -347,6 +347,8 @@ public:
|
||||
bool mostra_righe_evase_in_elaborazione() const { return _show_evaded_lines; }
|
||||
bool da_evadere() const { return !_non_evadere; }
|
||||
bool head_ca_required() const { return _hca_req; }
|
||||
bool check_double_art() const { return _check_double_art; }
|
||||
|
||||
|
||||
TTipo_documento(const char* tipodoc = NULL);
|
||||
TTipo_documento(const TRectype& rec);
|
||||
|
@ -79,7 +79,7 @@ void TTipo_riga_documento::read_formule()
|
||||
_no_desc = profile.get_bool("NODESC");
|
||||
_formule = profile.get("CAMPICALC");
|
||||
_extended_desc_search = profile.get_bool("EXTDESCSRC");
|
||||
// _extended_desc_search = ini_get_bool(CONFIG_DITTA, "ve", "EXTDESCSRC");
|
||||
// _extended_desc_search = ini_get_bool(CONFIG_DITTA, "ba", "CUSTOM_CURSOR_2", false, LF_ANAMAG ) )
|
||||
const TString& calcoli = profile.get("CALCOLI");
|
||||
if (calcoli == "*")
|
||||
{
|
||||
|
@ -425,8 +425,8 @@ void TTipo_documento::read_formule()
|
||||
_show_evaded_lines = !prof.get_bool("NASCONDI_RIGHE_EVASE"); // Normalmente mostra anche evase
|
||||
_non_evadere = prof.get_bool("NON_EVADERE"); // Normalmente mostra anche evase
|
||||
_module = prof.get("MODULE", NULL, -1, "ve").left(2);
|
||||
_hca_req = !prof.get_bool("HCAOPT");
|
||||
|
||||
_hca_req = !prof.get_bool("HEAD_CA_OPT");
|
||||
_check_double_art = prof.get_bool("CHECK_DOUBLE_ART");
|
||||
}
|
||||
|
||||
bool TTipo_documento::stato_with_mov_mag(const char stato) const
|
||||
|
@ -1811,6 +1811,16 @@ bool TDocumento_mask::ss_notify( TSheet_field& ss, int r, KEY key )
|
||||
if (m.is_calculated_page(m.curr_page()))
|
||||
m.update_progs();
|
||||
m.highlight_row(r);
|
||||
if (doc.tipo().check_double_art())
|
||||
{
|
||||
const int rows = doc.physical_rows();
|
||||
const TString codart = riga.get(RDOC_CODART);
|
||||
|
||||
for (int i = 1; i <= rows; i++)
|
||||
if (i != r + 1 && codart == doc[i].get(RDOC_CODART))
|
||||
if ( !yesno_box(FR("L'articolo %s e' presente alla riga %d, si desdiera continuare"), (const char *)codart, i))
|
||||
return false;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case K_CTRL + K_ENTER: // inizio modifica
|
||||
|
Loading…
x
Reference in New Issue
Block a user