Debugging info + sistemati tipoatt e ricerca registri
git-svn-id: svn://10.65.10.50/trunk@113 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
		
							parent
							
								
									e2ff4ac1fe
								
							
						
					
					
						commit
						1098cea09d
					
				@ -63,7 +63,7 @@ bool CG4300_App::update_firm(int month, bool recalc)
 | 
				
			|||||||
  // ricalcolo normale
 | 
					  // ricalcolo normale
 | 
				
			||||||
  ok   = _lim->get_bool("B0");
 | 
					  ok   = _lim->get_bool("B0");
 | 
				
			||||||
  if (ok && !recalc) return TRUE; 
 | 
					  if (ok && !recalc) return TRUE; 
 | 
				
			||||||
  bool calc = _recalc == ever || (_recalc == one && month == _month);
 | 
					  bool calc = (_recalc == ever || (_recalc == one && month == _month));
 | 
				
			||||||
  if (!calc && _recalc != never) calc = !ok;
 | 
					  if (!calc && _recalc != never) calc = !ok;
 | 
				
			||||||
  bool gheravergot = FALSE;
 | 
					  bool gheravergot = FALSE;
 | 
				
			||||||
  
 | 
					  
 | 
				
			||||||
@ -266,12 +266,23 @@ void CG4300_App::recalc_att(int month, const char* codatt)
 | 
				
			|||||||
    /*
 | 
					    /*
 | 
				
			||||||
     * check register present, rmoviva present and date OK
 | 
					     * check register present, rmoviva present and date OK
 | 
				
			||||||
     */      
 | 
					     */      
 | 
				
			||||||
 | 
					#ifndef DBG
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (!is_date_ok(date, month) ||  
 | 
					    if (!is_date_ok(date, month) ||  
 | 
				
			||||||
        !isreg ||
 | 
					        !isreg ||
 | 
				
			||||||
        _reg_r->get("S8") != trueatt ||
 | 
					        _reg_r->get("S8") != trueatt ||
 | 
				
			||||||
        !_cur->is_first_match(LF_RMOVIVA)) 
 | 
					        !_cur->is_first_match(LF_RMOVIVA)) 
 | 
				
			||||||
      continue;
 | 
					      continue;
 | 
				
			||||||
 | 
					#else          
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    bool dok = !is_date_ok(date, month);  
 | 
				
			||||||
 | 
					    bool sreg = !isreg;
 | 
				
			||||||
 | 
					    bool rs8  = _reg_r->get("S8") != trueatt;
 | 
				
			||||||
 | 
					    bool cmt  = !_cur->is_first_match(LF_RMOVIVA);
 | 
				
			||||||
 | 
					    
 | 
				
			||||||
 | 
					    if (dok || sreg || rs8 || cmt) continue;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /*
 | 
					    /*
 | 
				
			||||||
     * check date se si calcola l'acconto
 | 
					     * check date se si calcola l'acconto
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user