Patch level : 10.0 patch 792
Files correlati : sc2.exe Ricompilazione Demo : [ ] Commento : Bug 0001675: scadenziario, richiesta totali per tipo pagamento e scadenza scadenziario, richiesta totali per tipo pagamento e scadenza git-svn-id: svn://10.65.10.50/branches/R_10_00@20806 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
		
							parent
							
								
									e9950bda04
								
							
						
					
					
						commit
						72cc8ea919
					
				@ -61,7 +61,6 @@ class TStampaScadenzario : public TPrintapp
 | 
			
		||||
            _ratesald,                                       // VERO=stampa anche le rate saldate
 | 
			
		||||
            _ordata,                                         // VERO=ordine primario per data, FALSO=ordine primario impostato da _ordcod
 | 
			
		||||
            _ordcod,                                         // VERO=ordine per codice, FALSO=ordine per ragione sociale
 | 
			
		||||
            _striepilogo,                                    // VERO=stampa il riepilogo mensile per pagamento
 | 
			
		||||
            _stvaluta,                                       // Vero se abilitata la stampa in valuta;
 | 
			
		||||
            _group_ban,                                      // Vero se abilitato il raggruppamento per banca                     
 | 
			
		||||
            _totbank_printed;																 // Vero se é stato stampato il totale per banca
 | 
			
		||||
@ -70,6 +69,7 @@ class TStampaScadenzario : public TPrintapp
 | 
			
		||||
                                                             // in ordine di data scadenza
 | 
			
		||||
                                                             // Se _tipost=altri scorre il piano dei conti. 
 | 
			
		||||
                                                             // Se _tipost=clienti || fornitori scorre clifo.
 | 
			
		||||
  int       _striepilogo;                                    // 0 = non stampa 1 = stampa il riepilogo giornaliero per pagamento 2 = stampa il riepilogo mensile per pagamento
 | 
			
		||||
	TString16	_codag; 																				 // codice agente selezionato                                                            
 | 
			
		||||
	int _tipopag;																							 // tipo pagamento selezionato
 | 
			
		||||
	TRecnotype _last_bank_rec;																 // ultimo record con banca stampato
 | 
			
		||||
@ -987,7 +987,7 @@ bool TStampaScadenzario::set_print(int)
 | 
			
		||||
    _ratesald = _m->get_bool(F_RATESALDATE);
 | 
			
		||||
    _ordata   = _m->get_bool(F_ORDDATA);
 | 
			
		||||
    _stvaluta = _m->get_bool(F_VALUTA);
 | 
			
		||||
    _striepilogo = _m->get_bool(F_RIEPILOGO);
 | 
			
		||||
    _striepilogo = _m->get_int(F_RIEPILOGO);
 | 
			
		||||
    _datai    = (const char *)(_m->get(F_DATASCADENZAI));
 | 
			
		||||
    _dataf    = (const char *)(_m->get(F_DATASCADENZAF));
 | 
			
		||||
    _datas    = (const char *)(_m->get(F_DATASTAMPA));
 | 
			
		||||
@ -1364,7 +1364,10 @@ void TStampaScadenzario::print_riepilogo(int &nriga, bool type)
 | 
			
		||||
  {               
 | 
			
		||||
    if (_ordata)                     
 | 
			
		||||
    {
 | 
			
		||||
      set_row(nriga++,"@0g! %s@82g!",itom(_cur_data.month()));
 | 
			
		||||
			if (_striepilogo == 2)
 | 
			
		||||
	      set_row(nriga++,"@0g! %s@82g!", itom(_cur_data.month()));
 | 
			
		||||
			else
 | 
			
		||||
	      set_row(nriga++,"@0g! %s@82g!", _cur_data.string(brief));
 | 
			
		||||
      set_row(nriga++,"%s",(const char*)s);
 | 
			
		||||
    }    
 | 
			
		||||
  } 
 | 
			
		||||
