Initialize vat number in payment forms
This commit is contained in:
parent
568d874476
commit
6ea486b527
2 changed files with 4 additions and 0 deletions
|
|
@ -254,6 +254,9 @@ class PaymentOrderView(FormView):
|
|||
billing_address_form = BillingAddressForm(
|
||||
instance=self.request.user.billing_addresses.first()
|
||||
)
|
||||
billing_address_form.fields['vat_number'].initial = (
|
||||
self.request.user.vat_number
|
||||
)
|
||||
user = self.request.user
|
||||
if hasattr(user, 'stripecustomer'):
|
||||
stripe_customer = user.stripecustomer
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue