Browse Source

Increase check limits for paid accounts.

pull/178/head
Pēteris Caune 7 years ago
parent
commit
eafb5d6096
No known key found for this signature in database GPG Key ID: E28D7679E9A9EDE2
4 changed files with 13 additions and 13 deletions
  1. +3
    -3
      hc/payments/tests/test_set_plan.py
  2. +2
    -2
      hc/payments/views.py
  3. +6
    -6
      templates/accounts/billing.html
  4. +2
    -2
      templates/payments/pricing.html

+ 3
- 3
hc/payments/tests/test_set_plan.py View File

@ -37,7 +37,7 @@ class SetPlanTestCase(BaseTestCase):
# User's profile should have a higher limits
self.profile.refresh_from_db()
self.assertEqual(self.profile.ping_log_limit, 1000)
self.assertEqual(self.profile.check_limit, 50)
self.assertEqual(self.profile.check_limit, 100)
self.assertEqual(self.profile.team_limit, 9)
self.assertEqual(self.profile.sms_limit, 50)
self.assertEqual(self.profile.sms_sent, 0)
@ -65,7 +65,7 @@ class SetPlanTestCase(BaseTestCase):
# User's profile should have a higher limits
self.profile.refresh_from_db()
self.assertEqual(self.profile.ping_log_limit, 1000)
self.assertEqual(self.profile.check_limit, 50)
self.assertEqual(self.profile.check_limit, 100)
self.assertEqual(self.profile.team_limit, 9)
self.assertEqual(self.profile.sms_limit, 50)
self.assertEqual(self.profile.sms_sent, 0)
@ -93,7 +93,7 @@ class SetPlanTestCase(BaseTestCase):
# User's profile should have a higher limits
self.profile.refresh_from_db()
self.assertEqual(self.profile.ping_log_limit, 1000)
self.assertEqual(self.profile.check_limit, 500)
self.assertEqual(self.profile.check_limit, 1000)
self.assertEqual(self.profile.team_limit, 500)
self.assertEqual(self.profile.sms_limit, 500)
self.assertEqual(self.profile.sms_sent, 0)


+ 2
- 2
hc/payments/views.py View File

@ -123,14 +123,14 @@ def set_plan(request):
profile = request.user.profile
if plan_id in ("P20", "Y192"):
profile.ping_log_limit = 1000
profile.check_limit = 50
profile.check_limit = 100
profile.team_limit = 9
profile.sms_limit = 50
profile.sms_sent = 0
profile.save()
elif plan_id in ("P80", "Y768"):
profile.ping_log_limit = 1000
profile.check_limit = 500
profile.check_limit = 1000
profile.team_limit = 500
profile.sms_limit = 500
profile.sms_sent = 0


+ 6
- 6
templates/accounts/billing.html View File

@ -207,7 +207,7 @@
Enjoy free service.
</label>
<h2>Standard <small>50 checks, 10 team members</small></h2>
<h2>Standard <small>100 checks, 10 team members</small></h2>
<label class="radio-container">
<input
type="radio"
@ -228,7 +228,7 @@
Annual, $192 / year (20% off monthly)
</label>
<h2>Plus <small>500 checks, unlimited team members</small></h2>
<h2>Plus <small>1000 checks, unlimited team members</small></h2>
<label class="radio-container">
<input
type="radio"
@ -284,12 +284,12 @@
{% if not sub.address_id %}
<div id="no-billing-address">
<h4>Country not specified.</h4>
<p>For tax accounting purposes, please specify
your <strong>Country</strong> in the "Billing Details"
section.
<p>For tax accounting purposes, please specify
your <strong>Country</strong> in the "Billing Details"
section.
</p>
<p>
Optionally, add your
Optionally, add your
<strong>company name</strong>, <strong>address</strong>
and <strong>VAT ID</strong>
to have them displayed on invoices.


+ 2
- 2
templates/payments/pricing.html View File

@ -97,7 +97,7 @@
</div>
<ul class="list-group text-center">
<li class="list-group-item">50 Checks</li>
<li class="list-group-item">100 Checks</li>
<li class="list-group-item">10 Team Members</li>
<li class="list-group-item">1000 log entries per check</li>
<li class="list-group-item">50 SMS alerts per month</li>
@ -125,7 +125,7 @@
</div>
<ul class="list-group text-center">
<li class="list-group-item">500 Checks</li>
<li class="list-group-item">1000 Checks</li>
<li class="list-group-item">Unlimited Team Members</li>
<li class="list-group-item">1000 log entries per check</li>
<li class="list-group-item">500 SMS alerts per month</li>


Loading…
Cancel
Save