git-svn-id: svn://10.65.10.50/branches/R_10_00@23004 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
7877d04c64
commit
a6899f1fb2
@ -10,6 +10,7 @@
|
||||
|
||||
bool THardy_transaction::is_server() const
|
||||
{
|
||||
/*
|
||||
bool i_am_server = false;
|
||||
TConfig config(CONFIG_INSTALL, "Main");
|
||||
const int type = config.get_int("Type");
|
||||
@ -19,6 +20,11 @@ bool THardy_transaction::is_server() const
|
||||
i_am_server = xvt_fsys_is_fixed_drive(study) != 0;
|
||||
}
|
||||
return i_am_server;
|
||||
*/
|
||||
static int nType = -1;
|
||||
if (nType < 0)
|
||||
nType = ini_get_int(CONFIG_INSTALL, "Main", "Type", 1);
|
||||
return nType < 3;
|
||||
}
|
||||
|
||||
bool THardy_transaction::is_by_postino() const
|
||||
|
@ -1183,19 +1183,20 @@ void TUpload2Campo::elabora_TF(THardy_upload_recordset& recset, TLog_report& log
|
||||
}
|
||||
|
||||
rigadoc.put(RDOC_CODIVA, codiva);
|
||||
|
||||
rigadoc.put(RDOC_LIVELLO, recset.get("CodiceLotto").as_string());
|
||||
|
||||
rigadoc.put(RDOC_CODMAG, codmag); //questo viene dall'agente ed è stato preso all'inizio del metodo
|
||||
}
|
||||
|
||||
/* Commentato in quanto sfuggono molti errori veri 10-10-2014
|
||||
const real totdoc = doc.totale_doc();
|
||||
if (totdoc.is_zero())
|
||||
doc.put(DOC_STATO, 5); // Evita problemi di contabilizzazione dei documenti nulli
|
||||
*/
|
||||
|
||||
//incredibilmente arriva in fondo
|
||||
TString msg;
|
||||
msg << datadoc.year() << "-" << codnum << "-" << ndoc << " Terminale: " << codice_terminale << " Cliente: " << codcf;
|
||||
msg << datadoc.year() << "-" << codnum << "-" << ndoc
|
||||
<< " Terminale: " << codice_terminale << " Cliente: " << codcf;
|
||||
//se può scrivere...
|
||||
if (_can_write)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user