fssa-batch3 / fssa-batch3/sec_b_inbalokesh.esakkipandi__corejava_project_2
Create Order
- Dominant language
- Java
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
## Module: Order
- [ ] Create Order table
- [ ] Create Order model
### Feature 1: Create Order
#### Pre-requisites:
- [ ] Order DAO (create)
- [ ] Order Service (create)
#### Validations:
- [ ] Form Validation
-Order null
-address (null, empty, pattern)
-quantity <=0
-product id <=0
-created by <= 0
-total price <=0
-quantity >= 10
- [ ] Business Validation
- Check Product Id is present
- Check delivery time(Breakfast, lunch, dinner) is filled
#### Messages:
- [ ] Order cannot be null or empty
- [ ] Address cannot be null or empty
- [ ] Quantity cannot be zero or below zero
- [ ] Total Price cannot be zero or below zero
- [ ] User Id cannot be zero or below zero
- [ ] Product Id cannot be zero or below zero
- [ ] Quantity must be below 10
- [ ] Product not found
- [ ] User not found
- [ ] Invalid Address Pattern
#### Flow:
```mermaid
graph TD;
A["Order Service: Create or Place new Order"] --> B["Form Validation"] -- Valid --> C{Business Validation}
B -- Invalid --> G[Validation Exception]
C -- Valid --> D[Create Order]
D --> E[Order Created]
C -- Invalid --> F[Validation Exception]
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.