zulip/corporate/migrations
Prakhar Pratyush a513489f38 corporate: Fix invoicing of plans on free-trial with changed schedule.
Earlier, the 'next_invoice_date', 'invoiced_through', and
'invoicing_status' fields in 'do_change_schedule_after_free_trial'
were not set correctly.

It resulted in invoicing the ENDED plan and the ledger we create
in this function.

Multiple invoices were created depending on the number of times the
billing frequency was changed for customers who started free-trial
& changed their billing frequency.

This commit sets those fields correctly leading to create only one
invoice.
2024-03-01 10:47:55 -08:00
..
0001_initial.py
0002_customer_default_discount.py
0003_customerplan.py
0004_licenseledger.py
0005_customerplan_invoicing.py
0006_nullable_stripe_customer_id.py
0007_remove_deprecated_fields.py
0008_nullable_next_invoice_date.py
0009_customer_sponsorship_pending.py
0010_customerplan_exempt_from_from_license_number_check.py
0011_move_exempt_from_from_license_number_check_to_customer_model.py
0012_zulipsponsorshiprequest.py
0013_alter_zulipsponsorshiprequest_org_website.py
0014_customerplan_end_date.py
0015_event_paymentintent_session.py
0016_customer_add_remote_server_field.py
0017_rename_exempt_from_from_license_number_check_customer_exempt_from_license_number_check.py billing: Fix exempt_from_from_license_number_check column name. 2023-04-13 15:26:44 -07:00
0018_customer_cloud_xor_self_hosted.py corporate: Replace unused accessors with database constraint. 2023-05-31 13:53:04 -07:00
0019_zulipsponsorshiprequest_expected_total_users_and_more.py sponsorship: Add extra input fields to get more org info. 2023-11-13 08:52:13 -08:00
0020_add_remote_realm_customers.py corporate: Adjust models for RemoteRealm customers. 2023-11-17 12:58:37 -08:00
0021_remove_session_payment_intent.py upgrade: Separate add card and purchase upgrade flow. 2023-11-20 12:04:56 -08:00
0022_session_is_manual_license_management_upgrade_session.py event_status: Return user back to same license management after session. 2023-11-21 11:44:04 -08:00
0023_zulipsponsorshiprequest_customer.py sponsorship: Use customer instead of realm to store sponsorship data. 2023-11-27 08:23:36 -08:00
0024_zulipsponsorshiprequest_fill_customer_data.py sponsorship: Use customer instead of realm to store sponsorship data. 2023-11-27 08:23:36 -08:00
0025_alter_zulipsponsorshiprequest_customer.py sponsorship: Use customer instead of realm to store sponsorship data. 2023-11-27 08:23:36 -08:00
0026_remove_zulipsponsorshiprequest_realm.py sponsorship: Use customer instead of realm to store sponsorship data. 2023-11-27 08:23:36 -08:00
0027_alter_zulipsponsorshiprequest_requested_by.py models: Make requested_by optional in sponsorship request model. 2023-11-29 19:04:32 -08:00
0028_zulipsponsorshiprequest_requested_plan.py sponsorship: Allow remote orgs to request a plan type. 2023-12-08 11:24:15 -08:00
0029_session_tier.py upgrade: Make it possible to upgrade to a provided tier. 2023-12-18 12:23:46 -08:00
0030_alter_zulipsponsorshiprequest_requested_plan.py corporate: Add a Basic plan. 2023-12-20 23:09:21 -08:00
0031_customer_flat_discount_and_more.py billing: Apply a flat discount for self hosted plans. 2023-12-20 23:09:21 -08:00
0032_customer_minimum_licenses.py corporate: Add minimum_licenses field to Customer model. 2024-01-04 18:42:07 -08:00
0033_customerplan_invoice_overdue_email_sent.py stripe: Add cron-based plan invoicing to remote realm billing system. 2024-01-14 15:47:55 -08:00
0034_customer_discount_required_tier.py corporate: Add required_plan_tier field to Customer model. 2024-01-15 03:10:04 -08:00
0035_update_legacy_plan_next_invoice_date.py stripe: Fix legacy plans not being invoiced. 2024-01-25 10:57:29 -08:00
0036_fix_customer_plans_scheduled_after_legacy_plan.py stripe: Fix invoicing for new plans scheduled to upgrade. 2024-01-25 10:57:29 -08:00
0037_customerplanoffer.py support: Add support to configure fixed_price plan. 2024-01-29 11:23:20 -08:00
0038_customerplanoffer_sent_invoice_id_invoice.py python: Reformat with Ruff formatter. 2024-02-29 17:07:16 -08:00
0039_backfill_end_date_for_fixed_price_plans.py python: Reformat with Ruff formatter. 2024-02-29 17:07:16 -08:00
0040_customerplan_reminder_to_review_plan_email_sent.py python: Reformat with Ruff formatter. 2024-02-29 17:07:16 -08:00
0041_fix_plans_on_free_trial_with_changes_in_schedule.py corporate: Fix invoicing of plans on free-trial with changed schedule. 2024-03-01 10:47:55 -08:00
__init__.py