Correzione MI3564.
git-svn-id: svn://10.65.10.50/trunk@4257 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
8e04247b85
commit
64bc701429
@ -1450,7 +1450,7 @@ bool TMastrini_application::preprocess_page(int file, int counter)
|
||||
|
||||
if ((_tipostampa == 1) || (_tipostampa == 2))
|
||||
{
|
||||
if ((almeno_un_record()) && (_totale_saldo != 0))
|
||||
if ((almeno_un_record() && _totale_saldo != ZERO ) || (_totale_saldo != ZERO && _tipostampa == 2))
|
||||
{
|
||||
_puoi_stampare = TRUE;
|
||||
|
||||
@ -2430,22 +2430,17 @@ bool TMastrini_application::set_print(int)
|
||||
|
||||
reset_files(); //resetta l'albero di stampa
|
||||
add_file(LF_SALDI);
|
||||
add_file(LF_RMOV,LF_SALDI);
|
||||
|
||||
add_file(LF_RMOV,LF_SALDI);
|
||||
select_cursor(_cur1);
|
||||
|
||||
TRectype da(LF_SALDI), a(LF_SALDI);
|
||||
|
||||
|
||||
TRectype da(LF_SALDI), a(LF_SALDI);
|
||||
da.put(SLD_GRUPPO,gruppoini);
|
||||
da.put(SLD_CONTO,contoini);
|
||||
da.put(SLD_SOTTOCONTO,sottocontoini);
|
||||
|
||||
a.put(SLD_GRUPPO,gruppofine);
|
||||
a.put(SLD_CONTO,contofine);
|
||||
a.put(SLD_SOTTOCONTO,sottocontofine);
|
||||
|
||||
a.put(SLD_SOTTOCONTO,sottocontofine);
|
||||
current_cursor()->setregion(da, a);
|
||||
|
||||
if (_stampatotiva)
|
||||
_b.destroy();
|
||||
|
||||
@ -3970,6 +3965,7 @@ bool TMastrini_application::user_create()
|
||||
exp.add("SOTTOCONTO=SOTTOCONTO");
|
||||
_rel->add(LF_RMOV,exp,2,LF_SALDI);
|
||||
|
||||
|
||||
// _cur1=add_cursor(new TCursor(_rel,"FLSCA=\"F\"",2));
|
||||
_cur1=add_cursor(new TCursor(_rel,"FLSCA=\" \"",2));
|
||||
_nditte = new TLocalisamfile (LF_NDITTE);
|
||||
|
Loading…
x
Reference in New Issue
Block a user