https://billing.yealin.com.au/customersCLIs are the phone numbers associated with the customer. CDRs with matching numbers are assigned to this customer.
E.164 format: Always include country code with + prefix:
Portal users can log into the customer portal to view invoices and make payments.
cd /var/www/yealinbilling
source venv/bin/activate
export DJANGO_SETTINGS_MODULE=config.settings.production
python manage.py shell
from apps.portal.models import CustomerPortalUser
from apps.customers.models import Customer
# Find customer
customer = Customer.objects.get(name='Customer Name')
# Create portal user
user = CustomerPortalUser(
customer=customer,
email='customer@email.com',
active=True
)
user.set_password('initial_password')
user.save()
print(f'Portal user created: {user.email}')
Portal login URL: https://billing.yealin.com.au/portal/login
from apps.portal.models import CustomerPortalUser
user = CustomerPortalUser.objects.get(email='customer@email.com')
user.set_password('new_password')
user.save()
print('Password updated')
The billable flag on CustomerCLI controls whether calls on that number are included in invoices:
The billable flag on CallRecord is set automatically based on the CLI's billable flag at the time of import.
Customer groups allow you to:
Manage groups at: https://billing.yealin.com.au/customers → Groups tab.