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:
customer_id
b2b_business_id
brand_id
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
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:
To Do