Revert back starts with logic
This commit is contained in:
		
					parent
					
						
							
								5954093999
							
						
					
				
			
			
				commit
				
					
						f6feb88708
					
				
			
		
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -154,7 +154,7 @@ def get_vat_rate_for_country(country):
 | 
			
		|||
    vat_rate = None
 | 
			
		||||
    try:
 | 
			
		||||
        vat_rate = VATRates.objects.get(
 | 
			
		||||
            territory_codes__startswith=country, start_date__isnull=False, stop_date=None
 | 
			
		||||
            territory_codes=country, start_date__isnull=False, stop_date=None
 | 
			
		||||
        )
 | 
			
		||||
        logger.debug("VAT rate for %s is %s" % (country, vat_rate.rate))
 | 
			
		||||
        return vat_rate.rate
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue