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

[0.2] Feat - Ability to mark orders as new customer #769

Merged
merged 15 commits into from
Dec 12, 2022

Conversation

alecritson
Copy link
Collaborator

It would be handy to be able to know if an order that comes in is for a new customer, i.e. it's the first time they've ordered. This is good for reporting amongst other things. The issue is the query could be quite taxing on large datasets.

This PR adds a new_customer column to the orders table, which, when an order is created from a Cart will run a job to determine whether it's a new customer and update the column.

@vercel
Copy link

vercel bot commented Dec 9, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
lunar-docs ✅ Ready (Inspect) Visit Preview Dec 12, 2022 at 11:40AM (UTC)

@glennjacobs
Copy link
Contributor

  • Should we have a routine to update old orders?
  • Should the reports now utilise this new field?
  • Update docs to inform devs?
  • Show on the order edit screen?

@alecritson alecritson merged commit f66829b into main Dec 12, 2022
@alecritson alecritson deleted the feat/new_customer_column_on_orders branch December 12, 2022 13:56
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