Errori corretti in liquidazione
git-svn-id: svn://10.65.10.50/trunk@1580 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
		
							parent
							
								
									39e9649462
								
							
						
					
					
						commit
						e2dfb5581c
					
				| @ -147,7 +147,7 @@ bool TLiquidazione_app::update_firm(int month, bool recalc) | |||||||
|   |   | ||||||
|   look_lim(liq_month(month), TRUE); |   look_lim(liq_month(month), TRUE); | ||||||
|    |    | ||||||
|   if (_isregis && _lim->get_bool("B1") && _month != 13)   |   if (_isfinal && _lim->get_bool("B1") && _month != 13)   | ||||||
|     return TRUE; |     return TRUE; | ||||||
|    |    | ||||||
|   TConfig cnf(CONFIG_DITTA, "cg"); |   TConfig cnf(CONFIG_DITTA, "cg"); | ||||||
| @ -255,10 +255,9 @@ bool TLiquidazione_app::update_firm(int month, bool recalc) | |||||||
|           _pla->rewrite(); |           _pla->rewrite(); | ||||||
|         } |         } | ||||||
|          |          | ||||||
|                                            |  | ||||||
|         for (_reg->first(); _reg->good(); _reg->next()) |         for (_reg->first(); _reg->good(); _reg->next()) | ||||||
|         { |         { | ||||||
|           if (codatt == _reg->get("S8")) |           if (codatt == _reg->get("S8") || quater) | ||||||
|           { |           { | ||||||
|             if (!riepliq) riepliq = _reg->get_bool("B6"); |             if (!riepliq) riepliq = _reg->get_bool("B6"); | ||||||
|             if (!stliq)   stliq   = _reg->get_bool("B7"); |             if (!stliq)   stliq   = _reg->get_bool("B7"); | ||||||
|  | |||||||
| @ -855,19 +855,19 @@ void TLiquidazione_app::set_firm(_DescrItem& d) | |||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
|   reset_header(); |   reset_header(); | ||||||
| 
 |   int soh = 1; | ||||||
|   if (!_isregis) |   if (!_isregis) | ||||||
|   { |   { | ||||||
|     set_header(1,"Ditta %s %s@109gData @<@125gPag. @#",  |     set_header(soh++,"Ditta %s %s@109gData @<@125gPag. @#",  | ||||||
|                (const char*)(d._s0), (const char*)(d._s1));  |                (const char*)(d._s0), (const char*)(d._s1));  | ||||||
|     set_header(2,"");    |     set_header(soh++,"");    | ||||||
|   } |   } | ||||||
|   set_header(3,sep); |   set_header(soh++,sep); | ||||||
|   set_header(4,"%s@102gFrequenza %s",  |   set_header(soh++,"%s@102gFrequenza %s",  | ||||||
|              (const char*)tim_title,  |              (const char*)tim_title,  | ||||||
|              d._s2 == "T" ? "Trimestrale" : "Mensile"); |              d._s2 == "T" ? "Trimestrale" : "Mensile"); | ||||||
|   set_header(5,sep); |   set_header(soh++,sep); | ||||||
|   set_header(6,"");   |   set_header(soh++,"");   | ||||||
|    |    | ||||||
|   // notify errors if any
 |   // notify errors if any
 | ||||||
|   int j = 0; |   int j = 0; | ||||||
| @ -936,16 +936,17 @@ void TLiquidazione_app::set_att(_DescrItem& d) | |||||||
|                        (const char*)tipatt); |                        (const char*)tipatt); | ||||||
| 
 | 
 | ||||||
|   reset_header(); |   reset_header(); | ||||||
|  |   int soh = 1; | ||||||
|   if (!_isregis) |   if (!_isregis) | ||||||
|   { |   { | ||||||
|     set_header(1,"Ditta %s %s@109gData @<@125gPag. @#",  |     set_header(soh++,"Ditta %s %s@109gData @<@125gPag. @#",  | ||||||
|                (const char*)(d._s0), (const char*)(d._s1));  |                (const char*)(d._s0), (const char*)(d._s1));  | ||||||
|     set_header(2,"");     |     set_header(soh++,"");     | ||||||
|   } |   } | ||||||
|   set_header(3,sep); |   set_header(soh++,sep); | ||||||
|   set_header(4,"%s@55g%s", (const char*)tim_title, (const char*)att_title); |   set_header(soh++,"%s@55g%s", (const char*)tim_title, (const char*)att_title); | ||||||
|   set_header(5,sep); |   set_header(soh++,sep); | ||||||
|   set_header(6,""); |   set_header(soh++,""); | ||||||
|    |    | ||||||
|   // notify errors if any
 |   // notify errors if any
 | ||||||
|   int j = 0; |   int j = 0; | ||||||
| @ -1354,14 +1355,21 @@ void TLiquidazione_app::set_grand(_DescrItem& d) | |||||||
| 
 | 
 | ||||||
|   // rapportini per rimborso infraannuale 
 |   // rapportini per rimborso infraannuale 
 | ||||||
|   // non si stampano se la stampa serve per la visualizz.
 |   // non si stampano se la stampa serve per la visualizz.
 | ||||||
|   if (d._arr.items() > 0 && !_is_visliq && !_isregis) |   //modifica del 07/07/1995 
 | ||||||
|  |   //*** solo in st.di prova in coda ai registri deve scendere 
 | ||||||
|  |   //    il prospetto di rimborso
 | ||||||
|  |   //*** sempre (cioe' in bollato e in prova) deve scendere 
 | ||||||
|  |   //    il prospettino versamento (boh???????????????????)
 | ||||||
|  |   //if (d._arr.items() > 0 && !_is_visliq && !_isregis)
 | ||||||
|  |   if (d._arr.items() > 0 && !_is_visliq) | ||||||
|   { |   { | ||||||
|     for (int i = 0; i < d._arr.items(); i++) |     for (int i = 0; i < d._arr.items(); i++) | ||||||
|     { |     { | ||||||
|        |  | ||||||
|       _DescrItem& di = (_DescrItem&)d._arr[i]; |       _DescrItem& di = (_DescrItem&)d._arr[i]; | ||||||
|        |        | ||||||
|       if (di._flags == RIMBORSO) |       if (di._flags == RIMBORSO) | ||||||
|  |       {  | ||||||
|  |         if (!_isregis || (_isregis && !_isfinal)) | ||||||
|         { |         { | ||||||
|          set_print_zero(TRUE); |          set_print_zero(TRUE); | ||||||
|          set_row(rw++,"");  |          set_row(rw++,"");  | ||||||
| @ -1408,6 +1416,7 @@ void TLiquidazione_app::set_grand(_DescrItem& d) | |||||||
|          |          | ||||||
|          set_print_zero(FALSE); |          set_print_zero(FALSE); | ||||||
|         }  |         }  | ||||||
|  |       } | ||||||
|       // prospettino versamento
 |       // prospettino versamento
 | ||||||
|       else if (di._flags == DELEGA) |       else if (di._flags == DELEGA) | ||||||
|       {                   |       {                   | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user