diff --git a/cg/cg2100b.uml b/cg/cg2100b.uml index fc570e367..cf23c1c5b 100755 --- a/cg/cg2100b.uml +++ b/cg/cg2100b.uml @@ -201,23 +201,23 @@ BEGIN GROUP 3 END +GROUPBOX DLG_NULL 78 8 +BEGIN + PROMPT 1 10 "Voci di spesa per saldaconto" +END + NUMBER S_TOTDOC 15 0 BEGIN - PROMPT 1 10 "Totale documento " + PROMPT 2 11 "Totale documento " HELP "" FLAGS "R" PICTURE "." GROUP 5 END -GROUPBOX DLG_NULL 78 9 -BEGIN - PROMPT 0 9 "Voci di spesa per saldaconto" -END - NUMBER S_SPESE 15 0 BEGIN - PROMPT 1 12 "Spese e rimborsi " + PROMPT 2 12 "Spese e rimborsi " HELP "" FLAGS "R" PICTURE "." diff --git a/cg/cg2102.cpp b/cg/cg2102.cpp index e5eda1472..5e29af606 100755 --- a/cg/cg2102.cpp +++ b/cg/cg2102.cpp @@ -1350,7 +1350,7 @@ bool TPrimanota_application::datareg_handler(TMask_field& f, KEY key) gio.last_print().string(), ae); if (error) return FALSE; } - if (dr < gio.last_reg()) + if (key == K_TAB && dr < gio.last_reg()) f.warning_box("La data dell'operazione e' antecedente al %s,\n" "ultima registrazione sul libro giornale dell'esercizio %d", gio.last_reg().string(), ae); @@ -1381,7 +1381,7 @@ bool TPrimanota_application::datareg_handler(TMask_field& f, KEY key) reg.last_print().string(), (const char*)codreg, dr.year()); if (error) return FALSE; } - if (dr < reg.last_reg()) + if (key == K_TAB && dr < reg.last_reg()) f.warning_box("La data dell'operazione e' antecedente al %s,\n" "ultima registrazione sul registro '%s' dell'anno %d", reg.last_reg().string(), (const char*)codreg, dr.year()); diff --git a/cg/cg21sld.uml b/cg/cg21sld.uml index 9b229cd0a..f9cf51780 100755 --- a/cg/cg21sld.uml +++ b/cg/cg21sld.uml @@ -7,7 +7,7 @@ END NUMBER FS_IMPONIBILE 15 BEGIN - PROMPT 2 2 "Imponibile " + PROMPT 1 2 "Imponibile " PICTURE "." FLAGS "DR" END @@ -21,7 +21,7 @@ END NUMBER FS_SPESE 15 BEGIN - PROMPT 53 2 "Spese " + PROMPT 54 2 "Spese " PICTURE "." FLAGS "DR" END diff --git a/cg/cg5400.cpp b/cg/cg5400.cpp index b9d23b563..8068bcf9b 100755 --- a/cg/cg5400.cpp +++ b/cg/cg5400.cpp @@ -70,7 +70,7 @@ bool TRipristina_stampa::reg_restore(const TString& regist, const int ld = TDate::last_day(month, year); if (day > ld) day = ld; - TDate d(day, month, year); + TDate d(day, month, year); // Data di ripristino TRectype from(mov.curr()); from.zero(); TRectype to(from); @@ -99,8 +99,7 @@ bool TRipristina_stampa::reg_restore(const TString& regist, { p.addstatus(1); mov.read(_isequal, _lock); - mov.zero(fieldname); // Azzera flag STAMPATO o REGST - // if (giornale) mov.zero(MOV_NUMGIO); // Azzera numero riferimento giornale + mov.zero(fieldname); // Azzera flag STAMPATO o REGST ok = (mov.rewrite() == NOERR); if (!ok) @@ -108,19 +107,19 @@ bool TRipristina_stampa::reg_restore(const TString& regist, mov.get_long(MOV_NUMREG), mov.status()); } - --d; - if (d > inizio_anno) // Aggiorna data ultima stampa + if (d > inizio_anno) // Aggiorna data ultima stampa { - reg.put("D3", d); // Data ultima stampa + --d; + reg.put("D3", d); // Data ultima stampa if (!giornale) { const int mese = d.month(); if (reg.get_int("I4") > mese) - reg.put("I4", (long) mese); // Ultimo mese di stampa liquidazione + reg.put("I4", (long)mese); // Ultimo mese di stampa liquidazione if (reg.get_int("I8") >= mese) - reg.zero("I8"); // Mese di ultima stampa credito precedente + reg.zero("I8"); // Mese di ultima stampa credito precedente - TTable lim("LIM"); // Azzera i flag di stampa liquidazione + TTable lim("LIM"); // Azzera i flag di stampa liquidazione lim.put("CODTAB", format("%04d%02d", year, mese+1)); for (int err = lim.read(_isgteq); err == NOERR; err = lim.next()) {