Commit Graph

4 Commits (86fe9a2c59e804fc3023f699aea32c18c44d18e4)

Author SHA1 Message Date
Hostea dashboard 9d2a53f2e2
fix: more email project renaming 2022-09-13 19:57:26 +05:30
Hostea dashboard 9f5032bd28
feat: send subscription renewal notification emails 2022-09-12 21:01:24 +05:30
Hostea dashboard 3ebc518e1f
fix: don't send emails to VMs that were requested but not created
SUMMARY
    dash.models.Instance is created upon request and
    infrastructure.models.InstanceCreated when the instance is created.
    Using data from InstanceCreated to send invoices should solve this
    issue.
2022-09-12 04:05:41 +05:30
Aravinth Manivannan 2ee54a71e3
feat: management command to periodically generate invoices
SUMMARY
    `python manage.py generate_invoice` generates invoices for VMs when
    it enters a new billing cycle and sends a notification email to
    VM owners.

    This command should be run as frequently as desirable. Running daily
    is recommended.

BILLING CYCLE
    By default, a billing cycle is 30 days.
2022-07-08 01:46:17 +05:30