Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add discounts to the dashboard #795

Merged
merged 1 commit into from
Oct 12, 2023
Merged

Conversation

davidfischer
Copy link
Collaborator

The discounts come in the form of Stripe coupons. The description can be edited in Stripe. Currently, we have just a 10% and 15% coupon based on the total campaign size.

They appear in:

  • The create/edit flight screens (for staff). The discounts are not automatically applied yet. When a flight is renewed, the discount is renewed by default.
  • They appear in the memo section of invoices
  • They are displayed in the flight metadata to advertisers

Screenshot

Screenshot from 2023-10-10 16-45-51

The discounts come in the form of Stripe coupons.
The description can be edited in Stripe.
Currently, we have just a 10% and 15% coupon
based on the total campaign size.

They appear in:

- The create/edit flight screens (for staff).
  The discounts are not automatically applied yet.
  When a flight is renewed, the discount is renewed by default.
- They appear in the memo section of invoices
- They are displayed in the flight metadata to advertisers
@davidfischer davidfischer requested a review from a team as a code owner October 10, 2023 23:47
Copy link
Member

@ericholscher ericholscher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.. So just to confirm, we aren't actually changing the pricing on the invoice, just noting the discount explicitly? That seems like a great first step. 👍

@@ -670,14 +670,14 @@ def action_create_draft_invoice(self, request, queryset):
)

# https://stripe.com/docs/api/invoices/create
description = "Thanks for your business!"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ha, I never noticed this before :)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I usually fill out the memo line to reference a PO or if this is "invoice 1 of 3", etc.

@davidfischer
Copy link
Collaborator Author

Looks good.. So just to confirm, we aren't actually changing the pricing on the invoice, just noting the discount explicitly? That seems like a great first step. 👍

Correct. The pricing doesn't change at all. I did remove the weird logic we had where flights where priced per view if the number of views was not divisible by 1000 and CPM otherwise. It's always per view or click now.

@davidfischer davidfischer merged commit e8cef9d into main Oct 12, 2023
1 check passed
@davidfischer davidfischer deleted the davidfischer/coupons-in-dashboard branch October 12, 2023 16:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants