meta_tax_implication: Accept titlecased values.

This commit is contained in:
Brett Smith 2021-02-11 11:17:24 -05:00
parent b5a22a963f
commit 328f59231c
2 changed files with 4 additions and 1 deletions

View file

@ -26,6 +26,9 @@ def _make_aliases(s: str, stdname: Optional[str]=None) -> Iterator[Tuple[str, st
elif s != stdname:
yield (s, stdname)
yield (s.lower(), stdname)
title_s = s.title()
if s != title_s:
yield (title_s, stdname)
if s.startswith('1099-'):
yield from _make_aliases(f'1099{s[5:]}', stdname)
elif s.startswith('USA-'):

View file

@ -15,7 +15,7 @@ VALID_VALUES = {
'1099': '1099-NEC',
'1099-NEC': '1099-NEC',
'1099nec': '1099-NEC',
'1099-MISC-Other': '1099-MISC-Other',
'1099-Misc-Other': '1099-MISC-Other',
'1099misc-other': '1099-MISC-Other',
'Bank-Transfer': 'Bank-Transfer',
'Chargeback': 'Chargeback',