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:
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 : Find bills by user phone number
User Story:
User can find bill details by using user phone number.
Prerequisites:
Validations:
Form Validation:
Business Validation:
Messages:
Flow: