fssa-batch3 / sec_b_maruthan.alagar__corejava_project_2

https://fssa-batch3.github.io/sec_b_maruthan.alagar__corejava_project_2/
0 stars 0 forks source link

M A M Billing Checklist

Milestones

Database Design

HD02Net.md.png

Project Setup

Module 1 : Product (Milestone 1)

Feature 1: Product Creation

User Story:

User can create new product.

Prerequisites:

Form Validation:

Flow:

graph  TD;

A[Product Service: Create Product]  -->  B[Form Validation]

B  -- Yes -->  C{Business Validation}
B -- No --> G[Throws Exception]

C  -- Yes -->  D[Product DAO: Create Product]

D  -->  E[Product Service: Product Created ]

C  -- No -->  F[Product Service: Product Already Exists ]

Feature 2 : List All Product

User Story:

User can view the product list.

Prerequisites:

Validations:

Business Validation:

Flow:

graph  TD;

A[Product Service: Find All Product] -->  B{Business Validation}

B  -- Yes -->  C[Product DAO: Read All Products ]

C  -->  D[Product Service: Display Product Details ]

B  -- No -->  F[Product Service: Table Doesn't Exists ]

Feature 3 : Update Product Details

User Story:

User can update product detail.

Prerequisites:

Validations:

Form Validation:

Flow:

graph  TD;

A[Product Service: Update Product]  -->  B[Form Validation]

B  -- Yes -->  C{Business Validation}
B -- No --> G[Throws Exception]

C  -- Yes -->  D[Product DAO: Update Product]

D  -->  E[Product Service: Product Updated]

C  -- No -->  F[Product Service: Product Not Found ]

Feature 4 : Delete Product Details

User Story:

User can delete a product.

Prerequisites:

Validations:

Form Validation:

Flow:

graph  TD;

A[Product Service: Delete  Product]  -->  B[Form Validation]
B  -- Yes -->  C{Business Validation}
B -- No --> G[Throws Exception]

C  -- Yes -->  D[Product DAO: Delete Product]

D  -->  E[Product Service: Product Deleted]

C  -- No -->  F[Product Service: Product Not Found ]

Feature 5 : Product Details

User Story:

User can view the single product details.

Prerequisites:

Validations:

Form Validation:

Flow:

graph  TD;

A[Product Service: Product Details]  -->  B[Form Validation]

B  -- Yes -->  C{Business Validation}
B -- No --> G[Throws Exception]

C  -- Yes -->  D[Product DAO: Read A Product]

D  -->  E[Product Service: Display Product Details]

C  -- No -->  F[Product Service: Product Not Found ]

Module 2 : Price (Milestone 1)

Feature 1: Price Creation

User Story:

User can create new Price.

Prerequisites:

Validations:

Form Validation:
Business Validation:

Flow:

graph  TD;

A[Price Service: Create Price]  -->  B[Form Validation]

B  -- Yes -->  C{Business Validation}
B -- No --> G[Throws Exception]

C  -- Yes -->  D[Price DAO: Create Price]

D  -->  E[Price Service: Price Created ]

C  -- No -->  F[Price Service: Product Doesn't Exists ]

Feature 2 : List All Price

User Story:

User can view the Price list.

Prerequisites:

Flow:

graph  TD;

A[Price Service: Find All Price] -->  B{Business Validation}

B  -- Yes -->  C[Price DAO: Read All Price]

C  -->  D[Price Service: Display Price Details ]

B  -- No -->  F[Price Service: Table Doesn't Exists ]

Feature 3 : Update Price Details

User Story:

User can update Price.

Prerequisites:

Validations:

Form Validation:
Business Validation:

Flow:

graph  TD;

A[Price Service: Update Price]  -->  B[Form Validation]

B  -- Yes -->  C{Business Validation}
B -- No --> G[Throws Exception]
C  -- Yes -->  D[Price DAO: Update Price]

D  -->  E[Price Service: Price Updated]

C  -- No -->  F[Price Service: Product Not Found ]

Module: User (Milestone 2)

Feature 1: User Creation

User Story:

Shop can create new User or Customer .

Prerequisites:

Form Validation:

Flow:

graph  TD;

A[User Service: Create User]  -->  B[Form Validation]

B  -- Yes -->  C{Business Validation}
B -- No --> G[Throws Exception]

C  -- Yes -->  D[User DAO: Create User]

D  -->  E[User Service: User Created ]

C  -- No -->  F[User Service: User Already Exists ]

Feature 2 : List All Users

User Story:

User can view the Customer List.

Prerequisites:

Validations:

Business Validation:

Flow:

graph  TD;

A[User Service: Find All User] -->  B{Business Validation}

B  -- Yes -->  C[User DAO: Read All Users]

C  -->  D[User Service: Display User Details ]

B  -- No -->  F[User Service: Table Doesn't Exists ]

Feature 3 : Update User Details

User Story:

Shop can update User or Customer details.

Prerequisites:

Form Validation:

Messages:

Flow:

graph  TD;

A[User Service: Update User]  -->  B[Form Validation]

B  -- Yes -->  C{Business Validation}
B -- No --> G[Throws Exception]

C  -- Yes -->  D[User DAO: Update User]

D  -->  E[User Service: User Successfully Updated]

C  -- No -->  F[User Service: User Not Found ]

Feature 4 : Find User By Phone Number

User Story:

User can view the single User details.

Prerequisites:

Validations:

Form Validation:

Flow:

graph  TD;

A[User Service: Get User by phone number]  -->  B[Form Validation]
B  -- Yes -->  C{Business Validation}
B -- No --> G[Throws Exception]

C  -- Yes -->  D[User DAO: find user by phone number]

D  -->  E[User Service: Display user details]

C  -- No -->  F[User Service: User Not Found ]

Module 2 : Bill (Milestone 2)

Feature 1: Bill Creation

User Story:

User can create new Bill.

Prerequisites:

Validations:

Form Validation:
Business Validation:

Flow:

graph  TD;

A[Bill Service: Create Bill]  -->  B[Form Validation]
B  -- Yes -->  C{Business Validation}
B -- No --> F[Throws Exception]
C -- Yes --> D[Bill DAO : Create Bill]
C -- No --> G[Bill Service : Bill Table Not Found]
D  -->  E[Bill Service: Bill Created ]

Feature 2 : List All Bills

User Story:

User can view the Bill List.

Prerequisites:

Validations:

Business Validation:

Flow:

graph  TD;

A[Bill Service: Find All Bills] -->  B{Business Validation}

B  -- Yes -->  C[Bill DAO: Read All Bills]

C  -->  D[Bill Service: Display Bill Details ]

B  -- No -->  F[Bill Service: Bill Table Doesn't Exists ]

Feature 3 : Find bills by user phone number

User Story:

User can find bill details by using user phone number.

Prerequisites:

Validations:

Form Validation:

Flow:

graph  TD;

A[User Service: Get User by phone number]  -->  B[Form Validation]
B  -- Yes -->  C{Business Validation}
B -- No --> G[Throws Exception]

C  -- Yes -->  D[User DAO: find user by phone number]

D  -->  E[User Service: Get User ID ]
E-->H
C  -- No -->  F[User Service: User Not Found ]
H[Bill Service: Get Bill by User ID]  -->  I[Form Validation]
I  -- Yes -->  K[Bill DAO: find Bill by User ID]

K  -->  L[Bill Service: Display Bill Details]
I -- No --> M[Throws Exception]

Feature 4 : Find All Recent Bills

User Story:

User can View the recent Bills.

Prerequisites:

Validations:

Business Validation:

Flow:

graph  TD;

A[Bill Service: Get Recent bills]  

A  -->  C{Business Validation}
C  -- Yes -->  D[Bill DAO: Find all Recent Bills ]

D  -->  E[Bill Service: Display Recent Bills]

C  -- No -->  F[Bill Service: There is no recent bills ]

Module 3 : Bill Details (Milestone 2)

Feature 1: Bill Details Creation

User Story:

User can create new Bill Details.

Prerequisites:

Validations:

Form Validation:
Business Validation:

Flow:

graph  TD;

A[Bill Details Service: Get bill details by bill ID]  -->  B[Form Validation]

B  -- Yes -->  C{Business Validation}
B -- No --> G[Throws Exception]

C  -- Yes -->  D[Bill Details DAO: Find bill details by bill ID]

D  -->  E[Bill Details Service: Display the Details ]

C  -- No -->  F[Bill Details Service: Bills not found ]

Module: Shop (Milestone 2)

Feature 1: Shop Creation

User Story:

create new shop via register .

Prerequisites:

Form Validation:

Messages:

Flow:

graph  TD;

A[Shop Service: Create Shop]  -->  B[Form Validation]

B  -- Yes -->  C{Business Validation}
B -- No --> G[Throws Exception]

C  -- Yes -->  D[Shop DAO: Create Shop]

D  -->  E[Shop Service: Shop Created ]

C  -- No -->  F[Shop Service: Unable to Create Shop ]

Feature 2: Shop Update

User Story:

User Can Update shop details .

Prerequisites:

Form Validation:

Messages:

Flow:

graph  TD;

A[Shop Service: Update Shop]  -->  B[Form Validation]

B  -- Yes -->  C{Business Validation}
B -- No --> G[Throws Exception]

C  -- Yes -->  D[Shop DAO: Update Shop]

D  -->  E[Shop Service: Shop Update ]

C  -- No -->  F[Shop Service: Unable to Update Shop ]

Feature 3: Shop Login

User Story:

User Can Login with shop details .

Prerequisites:

Form Validation:

Flow:

graph  TD;

A[Shop Service: Login Shop]  -->  B[Form Validation]

B  -- Yes -->  C{Business Validation}
B -- No --> G[Throws Exception]

C  -- Yes -->  D[Shop DAO: Login Shop]

D  -->  E[Shop Service: Shop Login ]

C  -- No -->  F[Shop Service: Unable to login with Shop Details ]

Feature 4: Update Shop Password

User Story:

User Can Update shop Password .

Prerequisites:

Form Validation:

Flow:

graph  TD;

A[Shop Service: Update Shop Password]  -->  B[Form Validation]

B  -- Yes -->  C{Business Validation}
B -- No --> G[Throws Exception]

C  -- Yes -->  D[Shop DAO: Update Shop Password]

D  -->  E[Shop Service: Update Shop Password ]

C  -- No -->  F[Shop Service: Unable to Change Shop Password ]