tax_implication: Bugfix "Corp" abbreviation in values.
This commit is contained in:
		
							parent
							
								
									31cee4e0ba
								
							
						
					
					
						commit
						5c6d9d6f69
					
				
					 2 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
					@ -31,7 +31,7 @@ def _make_aliases(s: str, stdname: Optional[str]=None) -> Iterator[Tuple[str, st
 | 
				
			||||||
    elif s.startswith('USA-'):
 | 
					    elif s.startswith('USA-'):
 | 
				
			||||||
        yield from _make_aliases(f'US-{s[4:]}', stdname)
 | 
					        yield from _make_aliases(f'US-{s[4:]}', stdname)
 | 
				
			||||||
    if s.endswith('-Corporation'):
 | 
					    if s.endswith('-Corporation'):
 | 
				
			||||||
        yield from _make_aliases(f's[:-12]-Corp', stdname)
 | 
					        yield from _make_aliases(f'{s[:-12]}-Corp', stdname)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class MetaTaxImplication(core._NormalizePostingMetadataHook):
 | 
					class MetaTaxImplication(core._NormalizePostingMetadataHook):
 | 
				
			||||||
    _STDNAMES = [
 | 
					    _STDNAMES = [
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -20,6 +20,7 @@ VALID_VALUES = {
 | 
				
			||||||
    'Bank-Transfer': 'Bank-Transfer',
 | 
					    'Bank-Transfer': 'Bank-Transfer',
 | 
				
			||||||
    'Chargeback': 'Chargeback',
 | 
					    'Chargeback': 'Chargeback',
 | 
				
			||||||
    'Foreign-Corporation': 'Foreign-Corporation',
 | 
					    'Foreign-Corporation': 'Foreign-Corporation',
 | 
				
			||||||
 | 
					    'foreign-corp': 'Foreign-Corporation',
 | 
				
			||||||
    'Foreign-Grantee': 'Foreign-Grantee',
 | 
					    'Foreign-Grantee': 'Foreign-Grantee',
 | 
				
			||||||
    'Foreign-Individual-Contractor': 'Foreign-Individual-Contractor',
 | 
					    'Foreign-Individual-Contractor': 'Foreign-Individual-Contractor',
 | 
				
			||||||
    'Loan': 'Loan',
 | 
					    'Loan': 'Loan',
 | 
				
			||||||
| 
						 | 
					@ -29,6 +30,7 @@ VALID_VALUES = {
 | 
				
			||||||
    'Tax-Payment': 'Tax-Payment',
 | 
					    'Tax-Payment': 'Tax-Payment',
 | 
				
			||||||
    'USA-501c3': 'USA-501c3',
 | 
					    'USA-501c3': 'USA-501c3',
 | 
				
			||||||
    'USA-Corporation': 'USA-Corporation',
 | 
					    'USA-Corporation': 'USA-Corporation',
 | 
				
			||||||
 | 
					    'us-corp': 'USA-Corporation',
 | 
				
			||||||
    'USA-Grantee': 'USA-Grantee',
 | 
					    'USA-Grantee': 'USA-Grantee',
 | 
				
			||||||
    'US-Grantee': 'USA-Grantee',
 | 
					    'US-Grantee': 'USA-Grantee',
 | 
				
			||||||
    'W2': 'W2',
 | 
					    'W2': 'W2',
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue