We probably need creating HostingBill

This commit is contained in:
PCoder 2017-07-07 00:12:29 +05:30
parent 8bb7eee418
commit cfc1210a9a
1 changed files with 2 additions and 3 deletions

View File

@ -561,9 +561,8 @@ class PaymentVMView(LoginRequiredMixin, FormView):
)
# Create a Hosting Bill
# variable bill is not used
# bill = HostingBill.create(
# customer=customer, billing_address=billing_address)
HostingBill.create(
customer=customer, billing_address=billing_address)
# Create Billing Address for User if he does not have one
if not customer.user.billing_addresses.count():