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

Create order form logic #33

Open
6 tasks
DarrylHardin opened this issue Jun 15, 2021 · 0 comments
Open
6 tasks

Create order form logic #33

DarrylHardin opened this issue Jun 15, 2021 · 0 comments
Assignees

Comments

@DarrylHardin
Copy link
Collaborator

DarrylHardin commented Jun 15, 2021

Creating new orders from order form.

Needs to check if the customer exists and add a new one if they do not, should probably give real results as the customer field is typed in, this can be done through livewire which I think we should implement into our website.

We could allow the creation of most of the foreign keys straight from the order table as a fast option.

check and create if doesn't exist:

  1. customer_id
  2. b2b_business_id
  3. brand_id
  4. order_status_id?

To Do

  • Create order form (placeholder)
  • insert customer if doesn't exist
  • insert business if doesn't exist
  • insert brand if doesn't exist
  • insert new order status if doesn't exist?
  • insert new order with previously or newly created data
@DarrylHardin DarrylHardin self-assigned this Jun 15, 2021
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

No branches or pull requests

1 participant