Add Invoice.fee_type, Invoice.fee_internal_type

This commit is contained in:
Raphael Michel
2021-06-22 16:58:22 +02:00
parent 8700c41f5e
commit cba2ad5333
7 changed files with 56 additions and 2 deletions

View File

@@ -244,7 +244,9 @@ def build_invoice(invoice: Invoice) -> Invoice:
event_date_to=None if invoice.event.has_subevents else invoice.event.date_to,
tax_value=fee.tax_value,
tax_rate=fee.tax_rate,
tax_name=fee.tax_rule.name if fee.tax_rule else ''
tax_name=fee.tax_rule.name if fee.tax_rule else '',
fee_type=fee.fee_type,
fee_internal_type=fee.internal_type or None,
)
if fee.tax_rule and fee.tax_rule.is_reverse_charge(ia) and fee.value and not fee.tax_value: