Stripe in Blender Studio #93018
@ -181,8 +181,10 @@ class Taxable:
|
|||||||
is_business = False
|
is_business = False
|
||||||
if user and user.is_authenticated:
|
if user and user.is_authenticated:
|
||||||
customer = user.customer
|
customer = user.customer
|
||||||
country_code = customer.billing_address.country or country_code
|
billing_address = customer.billing_address
|
||||||
is_business = bool(customer.vat_number)
|
country_code = billing_address.country or country_code
|
||||||
|
vat_number = billing_address.vat_number
|
||||||
|
is_business = bool(vat_number)
|
||||||
tax_type, tax_rate = ProductType(product_type).get_tax(
|
tax_type, tax_rate = ProductType(product_type).get_tax(
|
||||||
buyer_country_code=country_code, is_business=is_business
|
buyer_country_code=country_code, is_business=is_business
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user