@ -1486,9 +1489,12 @@ void TStampaScadenzario::print_totali(int &nriga, bool month_changed, bool ended
 | 
			
		||||
  {
 | 
			
		||||
    set_row(nriga,FR("@36g** TOTALI DI @51g%s"),itom(_cur_data.month()));
 | 
			
		||||
    print_rows_totali(nriga, monthly);
 | 
			
		||||
    if (_striepilogo) 
 | 
			
		||||
    if (_striepilogo > 0) 
 | 
			
		||||
      print_riepilogo(nriga,FALSE);                           
 | 
			
		||||
  }  
 | 
			
		||||
	else
 | 
			
		||||
    if (_striepilogo == 1) 
 | 
			
		||||
      print_riepilogo(nriga,FALSE);                           
 | 
			
		||||
  if (ended)
 | 
			
		||||
  {
 | 
			
		||||
  	if (_group_ban)
 | 
			
		||||
@ -1499,7 +1505,8 @@ void TStampaScadenzario::print_totali(int &nriga, bool month_changed, bool ended
 | 
			
		||||
    set_row(nriga++,"");
 | 
			
		||||
    set_row(nriga,FR("@36g** TOTALI PERIODO"));
 | 
			
		||||
    print_rows_totali(nriga, period);
 | 
			
		||||
    if (_striepilogo) print_riepilogo(nriga,TRUE);
 | 
			
		||||
    if (_striepilogo > 0)
 | 
			
		||||
			print_riepilogo(nriga,TRUE);
 | 
			
		||||
    set_row(nriga++,"");set_row(nriga++,"");
 | 
			
		||||
    set_row(nriga++,"");set_row(nriga++,"");
 | 
			
		||||
  }
 | 
			
		||||
@ -1522,7 +1529,8 @@ void TStampaScadenzario::print_totali_c(int &nriga, bool ended)
 | 
			
		||||
    set_row(nriga,FR("@70g** TOTALE CONTO"));
 | 
			
		||||
 | 
			
		||||
  print_rows_totali(nriga, single);
 | 
			
		||||
  if (_striepilogo) print_riepilogo(nriga,FALSE);                           
 | 
			
		||||
  if (_striepilogo > 0 )
 | 
			
		||||
		print_riepilogo(nriga,FALSE);                           
 | 
			
		||||
  if (ended)
 | 
			
		||||
  {
 | 
			
		||||
  	if (_group_ban)
 | 
			
		||||
@ -1532,7 +1540,8 @@ void TStampaScadenzario::print_totali_c(int &nriga, bool ended)
 | 
			
		||||
  	}	
 | 
			
		||||
    set_row(nriga,FR("@70g** TOTALE GENERALE"));
 | 
			
		||||
    print_rows_totali(nriga, period);
 | 
			
		||||
    if (_striepilogo) print_riepilogo(nriga,TRUE);
 | 
			
		||||
    if (_striepilogo > 0 )
 | 
			
		||||
			print_riepilogo(nriga,TRUE);
 | 
			
		||||
    set_row(nriga++,"");set_row(nriga++,"");
 | 
			
		||||
    set_row(nriga++,"");set_row(nriga++,"");
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
@ -77,9 +77,12 @@ BEGIN
 | 
			
		||||
  HELP "Selezionare se si vuole la stampa in valuta"
 | 
			
		||||
END
 | 
			
		||||
 | 
			
		||||
BOOLEAN F_RIEPILOGO
 | 
			
		||||
LISTBOX F_RIEPILOGO 1 12
 | 
			
		||||
BEGIN
 | 
			
		||||
  PROMPT 33 7 "Stampa prospetto per pagamento"
 | 
			
		||||
  PROMPT 33 7 "Prospetto per pagamento"
 | 
			
		||||
  ITEM "0|Nessuno"
 | 
			
		||||
  ITEM "1|Giornaliero"
 | 
			
		||||
  ITEM "2|Mensile"
 | 
			
		||||
  HELP "Selezionare se e' necessaria la stampa del prospetto mensile per pagamento"
 | 
			
		||||
END
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user