diff --git a/tc/tc1100.cpp b/tc/tc1100.cpp index 6d630e1e8..c5deca78c 100755 --- a/tc/tc1100.cpp +++ b/tc/tc1100.cpp @@ -356,7 +356,17 @@ void TInvio_file::validate(TCursor& cur,TRecord_text &rec, TToken_string &s, TSt valore = app().get_descrdettaglio(); } else if (code == "_OPZIONI") - valore = ini_get_string(CONFIG_DITTA, "tc", s.get()); + { + const TString80 code = s.get(); + if (code == "ZUNUMEROINVIO") + { + const int inv = ini_get_int(CONFIG_DITTA, "tc", code) + 1; + + valore.format("%d", inv); + } + else + valore = ini_get_string(CONFIG_DITTA, "tc", code); + } else if (code == "_OGGI") { TDate data(TODAY);