forked from CGM_Public/pretix_original
Fix tax-code keying function for tax-recalc (#5637)
This commit is contained in:
committed by
GitHub
parent
313f4f326b
commit
5e828ab8af
@@ -231,7 +231,7 @@ def apply_rounding(rounding_mode: Literal["line", "sum_by_net", "sum_by_net_keep
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
def _key(line):
|
def _key(line):
|
||||||
return (line.tax_rate, line.tax_code)
|
return (line.tax_rate, line.tax_code or "")
|
||||||
|
|
||||||
places = settings.CURRENCY_PLACES.get(currency, 2)
|
places = settings.CURRENCY_PLACES.get(currency, 2)
|
||||||
minimum_unit = Decimal('1') / 10 ** places
|
minimum_unit = Decimal('1') / 10 ** places
|
||||||
|
|||||||
Reference in New Issue
Block a user