fssa-batch3 / fssa-batch3/sec_b_maruthan.alagar__corejava_project_2

Find all bills by user phone number

Open
#18 1 comment 0 reactions 1 assignee Claimed by @suryaumapathy2812 View on GitHub
Dominant language
Java
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

### Feature : Find bills by user phone number
#### User Story:
User can find bill details by using user phone number.
#### Prerequisites:
- [ ] Complete User Module Feature 1.
- [ ] Complete Bill Module Feature 1.
- [ ] Implement Bill DAO (find by phone number)

#### Validations:

##### Form Validation:
- [ ] Phone Number ( Pattern )
- [ ] Id ( id<1 )
##### Business Validation:
- [ ] Check the User is exists or not.
- [ ] Check Bill Table exists or not.
#### Messages:
- Phone number doesn't match the pattern.
- User Not Found
- Invalid User ID

#### Flow:

```mermaid
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]

```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.