Professional Documents
Culture Documents
Capstone Project: Report 3 - Software Requirement Specification
Capstone Project: Report 3 - Software Requirement Specification
Table of Contents
I. Project Report 11
1. Status Report 11
2. Team Involvements 11
3. Issues/Suggestions 11
SWP490_G35 2/303
FBS - Software Requirement Specification v2.0
SWP490_G35 3/303
FBS - Software Requirement Specification v2.0
SWP490_G35 4/303
FBS - Software Requirement Specification v2.0
SWP490_G35 5/303
FBS - Software Requirement Specification v2.0
SWP490_G35 6/303
FBS - Software Requirement Specification v2.0
SWP490_G35 7/303
FBS - Software Requirement Specification v2.0
SWP490_G35 8/303
FBS - Software Requirement Specification v2.0
SWP490_G35 9/303
FBS - Software Requirement Specification v2.0
SWP490_G35 10/303
FBS - Software Requirement Specification v2.0
I. Project Report
1. Status Report
Non-functional
3 Requirements Completed
2. Team Involvements
AnhHT -
3 Design Mockup TrangTLH
3. Issues/Suggestions
1 Pending
2 In Progress
3 Completed
SWP490_G35 11/303
FBS - Software Requirement Specification v2.0
This chapter outlines functional and non-functional requirements of our system. It also provides
some format constraints in common requirements and project success criteria. The content of this
chapter is used as the basis for the work in the subsequent chapters.
# Acronym Definition
2 BR Business rules
3 UC Use case
4 PRE Preconditions
6 BA Business Analysis
7 QA Quality Assurance
8 REQ Requirement
Guest, who does not have an account and accesses the Online
9 FBSGuest
Feast Booking System website
14 MSG Message
SWP490_G35 12/303
FBS - Software Requirement Specification v2.0
19 OS Operating System
1.3 References
Refer to the
documentation and
3 MVC Overview 05/2021 MVC
usage of the MVC
model
Refer to the
documentation and
4 Spring boot Overview 05/2021 Spring boot
usage of the Spring
boot
Refer to the
documentation,
5 React Overview 05/2021 React usage, and templates
of the ReactJS
framework
Refer to the
FBS_Report2_Project
SWP490 documentation about
6 Management 1 05/2021 Project folder
_G35 the project
Plan.docx
management plan
SWP490_G35 13/303
FBS - Software Requirement Specification v2.0
2 Overall Description
2.1 Product Overview
FBS is a new software system that replaces manual processes for party booking, menu selection, and
service. The context diagram below illustrates the external entities and system interfaces for version
2.0. The system is expected to evolve over several releases, eventually connecting to an Internet party
booking service for party centers and customers
SWP490_G35 14/303
FBS - Software Requirement Specification v2.0
● Firebase
● Facebook Messenger
SWP490_G35 15/303
FBS - Software Requirement Specification v2.0
SWP490_G35 16/303
FBS - Software Requirement Specification v2.0
SWP490_G35 17/303
FBS - Software Requirement Specification v2.0
SWP490_G35 18/303
FBS - Software Requirement Specification v2.0
SWP490_G35 19/303
FBS - Software Requirement Specification v2.0
REQ1: Guest does not need to register or log in to still search, view information, and view items in
the restaurant
REQ2: User should be able to search for restaurants by province/city, county/district, by organizing a
roving feast or organizing a restaurant feast
REQ3: User should be able to view search results in the search screen
REQ4: User should be able to view all restaurants information such as restaurant overview, menu,
combo, services, promotions, and customers’ feedbacks of restaurants
REQ5: User should be able to search dishes and services by keyword in the restaurant Commented [2]: Thay các từ can thành các từ should
be able to - nếu là các yêu cầu bắt buộc
REQ6: User should be able to select restaurants through promotions on the promotion view page
REQ7: User can chat with the system through Facebook Messenger in case of items being removed, Commented [3R2]: _Marked as resolved_
the restaurant is blocked or account is blocked or any other case where the user needs help Commented [4R2]: _Re-opened_
REQ8: Guest should be able to register an account of the system to become a customer
REQ8: User should be able to sign in, sign out the system when he/she has an account
REQ9: Customer should be able to reset password if he/she forgets, and change password if he/she
needs
REQ10: Customer should be able to view and edit their information in their profile
REQ11: Customer should be able to review transaction history, see the amount added and
subtracted from the FBS wallet
REQ12: Customer should be able to pay in by transferring money to the system and making a request
for the admin to transfer that amount to the FBS wallet. When he/she pays in, he/she can choose
the payment method.
REQ13: Customer should be able to withdraw money by making a withdrawal request and providing
account information or going to a cash pick-up place. When he/she withdraws, he/she can choose
the payment method.
REQ14: Customer should be able to review transaction history, see the amount added and
subtracted from the FBS wallet
REQ15: Customer should be able to rate, comment for each restaurant. He/she should be able to
choose a star number to rate and fill the comment
REQ16: Customer should be able to report a restaurant or an item in the restaurant for the system
REQ17: Customer should be able to choose dishes from the restaurant menu, service from one
restaurant to add to his/her cart, and then he/she will be able to deposit. When he/she deposits,
he/she can choose the payment method.
SWP490_G35 20/303
FBS - Software Requirement Specification v2.0
REQ18: Customer should be able to view the order history. In the order list, he/she should be able to
view the detailed information of an order.
REQ19: Customer should be able to cancel the order but the deposit will not be refunded if the
cancellation time exceeds the time allowed to cancel the order. In some cases, if the customer
cancels the order close to the time, compensation must be paid
REQ20: Customer should be able to view notifications from the system or restaurant
REQ21: Customer should be able to come to a provider when he/she registers a restaurant to the
system and wait for the admin to accept this restaurant.
REQ22: Provider should be able to view all his/her restaurants. In this list, he/she should be able to
view detailed information about the restaurant.
REQ23: Provider should be able to view and manage detailed information about the restaurant.
REQ24: Provider should be able to search his/her orders from the customer by order code or by date
to date.
REQ25: Provider should be able to view his/her orders from the customer. In the order list, he/she
should be able to view the detailed information of the order and reject or accept orders that have
pending status.
REQ26: Provider should be able to view all items in his/her restaurant including dishes, combos,
services, and promotions. He/she should be able to add a new item, and manage items.
REQ27: Provider should be able to search dishes and services of his/her restaurant by keyword name
and category.
REQ28: Provider should be able to view and manage all images of his/her restaurant, including
avatar and description image.
REQ29: Admin should be able to understand the data related to the number of orders, the number
of restaurants in the system, and the number of customers using the system.
REQ30: Admin should be able to view all the orders of the system.
REQ31: Admin should be able to search order by order code or by date to date.
REQ32: Admin should be able to view detailed information of an order to be able to manage the
amount of commission that the system receives after each order.
REQ33: Admin should be able to view all restaurants of the system. In case the restaurant violates
the system's terms or is reported by the customer, the admin should be able to block that
restaurant.
REQ34: Admin should be able to unblock the restaurant if the provider proves the restaurant is not
violated or the restaurant has resolved problems with the customer.
REQ35: Admin should be able to view detailed information about a restaurant.
REQ36: Admin should be able to search a restaurant by keyword name, status, or type.
REQ37: Admin should be able to view notifications from users.
REQ38: Admin should be able to view customer’s reports and resolve customer complaints. In case
the customer complains correctly, the admin should be able to solve it. For example, for a dish to
stop selling.
REQ39: Admin should be able to view all items of the restaurant and remove them from the system
if they are reported by the customer and they violate the law or the terms of the system.
REQ40: Admin should be able to search dishes and services of his/her restaurant by keyword name
and category.
REQ41: Admin should be able to manage the system's transactions, manage money in and out of the
system.
SWP490_G35 21/303
FBS - Software Requirement Specification v2.0
REQ42: Admin should be able to search transactions by transaction code, date, and status of the
transaction.
REQ43: Admin should be able to manage the accounts registered with the system. In case an account
has bad behavior, admin should be able to block that account from the system.
REQ44: Admin should be able to unblock the account if the user proves the account is not violate
REQ45: Admin should be able to view the profile of an account.
REQ46: Admin should be able to search an account by keyword name, phone login, or role of
account.
REQ47: Guest should be able to view detailed information on dishes, combos, and services.
REQ48: Once the order has been completed and the customer has successfully paid for the
restaurant, the provider should be able to mark the order status as completed.
REQ49: Admin should be able to search the transaction history of the FBS system by transaction
code, transaction status, or transaction execution date.
REQ50: Admin should be able to search customer's deposit and withdrawal requests by transaction
code transaction execution date.
REQ51: Admin should be able to confirm or cancel deposit and withdrawal requests from customers.
REQ52: Admin should be able to top up the FBS wallet for customers after receiving customer’s cash.
REQ53: Provider authorizes employee accounts to manage the restaurant.
REQ54: Customers can give specific feedback for food, service, service quality.
REQ55: The provider has to pay for advertising to have the restaurant appear on the homepage.
REQ56: The percentage of commission that the system receives with each order depends on each
restaurant and each order.
REQ57: Restaurants should be able to decide when customers are allowed to cancel orders and how
to compensate for canceled orders.
SWP490_G35 22/303
FBS - Software Requirement Specification v2.0
Assumptions:
- Customer supports in the coding process, the requirements are researched from customer
- Customer will provide adequately supporting the effort to understand the requirements of
the current system
- Customer will provide the graphic assets (images, icons…) so that team can use them to
design the UI of the new systems
- Customer will provide the data so that team can use them to design the database of the new
systems
- Assuming restaurants can be managed by a provider
- Assuming the system's ordering process is correct
- Assuming that each restaurant in a certain period only holds one promotion
- Assuming the process of depositing and withdrawing money into the system is correct
- Admin's account will be provided by the system and admin does not have the right to edit
information
Dependencies:
- Verifying phone number by OTP code with Firebase Phone Authentication
- Chat with the system's page via Facebook messenger
- Pay order, top-up FBS wallet, and withdraw money from FBS wallet via PayPal
3 Functional Specification
3.1 Screen Overview
3.1.1 Screen Flow
SWP490_G35 23/303
FBS - Software Requirement Specification v2.0
SWP490_G35 24/303
FBS - Software Requirement Specification v2.0
4 Guest Restaurant Detail Menu The screen is used for view and search dishes
5 Guest Restaurant Detail Combo The screen is used to view restaurant combo
6 Guest Restaurant Detail Service The screen is used for view and search services
16 Customer Pay In This screen is used to top-up for the FBS wallet
21 Customer Pending Orders This screen is used to view all pending orders
SWP490_G35 25/303
FBS - Software Requirement Specification v2.0
24 Customer Canceled Orders This screen is used to view all canceled orders
SWP490_G35 26/303
FBS - Software Requirement Specification v2.0
My Restaurant Add Dish This screen is used to add a dish to the combo of
42 Provider
Combo restaurant
59 Admin Admin List Restaurants This screen is used to view all restaurants of the
SWP490_G35 27/303
FBS - Software Requirement Specification v2.0
system
SWP490_G35 28/303
FBS - Software Requirement Specification v2.0
View Transaction
UC-17 Wallet Information X X
Infor
SWP490_G35 29/303
FBS - Software Requirement Specification v2.0
UC-28 Refund Commented [8]: Gắn liền với màn hình nào??
My Restaurant
UC-32 View List All Orders X
Order
My Restaurant
UC-33 Search Order X
Order
My Restaurant
UC-34 View Order X
Order Detail
My Restaurant
UC-35 Accept Order X
Accept Order
My Restaurant
UC-36 Cancel Order X
Cancel Order
My Restaurant
UC-37 Complete Order X
Complete Order
My Restaurant Add
UC-39 Add Combo X
Combo
My Restaurant
UC-40 Update Combo X
Update Combo
My Restaurant
UC-41 View List All Dishes X
Menu
My Restaurant
UC-42 Search Dish X
Menu
My Restaurant Add
UC-43 Add Dish X
Menu
My Restaurant
UC-44 Update Dish X
Update Menu
SWP490_G35 30/303
FBS - Software Requirement Specification v2.0
My Restaurant
UC-46 Search Service X
Service
My Restaurant Add
UC-47 Add Service X
Service
My Restaurant
UC-48 Update Service X
Update Service
My Restaurant Add
UC-50 Add Promotion X
Promotion
My Restaurant
UC-51 Update Promotion X
Update Promotion
View
UC-56 Admin Order Detail X
Order Information
Admin Restaurant
Information/
Admin Restaurant
Image/ Admin
View Detailed Restaurant Menu
UC-59 X
Restaurant Detail/ Admin
Restaurant Combo
Detail/ Admin
Restaurant Service
Detail
Admin New
UC-60 Approve Restaurant X
Restaurants
SWP490_G35 31/303
FBS - Software Requirement Specification v2.0
Admin New
UC-61 Cancel Restaurant X
Restaurants
Admin List
UC-62 Block Restaurant X
Restaurants
Admin List
UC-63 Unblock Restaurant X
Restaurants
View Notifications
UC-64 Admin Notification X
For Admin
Admin Restaurant
Menu Detail/
Deactivate Item In Admin Restaurant
UC-66 X
Restaurant Combo Detail/
Admin Restaurant
Service Detail
Admin Wallet
UC-67 View FBS Wallet X
Information
Admin Wallet
UC-68 Search Transaction X
Information
Recharge
UC-72 Recharge Processing X
Processing
Admin Customer
UC-74 View User Profile X
Profile
SWP490_G35 32/303
FBS - Software Requirement Specification v2.0
Entities List
# Entity Description
SWP490_G35 33/303
FBS - Software Requirement Specification v2.0
11 Last Modified Date Date Yes The last time the customer logged in
2. Provider
SWP490_G35 34/303
FBS - Software Requirement Specification v2.0
11 Last Modified Date Date Yes The last time the provider logged in
3. Admin
5 Last Modified Date Date Yes The last time the admin logged in
4. Notification
SWP490_G35 35/303
FBS - Software Requirement Specification v2.0
5. Order
SWP490_G35 36/303
FBS - Software Requirement Specification v2.0
6. FBS Wallet
SWP490_G35 37/303
FBS - Software Requirement Specification v2.0
7. Feedback
8. Combo
SWP490_G35 38/303
FBS - Software Requirement Specification v2.0
9. Promotion
10. Service
11. Dish
SWP490_G35 39/303
FBS - Software Requirement Specification v2.0
12. Restaurant
SWP490_G35 40/303
FBS - Software Requirement Specification v2.0
ID Rule Definition
Users have to wait for the OTP code to be sent to their phone and re-enter the code to
BR-02
be able to register an account.
All users after having an account can log in, log out, change passwords, retrieve
BR-03
passwords when forgotten.
BR-05 Only registered users can successfully log in and make party bookings on the web.
BR-06 Only users who have been verified after an add restaurant step can become providers.
There are 4 roles in the FBS system: guest (who only views the system), customer (who
BR-08 has successfully registered), provider (who has completed the additional step of
registering as a provider), and admin (who is system management).
Guest can view the information on the website and add items to cart but can not
BR-09
complete order
Customers can view the website, place an order on the website, and register as a
BR-10
provider.
The customer has the right to cancel the order placed before the delivery date. But
BR-12 when the customer cancels the order, they have to pay compensation according to the
regulations of the restaurant and the system
Customers can order the party to be delivered at home or the locations provided by the
BR-13
restaurant.
Providers have full roles as customers and have additional management functions to
BR-14
view, add, edit, delete products, manage orders and manage promotions
SWP490_G35 41/303
FBS - Software Requirement Specification v2.0
The provider has the right to accept or cancel the order but must handle it on the day of
BR-15
the order.
Admin has permission to views orders, revenue of systems, accounts, and restaurants of
BR-16
the system
BR-19 All items in an order must be paid for with the same payment method.
Order price is calculated as the sum of each food item price times the quantity of that
BR-20 food item ordered, plus a delivery charge if a meal is delivered outside the free delivery
zone and subtract promotion.
If the customer has deposited in advance, the final payment price must be deducted
BR-21
from the deposit amount.
If a customer orders items from multiple restaurants, multiple invoices must be issued,
BR-22
each for a separate restaurant, and billed separately.
BR-23 The provider can register multiple restaurants with the same login account.
The provider can choose the active or inactive status. When a restaurant is inactive, all
BR-24
items will be hidden from customers.
BR-27 The price must enter the positive integer and be greater than or equal to 1,000 (VNĐ).
BR-28 The number of guests of order must enter the positive integer.
BR-29 The quantity of the dish of order must enter the positive integer.
BR-30 The quantity of the combo of order must enter the positive integer.
BR-31 The quantity of service of order must enter the positive integer.
BR-33 The number of guests the restaurant can accommodate must be a positive integer.
BR-34 The year of the feast is within one year from the year of the order date.
BR-35 Even if the restaurant wasn't accepted by Admin, they can still add items.
Dishes, combos, and services require name, picture, price, category, and description to
BR-36
add to the restaurant.
BR-38 The restaurant must have at least one picture to add in.
SWP490_G35 42/303
FBS - Software Requirement Specification v2.0
Restaurants are required to have a business license and a certificate of food hygiene and
BR-39
safety to be allowed to register on the system.
BR-40 Providers can not edit the category of dishes and services
The system automatically deducts the commission and refunds the deposit to the
provider after the order is completed. In addition, if the customer cancels the order, the
BR-41
deposit will also be refunded according to the regulations and based on the time of
cancellation
The number of items in the cart will be equal to the number of guests divided by the
BR-42
number of seats at the table
Customers must pay for the cart at this restaurant before going to another restaurant to
BR-43
choose
Only when the order is approved will the customer and the restaurant know each
BR-47
other's phone numbers and specific addresses
BR-48 Once the order has been completed and the customer has successfully paid for the
restaurant, the provider can mark the order status as completed
BR-49 When a customer makes a deposit request, the admin must accept it before the money
is transferred to the FBS wallet
BR-50 When a customer makes a withdrawal request, the admin must accept it before the
customer can receive the money
BR-51 After the customer gives cash, the admin will deposit it into the customer's wallet
BR-52 The amount entered for depositing or withdrawing must be a positive integer and must
be at least 10000 VND
SWP490_G35 43/303
FBS - Software Requirement Specification v2.0
SWP490_G35 44/303
FBS - Software Requirement Specification v2.0
View Restaurant Services Allow the user to view all services of the
UC-02
restaurant.
SWP490_G35 45/303
FBS - Software Requirement Specification v2.0
SWP490_G35 46/303
FBS - Software Requirement Specification v2.0
SWP490_G35 47/303
FBS - Software Requirement Specification v2.0
Max
# Field Name Type Mandatory Description
Length
Header
Image
1 Logo Image Link to Home screen
Card
Link to Add
4 Đăng ký nhà hàng Hyperlink
Restaurant screen
Main
Combo
1 Tỉnh/ Thành phố No List of province
box
SWP490_G35 48/303
FBS - Software Requirement Specification v2.0
Footer
Recruitment news of
8 Tuyển dụng Hyperlink
FBS
Introduce to FBS
9 Về chúng tôi Hyperlink
system
Frequently asked
12 Câu hỏi thường gặp Hyperlink
questions by users
SWP490_G35 49/303
FBS - Software Requirement Specification v2.0
Main flows
1 User Type URL into location field of internet browser and then press enter
Select the province/city at “Tỉnh/Thành phố” combo box and select the
city/district at “Quận/Huyện” combo box
Or: Select organizing a roving feast at “Tiệc lưu động” or organizing a
3 User
restaurant feast at “Trung tâm tổ chức sự kiện” or both
Or: Enter keywords or restaurant name at “Từ khóa hoặc tên” textbox
Or do nothing
5 FBS Validate the entered keywords and then display Search Result screen
SWP490_G35 50/303
FBS - Software Requirement Specification v2.0
SWP490_G35 51/303
FBS - Software Requirement Specification v2.0
Max
# Field Name Type Mandatory Description
Length
Main
Title of Service
category
Value: Trang trí, Ban
6 Category Title Label nhạc, Vũ đoàn, Ca sĩ,
MC (Dẫn chương
trình), Quay phim -
Chụp ảnh
Card display
8 Service Card Card
information of service
SWP490_G35 52/303
FBS - Software Requirement Specification v2.0
Description This function allows the user to view all services of the restaurant
Main flows
SWP490_G35 53/303
FBS - Software Requirement Specification v2.0
SWP490_G35 54/303
FBS - Software Requirement Specification v2.0
Max
# Field Name Type Mandatory Description
Length
Main
Slideshow of
Restaurant Image
6 Slideshow restaurant’s
Slideshow
description image
Card of restaurant’s
promotion
Value: Promotion
name, Promotion
11 Promotion Card Card image, Promotion
description,
Promotion start, and
end date, Promotion
status
Textarea to enter
12 Enter Feedback Text Textarea Yes 250
feedback/report
SWP490_G35 55/303
FBS - Software Requirement Specification v2.0
Add feedback or
14 Đánh giá Button
report
Detailed information
of each feedback
Value: User avatar,
16 Feedback Card Card
Username, star rate,
Feedback content,
Feedback date
This function allows the user to view detailed information about the
Description
restaurant
Main flows
SWP490_G35 56/303
FBS - Software Requirement Specification v2.0
SWP490_G35 57/303
FBS - Software Requirement Specification v2.0
Max
# Field Name Type Mandatory Description
Length
Header (same as header of Search Restaurant screen)
Main
This hyperlink links to
1 Cửa hàng Hyperlink Restaurant Detail
screen
Card display
8 Combo Card Card
information of combo
SWP490_G35 58/303
FBS - Software Requirement Specification v2.0
Description This function allows the user to view all combos of the restaurant
Main flows
SWP490_G35 59/303
FBS - Software Requirement Specification v2.0
SWP490_G35 60/303
FBS - Software Requirement Specification v2.0
Max
# Field Name Type Mandatory Description
Length
Header (same as header of Search Restaurant screen)
Main
This hyperlink links to
1 Cửa hàng Hyperlink Restaurant Detail
screen
SWP490_G35 61/303
FBS - Software Requirement Specification v2.0
This function allows the user to search dishes of the restaurant by keywords
Description
name
Main flows
3 User Enters keywords in Search text and presses Enter to search dishes by name
4 FBS Validate the entered keywords and then display the search dish result screen.
SWP490_G35 62/303
FBS - Software Requirement Specification v2.0
SWP490_G35 63/303
FBS - Software Requirement Specification v2.0
Max
# Field Name Type Mandatory Description
Length
Header (same as header of Search Restaurant screen)
Main
This hyperlink links to
1 Cửa hàng Hyperlink Restaurant Detail
screen
SWP490_G35 64/303
FBS - Software Requirement Specification v2.0
Description This function allows the user to view all dishes of the restaurant
Main flows
SWP490_G35 65/303
FBS - Software Requirement Specification v2.0
Max
# Field Name Type Mandatory Description
Length
Main
SWP490_G35 66/303
FBS - Software Requirement Specification v2.0
Main flows
3 User Click Information Icon button on the item that want to view
SWP490_G35 67/303
FBS - Software Requirement Specification v2.0
SWP490_G35 68/303
FBS - Software Requirement Specification v2.0
Max
# Field Name Type Mandatory Description
Length
Header (same as header of Search Restaurant screen)
Main
1 Thông tin ưu đãi Label
This function allows the user to view all coming and ongoing promotions of all
Description
restaurants on the FBS system
SWP490_G35 69/303
FBS - Software Requirement Specification v2.0
TRG-03: User clicks the “Ưu đãi hôm nay” hyperlink in header
POS-01: User can view all coming and ongoing promotions of all restaurants
Post-Condition
on Promotion screen
Main flows
Display Promotion page with all coming and ongoing promotions of all
2 FBS
restaurants
SWP490_G35 70/303
FBS - Software Requirement Specification v2.0
Max
# Field Name Type Mandatory Description
Length
Header (same as header of Search Restaurant screen)
Main
Enter a password,
5 Mật khẩu Textbox Yes 32 display "*" instead of
a clear character
Enter re-password,
6 Nhập lại mật khẩu Textbox Yes 32 display "*" instead of
a clear character
Actor Guest
SWP490_G35 71/303
FBS - Software Requirement Specification v2.0
This function allows the user who does not have an account in the system to
Description
register a new account
Main flows
4 User Enter phone used to login in the “Số điện thoại” textbox
Click “Tôi đồng ý với Điều khoản sử dụng và Chính sách bảo mật của FBS”
7 User
checkbox
Alternative flows
SWP490_G35 72/303
FBS - Software Requirement Specification v2.0
AT2 At step 4 in the main flows, if the phone number is not entered
AT3 At step 4 in the main flows, if the phone number entered is already registered
AT4 At step 4 in the main flows, if the phone number is not correct format
4.3 FBS Display a message “Số điện thoại không đúng định dạng”
AT6 At step 5 in the main flows, if the password is not between 3-32 characters
SWP490_G35 73/303
FBS - Software Requirement Specification v2.0
5.2 FBS Display a message “Vui lòng nhập mật khẩu từ 3-32 ký tự”
AT7 At step 6 in the main flows, if the password and re-password are not the same
AT8 At step 7 in the main flows, if the terms of use checkbox has not been clicked
7.1 FBS Display a message “Vui lòng đồng ý với điều khoản sử dụng”
AT9 At step 9 in the main flows, if there is an internal error in the system
AT10 At step 10 in the main flows, if the OTP code is not entered
AT11 At step 10 in the main flows, if the OTP code entered is not correct
SWP490_G35 74/303
FBS - Software Requirement Specification v2.0
Business Rules
# Rule Description
Users have to wait for the OTP code to be sent to their phone and re-enter the code to
BR02
be able to register an account.
This function allows the user to chat with FBS’s page in Facebook via
Description
Facebook Messenger
Main flows
SWP490_G35 75/303
FBS - Software Requirement Specification v2.0
SWP490_G35 76/303
FBS - Software Requirement Specification v2.0
SWP490_G35 77/303
FBS - Software Requirement Specification v2.0
Max
# Field Name Type Mandatory Description
Length
Main
Enter a new
3 Mật khẩu mới Textbox Yes 32 password, display "*"
instead of a clear
character
Enter re-password,
4 Nhập lại mật khẩu Textbox Yes 32 display "*" instead of
clear character
SWP490_G35 78/303
FBS - Software Requirement Specification v2.0
Description This function allows the authorized user to reset the password
Main flows
3 User Enter phone used to login in the “Số điện thoại” textbox
SWP490_G35 79/303
FBS - Software Requirement Specification v2.0
Validate the entered phone number, password, re-password, and OTP code
10 FBS
and then display a message “Đổi mật khẩu thành công”
Alternative flows
AT1 At step 3 in the main flows, if the phone number is not entered
AT2 At step 3 in the main flows, if the phone number entered is not registered
AT3 At step 3 in the main flows, if the phone number entered is not correct format
3.3 FBS Display a message “Số điện thoại không đúng định dạng”
AT5 At step 4 in the main flows, if the password is not between 3-127 characters
4.2 FBS Display a message “Vui lòng nhập mật khẩu từ 3-127 ký tự”
SWP490_G35 80/303
FBS - Software Requirement Specification v2.0
AT6 At step 5 in the main flows, if the password and re-password are not the same
AT7 At step 7 in the main flows, if there is an internal error in the system
Sub-step Actor Action
7.1 FBS Display a message “Lỗi hệ thống”
AT8 At step 8 in the main flows, if the OTP code is not entered
AT9 At step 8 in the main flows, if the OTP code entered is not correct
8.2 FBS Display a message “Đổi mật khẩu không thành công”
Business Rules
# Rule Description
Users have to wait for the OTP code to be sent to their phone and re-enter the code to
BR02
be able to register an account.
All users after having an account can log in, log out, change passwords, retrieve
BR03
passwords when forgotten.
SWP490_G35 81/303
FBS - Software Requirement Specification v2.0
Max
# Field Name Type Mandatory Description
Length
Main
Enter a password,
3 Mật khẩu Textbox Yes 32 display "*" instead of
a clear character
SWP490_G35 82/303
FBS - Software Requirement Specification v2.0
Post-Condition POS-01: User logins successfully in FBS system and goes to Home screen
Main flows
3 User Enter phone used to login in the “Số điện thoại” textbox
6 FBS Validate the entered phone number, password and then display Home screen
Alternative flows
AT1 At step 3 in the main flows, if the phone number is not entered
SWP490_G35 83/303
FBS - Software Requirement Specification v2.0
AT2 At step 3 in the main flows, if the phone number entered is not registered
3.2 FBS Display a message “Số điện thoại hoặc mật khẩu không đúng”
4.2 FBS Display a message “Số điện thoại hoặc mật khẩu không đúng”
# Rule Description
All users after having an account can log in, log out, change passwords, retrieve
BR03
passwords when forgotten.
SWP490_G35 84/303
FBS - Software Requirement Specification v2.0
SWP490_G35 85/303
FBS - Software Requirement Specification v2.0
Max
# Field Name Type Mandatory Description
Length
Header
Image
1 Logo Image Link to Home screen
Card
Link to Add
4 Đăng ký nhà hàng Hyperlink
Restaurant screen
Sidebar
Link to Wallet
5 Ví FBS Hyperlink
Information screen
Link to My Restaurant
6 Nhà hàng của tôi Hyperlink
screen
Main
SWP490_G35 86/303
FBS - Software Requirement Specification v2.0
Description This function allows the authorized user to view his/her profile
Main flows
SWP490_G35 87/303
FBS - Software Requirement Specification v2.0
SWP490_G35 88/303
FBS - Software Requirement Specification v2.0
Max
# Field Name Type Mandatory Description
Length
Main
Phone number to
3 Số điện thoại Textbox Yes 10
contact of user
Gender of user
6 Giới tính Combo box Value: Name - Male,
Nữ - Female, Khác -
Other
This function allows the authorized user to update his/her information in the
Description
profile
SWP490_G35 89/303
FBS - Software Requirement Specification v2.0
TRG-04: User goes to User Profile Update screen, changes information, and
clicks “Lưu” button
Main flows
Alternative flows
5.1 FBS Display a message “Vui lòng nhập tên người dùng”
AT2 At step 5 in the main flows, if the phone number is not entered
AT3 At step 5 in the main flows, if the email is not correct format
SWP490_G35 90/303
FBS - Software Requirement Specification v2.0
5.3 FBS Display a message “Vui lòng nhập email đúng định dạng (bao gồm '@' và '.')”
AT4 At step 6 in the main flows, if the user clicks “Quay lại” button or Close button
6.1 FBS Close User Profile Update screen and not save change
AT5 At step 6 in the main flows, if the user clicks “Quay lại” button or Close button
6.1 FBS Close User Profile Update screen and not save change
AT6 At step 8 in the main flows, if the user clicks “Quay lại” button
8.1 FBS Back to User Profile Update screen and not save change
Business Rules
# Rule Description
All users after having an account can log in, log out, change passwords, retrieve
BR03
passwords when forgotten.
SWP490_G35 91/303
FBS - Software Requirement Specification v2.0
Max
# Field Name Type Mandatory Description
Length
Main
Enter an old
2 Mật khẩu hiện tại Textbox Yes 32 password, display "*"
instead of a clear
character
Enter a new
3 Mật khẩu mới Textbox Yes 32 password, display "*"
instead of a clear
character
Enter re-password,
4 Xác nhận mật khẩu Textbox Yes 32 display "*" instead of
clear character
SWP490_G35 92/303
FBS - Software Requirement Specification v2.0
Description This function allows the authorized user to change the password
Main flows
5 User Enter old password in the “Mật khẩu hiện tại” textbox
Validate the entered old password, new password, re-password, and then
9 FBS
display a confirm dialog
Alternative flows
AT1 At step 5 in the main flows, if the old password is not entered
SWP490_G35 93/303
FBS - Software Requirement Specification v2.0
AT2 At step 5 in the main flows, if the old password entered is not true
AT3 At step 5 in the main flows, if the password is not between 3-127 characters
5.3 FBS Display a message “Vui lòng nhập mật khẩu từ 3-127 ký tự”
AT4 At step 6 in the main flows, if the new password is not entered
AT5 At step 6 in the main flows, if the password is not between 3-127 characters
6.2 FBS Display a message “Vui lòng nhập mật khẩu từ 3-127 ký tự”
AT6 At step 7 in the main flows, if the password and re-password are not the same
SWP490_G35 94/303
FBS - Software Requirement Specification v2.0
AT7 At step 10 in the main flows, if the user clicks “Quay lại” button
10.1 FBS Back to User Profile Change Password screen and not save change
Business Rules
# Rule Description
All users after having an account can log in, log out, change passwords, retrieve
BR03
passwords when forgotten.
SWP490_G35 95/303
FBS - Software Requirement Specification v2.0
Max
# Field Name Type Mandatory Description
Length
Menu bar
SWP490_G35 96/303
FBS - Software Requirement Specification v2.0
Main
Top up by bank
Nạp tiền bằng cách transfer to the
Radio
2 chuyển khoản qua system's account with
Button
ngân hàng the content as given
by the system
This function allows the authorized user to top up their accounts on the FBS
Description
system
SWP490_G35 97/303
FBS - Software Requirement Specification v2.0
TRG-04: User selects a method of top-up money into the wallet, enters the
amount, and clicks “Nạp tiền” button
Main flows
Select method of top up money into the wallet in “Chọn phương thức nạp
7 User
tiền vào ví”
Alternative flows
At step 7 in the main flows, if the user selects top-up to FBS wallet with PayPal wallet
AT1
method
SWP490_G35 98/303
FBS - Software Requirement Specification v2.0
8.1 FBS Display message “Vui lòng nhập số tiền cần nạp”
8.2 FBS Display message “Vui lòng nhập số tiền là số lớn hơn 0”
AT4 At step 11 in the main flows, if the user clicks “Quay lại” button or Close button
SWP490_G35 99/303
FBS - Software Requirement Specification v2.0
Max
# Field Name Type Mandatory Description
Length
Main
SWP490_G35 100/303
FBS - Software Requirement Specification v2.0
Filter transaction by
status of transactions
Value: Tất cả - All,
7 Trạng thái Hyperlink Thành công -
Successful, Đang xử lý -
Processing, Thất bại -
Failure
SWP490_G35 101/303
FBS - Software Requirement Specification v2.0
Description This function allows the authorized user to review all transactions history
Main flows
SWP490_G35 102/303
FBS - Software Requirement Specification v2.0
Max
# Field Name Type Mandatory Description
Length
SWP490_G35 103/303
FBS - Software Requirement Specification v2.0
Main
Withdraw by bank
Rút tiền bằng cách transfer to the user's
Radio
3 chuyển khoản qua account with the
Button
ngân hàng content as given by
the system
This function allows the authorized user to withdraw funds from the FBS
Description
system wallet
SWP490_G35 104/303
FBS - Software Requirement Specification v2.0
Main flows
7 User Select method of withdraw money in “Chọn phương thức rút tiền”
Alternative flows
At step 7 in the main flows, if the user selects withdraw by bank transfer to the user's
AT1
account
Display “Nhập thông tin tài khoản” text area for user to enter the bank
7.1 FBS
account information
8.1 FBS Display message “Vui lòng nhập số tiền cần rút”
SWP490_G35 105/303
FBS - Software Requirement Specification v2.0
8.2 FBS Display message “Vui lòng nhập số tiền là số lớn hơn 0”
AT4 At step 11 in the main flows, if the user clicks “Quay lại” button or Close button
SWP490_G35 106/303
FBS - Software Requirement Specification v2.0
SWP490_G35 107/303
FBS - Software Requirement Specification v2.0
Max
# Field Name Type Mandatory Description
Length
Use Case ID UC-19 Use Case Name Rate and Comment Restaurant
This function allows the authorized user to rate and comment about the
Description
restaurant
Main flows
6 FBS Display the feedback at the “Bài đánh giá ABC Palace từ khách hàng”
SWP490_G35 108/303
FBS - Software Requirement Specification v2.0
Alternative flows
4.1 FBS Display a message “Vui lòng nhập nội dung đánh giá”
Table 3-106: Alternative flows of Rate and Comment Restaurant Use case
AT2 At step 4 in the main flows, if the report content is more than 250 characters
5.1 FBS Display a message “Nội dung đánh giá phải ít hơn 250 ký tự”
Table 3-107: Alternative flows of Rate and Comment Restaurant Use case
Business Rules
# Rule Description
Table 3-108: Business Rules of Rate and Comment Restaurant Use case
SWP490_G35 109/303
FBS - Software Requirement Specification v2.0
Max
# Field Name Type Mandatory Description
Length
Main
2 Nội dung báo cáo Textarea Yes 250 Enter report content
Button to back
4 Trở lại Button Restaurant Detail
screen
This function allows the authorized user to report dishes, combos, or services
Description
of the restaurant to the admin
Main flows
SWP490_G35 110/303
FBS - Software Requirement Specification v2.0
Display a message “Bạn đã báo cáo thành công” and send a notification to the
7 FBS
admin about the customer's report
Alternative flows
AT1 At step 5 in the main flows, if the report content is not entered
5.1 FBS Display a message “Vui lòng nhập nội dung báo cáo”
AT2 At step 6 in the main flows, if the user clicks “Trở lại” button or Close button
6.1 FBS Back to Restaurant Detail screen and not save change
Business Rules
# Rule Description
SWP490_G35 111/303
FBS - Software Requirement Specification v2.0
SWP490_G35 112/303
FBS - Software Requirement Specification v2.0
Max
# Field Name Type Mandatory Description
Length
Main
Select session to
organize feast
4 Buổi Combo box Yes
Value: Trưa – noon,
Tối – evening
Category of items
Value: Thực đơn –
8 Category Title Label Menu, Combo món ăn
– Combo, Dịch vụ -
Service
SWP490_G35 113/303
FBS - Software Requirement Specification v2.0
Button to back
15 Trở lại Button Restaurant Detail
screen
This function allows the authorized user to create a feast order by choosing
Description
the menu and services, and fill in some information
TRG-01: User has been authorized to Restaurant Menu/ Restaurant Combo/ Commented [20R18]: _Re-opened_
3 User Click “Thực đơn”, “Combo”, “Dịch vụ” hyperlink on menu bar
4 FBS Display Restaurant Menu, Restaurant Combo, and Restaurant Service screen
5 User Select dishes, combos, or services and add them to the cart
SWP490_G35 114/303
FBS - Software Requirement Specification v2.0
Enter order detailed information about table type, session to organize feast,
9 User
number of guests, feast date and note for restaurant and number of items
Alternative flows
AT1 At step 5 in the main flows, if the user doesn't select any item
AT2 At step 9 in the main flows, if the required fields are not entered
9.1 FBS Display a message “Vui lòng nhập thông tin đơn hàng”
At step 9 in the main flows, if the year of the feast is exceeded 1 year from the year of
AT3
the order date
9.2 FBS Display a message “Ngày tổ chức phải là dd/mm/yyyy” hoặc sớm hơn”
AT4 At step 10 in the main flows, if the user clicks “Trở lại” button or Close button
SWP490_G35 115/303
FBS - Software Requirement Specification v2.0
Business Rules
# Rule Description
BR05 Only registered users can successfully log in and make party bookings on the web.
.
3.5.2.13 UC-22 - View Order History
3.5.2.13.1 Screen Design
SWP490_G35 116/303
FBS - Software Requirement Specification v2.0
Max
# Field Name Type Mandatory Description
Length
Main
SWP490_G35 117/303
FBS - Software Requirement Specification v2.0
Type of organization:
Tiệc cưới tại nhà
7 hàng/Tiệc cưới lưu Label Value: Feast at
động restaurant / Feast at
home
This function allows the authorized user to view order history such as
Description
pending orders, preparing orders, accomplish orders, and canceled orders
SWP490_G35 118/303
FBS - Software Requirement Specification v2.0
Main flows
3 User Click “Đơn đặt tiệc của tôi” hyperlink at the sidebar
Select “Chờ duyệt” in menu bar to view the orders that waiting for the
5 User restaurant to approve, or “Chưa diễn ra” - the orders that are being
prepared, “Đã diễn ra” - Completed orders, “Đã hủy” - Canceled orders
SWP490_G35 119/303
FBS - Software Requirement Specification v2.0
SWP490_G35 120/303
FBS - Software Requirement Specification v2.0
Max
# Field Name Type Mandatory Description
Length
Main
Type of organization
4 Loại hình Label Value: Tại cơ sở - Feast
at restaurant, Lưu
động - Feast at home
SWP490_G35 121/303
FBS - Software Requirement Specification v2.0
Main flows
2 User Click “Xem chi tiết” hyperlink in the order card that want to view
SWP490_G35 122/303
FBS - Software Requirement Specification v2.0
SWP490_G35 123/303
FBS - Software Requirement Specification v2.0
Max
# Field Name Type Mandatory Description
Length
Confirm Dialog
Description This function allows the authorized user to cancel his/her order
PRE-01: User has been authorized to Pending Order/ Preparing Order screen
Precondition
PRE-02: User is in Pending Order/ Preparing Order screen
PRE-01: User has been authorized to Pending Order/ Preparing Order screen
Trigger PRE-02: User is in Pending Order/ Preparing Order screen
TRG-03: User clicks “Hủy đặt” button
TRG-04: User enters password and clicks “Xác nhận” button at confirm dialog
Main flows
SWP490_G35 124/303
FBS - Software Requirement Specification v2.0
5 User Enter password in the “Nhập mật khẩu của bạn” textbox
Validate entered password and display message “Bạn đã hủy đơn hàng thành
7 FBS
công”
Alternative flows
AT2 At step 6 in the main flows, if the user clicks “Trở lại” button or Close button
6.1 FBS Back to User Profile Order Detail screen and not save change
Business Rules
# Rule Description
The customer has the right to cancel the order placed before the delivery date. But
BR12 when the customer cancels the order, they have to pay compensation according to the
regulations of the restaurant and the system.
Customers can order the party to be delivered at home or the locations provided by the
BR13
restaurant.
SWP490_G35 125/303
FBS - Software Requirement Specification v2.0
Max
# Field Name Type Mandatory Description
Length
Main
SWP490_G35 126/303
FBS - Software Requirement Specification v2.0
Type of restaurant
Value: Tổ chức sự kiện
lưu động - Organizing
Combo a roving feast, Tổ
3 Loại hình Yes
box chức sự kiện tại cơ sở
- Organizing a
restaurant feast, Cả
hai - Both
Combo Province/City of
5 Tỉnh/Thành phố Yes
box restaurant
Combo
6 Quận/Huyện Yes District of restaurant
box
Link to Terms of
13 điều khoản Hyperlink
system
SWP490_G35 127/303
FBS - Software Requirement Specification v2.0
This function allows the authorized user to add a new restaurant into the FBS
Description
system
Main flows
5 User Enter detailed description about restaurant in the “Mô tả” text area
9 User Enter phone number used to contact of restaurant in the “Số điện thoại”
10 User Enter number of guests the restaurant can accommodate in the “Sức chứa”
SWP490_G35 128/303
FBS - Software Requirement Specification v2.0
Enter the business license number of the restaurant in the “Mã giấy phép
11 User
kinh doanh” textbox
Click “Thêm ảnh” button to open popup to select Images of food hygiene and
12 User
safety for catering of the restaurant
Alternative flows
3.1 FBS Display a message “Tên nhà hàng không được để trống”
SWP490_G35 129/303
FBS - Software Requirement Specification v2.0
9.1 FBS Display a message “Số điện thoại không được để trống”
9.2 FBS Display a message “Số điện thoại sai định dạng”
AT7 At step 11 in the main flows, if business license number is not entered
11.1 FBS Display a message “Mã giấy phép kinh doanh không được để trống”
12.1 FBS Display a message “Vui lòng thêm giấy chứng nhận của nhà hàng”
13.1 FBS Display a message “Vui lòng đồng ý với điều khoản của FBS”
SWP490_G35 130/303
FBS - Software Requirement Specification v2.0
AT10 At step 16 in the main flows, if user clicks “Trở lại” button or Close button
Business Rules
# Rule Description
BR06 Only users who have been verified after an add restaurant step can become providers.
Customers can view the website, place an order on the website, and register as a
BR10
provider.
BR23 Provider can register multiple restaurants with the same login account.
BR33 The number of guests the restaurant can accommodate must enter the positive integer
SWP490_G35 131/303
FBS - Software Requirement Specification v2.0
Max
# Field Name Type Mandatory Description
Length
Notification
Notification
2 Notifications List List of notification
list
Main flows
Alternative flows
AT1 At step 2 in the main flows, if user does not have a notification
SWP490_G35 132/303
FBS - Software Requirement Specification v2.0
Description This function allows the authorized user to sign out to FBS
Post-Condition POS-01: Users will log out successfully and redirect to the Login screen
Main flows
Alternative flows
AT1 At step 3 in the main flows, if user clicks “Quay lại” button or Close button
SWP490_G35 133/303
FBS - Software Requirement Specification v2.0
Actor
The system automatically deducts the commission and refunds the deposit to
the provider after the order is completed. In addition, if the customer cancels
Description
the order, the deposit will also be refunded according to the regulations and
based on the time of cancellation
Main flows
Actor
Post-Condition POS-01: Authorized user to check what functions the user can perform
Main flows
SWP490_G35 134/303
FBS - Software Requirement Specification v2.0
SWP490_G35 135/303
FBS - Software Requirement Specification v2.0
SWP490_G35 136/303
FBS - Software Requirement Specification v2.0
SWP490_G35 137/303
FBS - Software Requirement Specification v2.0
SWP490_G35 138/303
FBS - Software Requirement Specification v2.0
SWP490_G35 139/303
FBS - Software Requirement Specification v2.0
Max
# Field Name Type Mandatory Description
Length
Main
Status of restaurant
Value: Chờ duyệt -
Restaurant is waiting
1 Title Trạng thái Label for approval, Đang
hoạt động -
Restaurant is active,
Ngừng hoạt động -
Restaurant is inactive
Display some
2 Restaurant Card Card information of
restaurant
SWP490_G35 140/303
FBS - Software Requirement Specification v2.0
Use Case ID UC-29 Use Case Name View List All Restaurants
Actor FBSProvider
This function allows the authorized user to view all restaurants that he/she
Description
has
Post-Condition POS-01: User will view the list of all restaurants successfully
Main flows
SWP490_G35 141/303
FBS - Software Requirement Specification v2.0
SWP490_G35 142/303
FBS - Software Requirement Specification v2.0
Max
# Field Name Type Mandatory Description
Length
Menu bar
Link to My Restaurant
1 Thông tin Hyperlink
Detail screen
Link to My Restaurant
2 Ảnh Hyperlink
Image screen
Link to My Restaurant
3 Thực đơn Hyperlink
Menu screen
Link to My Restaurant
4 Combo món ăn Hyperlink
Combo screen
Link to My Restaurant
5 Dịch vụ Hyperlink
Service screen
Link to My Restaurant
6 Khuyến mãi Hyperlink
Promotion screen
Link to My Restaurant
7 Đơn hàng Hyperlink
Order screen
Main
Hyperlink to open
2 Thay đổi ảnh Hyperlink popup to update new
avatar of the
restaurant
Images of food
Giấy chứng nhận vệ
hygiene and safety for
3 sinh an toàn thực Image
catering of the
phẩm
restaurant
SWP490_G35 143/303
FBS - Software Requirement Specification v2.0
Button to trigger
14 Cập nhật Button Yes
Update function
Actor FBSProvider
SWP490_G35 144/303
FBS - Software Requirement Specification v2.0
Main flows
3 User Click “Xem thêm” button at the restaurant you want to update
5 User Click “Thay đổi ảnh” hyperlink if user want to update the image
Alternative flows
SWP490_G35 145/303
FBS - Software Requirement Specification v2.0
11.1 FBS Display a message “Tên nhà hàng không được để trống”
11.4 FBS Display a message “Số điện thoại không được để trống”
11.5 FBS Display a message “Số điện thoại sai định dạng”
SWP490_G35 146/303
FBS - Software Requirement Specification v2.0
AT8 At step 14 in the main flows, if user click “Trở lại” button or Close button
11.1 FBS Back to My Restaurant Detail screen and not save change
SWP490_G35 147/303
FBS - Software Requirement Specification v2.0
Max
# Field Name Type Mandatory Description
Length
Main
Button to trigger
3 Tìm kiếm Button Search order by order
code
Use Case ID UC-32 Use Case Name View List All Orders
SWP490_G35 148/303
FBS - Software Requirement Specification v2.0
Actor FBSProvider
This function allows the authorized user to view the list of all orders from
Description
customers
Post-Condition POS-01: User will view the list of all orders successfully
Main flows
Business Rules
# Rule Description
BR14 Providers have full roles as customers and have additional management functions to
view, add, edit, delete products, manage orders and manage promotions
Table 3-165: Business Rules of View List All Orders Use case
SWP490_G35 149/303
FBS - Software Requirement Specification v2.0
Max
# Field Name Type Mandatory Description
Length
Reference to UC-32
SWP490_G35 150/303
FBS - Software Requirement Specification v2.0
Actor FBSProvider
This function allows the authorized user to search the order from customers
Description
by order code
Main flows
5 FBS Validate entered order code and display result at My Restaurant Order screen
Alternative flows
Business Rules
# Rule Description
Providers have full roles as customers and have additional management functions to
BR14
view, add, edit, delete products, manage orders and manage promotions
SWP490_G35 151/303
FBS - Software Requirement Specification v2.0
SWP490_G35 152/303
FBS - Software Requirement Specification v2.0
Max
# Field Name Type Mandatory Description
Length
Main
SWP490_G35 153/303
FBS - Software Requirement Specification v2.0
Actor FBSProvider
This function allows the authorized user to view the detailed information of
Description
the order from the customer
Post-Condition POS-01: User will view detailed information of the order successfully
Main flows
3 User Click “Chi tiết” button at the order that want to view
Business Rules
# Rule Description
Providers have full roles as customers and have additional management functions to
BR14
view, add, edit, delete products, manage orders and manage promotions.
SWP490_G35 154/303
FBS - Software Requirement Specification v2.0
SWP490_G35 155/303
FBS - Software Requirement Specification v2.0
Max
# Field Name Type Mandatory Description
Length
Confirm Dialog
Actor FBSProvider
Description This function allows the authorized user to accept orders from the customers
SWP490_G35 156/303
FBS - Software Requirement Specification v2.0
Main flows
5 User Enter password in the “Nhập mật khẩu của bạn” textbox
Validate entered password and display message “Bạn đã nhận đơn hàng
7 FBS
thành công”
Alternative flows
AT2 At step 6 in the main flows, if the user clicks “Trở lại” button or Close button
6.1 FBS Back to My Restaurant Order Detail screen and not save change
SWP490_G35 157/303
FBS - Software Requirement Specification v2.0
Business Rules
# Rule Description
Providers have full roles as customers and have additional management functions to
BR14
view, add, edit, delete products, manage orders and manage promotions
The provider has the right to accept or cancel the order but must handle it on the day
BR15
of the order.
SWP490_G35 158/303
FBS - Software Requirement Specification v2.0
SWP490_G35 159/303
FBS - Software Requirement Specification v2.0
Max
# Field Name Type Mandatory Description
Length
Confirm Dialog
Actor FBSProvider
This function allows the authorized user to cancel the order from the
Description
customers
SWP490_G35 160/303
FBS - Software Requirement Specification v2.0
Main flows
5 User Enter password in the “Nhập mật khẩu của bạn” textbox
Validate entered password and display message “Bạn đã hủy đơn hàng thành
7 FBS
công”
Alternative flows
AT2 At step 6 in the main flows, if the user clicks “Trở lại” button or Close button
SWP490_G35 161/303
FBS - Software Requirement Specification v2.0
6.1 FBS Back to My Restaurant Order Detail screen and not save change
Business Rules
# Rule Description
Providers have full roles as customers and have additional management functions to
BR14
view, add, edit, delete products, manage orders and manage promotions
The provider has the right to accept or cancel the order but must handle it on the day
BR15
of the order.
SWP490_G35 162/303
FBS - Software Requirement Specification v2.0
SWP490_G35 163/303
FBS - Software Requirement Specification v2.0
Max
# Field Name Type Mandatory Description
Length
Confirm Dialog
Actor FBSProvider
This function allows the authorized user to complete the order from the
Description
customers
SWP490_G35 164/303
FBS - Software Requirement Specification v2.0
Main flows
5 User Enter password in the “Nhập mật khẩu của bạn” textbox
Validate entered password and display message “Bạn đã hoàn thành đơn
7 FBS
hàng thành công”
Alternative flows
AT2 At step 6 in the main flows, if the user clicks “Trở lại” button or Close button
6.1 FBS Back to My Restaurant Order Detail screen and not save change
Business Rules
SWP490_G35 165/303
FBS - Software Requirement Specification v2.0
# Rule Description
Providers have full roles as customers and have additional management functions to
BR14
view, add, edit, delete products, manage orders and manage promotions
Once the order has been completed and the customer has successfully paid for the
BR48
restaurant, the provider can mark the order status as completed
SWP490_G35 166/303
FBS - Software Requirement Specification v2.0
Max
# Field Name Type Mandatory Description
Length
Main
Use Case ID UC-38 Use Case Name View List All Combos
Actor FBSProvider
This function allows the authorized user to view the list of all combos of own
Description
restaurant
SWP490_G35 167/303
FBS - Software Requirement Specification v2.0
Post-Condition POS-01: User will view the list of all combos successfully
Main flows
Business Rules
# Rule Description
Providers have full roles as customers and have additional management functions to
BR14
view, add, edit, delete products, manage orders and manage promotions
Table 3-190: Business Rules of View List All Combos Use case
SWP490_G35 168/303
FBS - Software Requirement Specification v2.0
Max
# Field Name Type Mandatory Description
Length
Main
SWP490_G35 169/303
FBS - Software Requirement Specification v2.0
Actor FBSProvider
This function allows the authorized user to add a new combo into the
Description
restaurant
Main flows
3 User Click “Chọn hoặc đổi ảnh” button to open popup to select avatar of combo
Alternative flows
SWP490_G35 170/303
FBS - Software Requirement Specification v2.0
3.1 FBS Display a message “Vui lòng thêm ảnh cho combo”
AT4 At step 5 in the main flows, if combo price is not a positive integer
AT6 At step 7 in the main flows, if user clicks “Trở lại” button or Close button
SWP490_G35 171/303
FBS - Software Requirement Specification v2.0
Business Rules
# Rule Description
Providers have full roles as customers and have additional management functions to
BR14
view, add, edit, delete products, manage orders and manage promotions
BR27 The price must enter the positive integer and be greater than or equal to 1,000 (VNĐ).
SWP490_G35 172/303
FBS - Software Requirement Specification v2.0
Max
# Field Name Type Mandatory Description
Length
Combo
6 Trạng thái Status of combo
box
SWP490_G35 173/303
FBS - Software Requirement Specification v2.0
Display information
11 Dishes Table Table about dishes of
combo
Display information
2 Dishes Table Table about dishes of the
restaurant
SWP490_G35 174/303
FBS - Software Requirement Specification v2.0
Button to close My
7 OK Button Restaurant Combo
Dish screen
Vertical
8 Scroll
Scroll Bar
Actor FBSProvider
Main flows
3 User Click “Thay đổi ảnh” button to open popup to select avatar of combo
8 User Click “Xóa” button at dish that want to remove from combo
SWP490_G35 175/303
FBS - Software Requirement Specification v2.0
9 FBS Delete dish from combo and display message “Xóa món ăn thành công”
13 FBS Add dish to combo and display message “Thêm món ăn thành công”
Alternative flows
AT3 At step 5 in the main flows, if combo price is not a positive integer
SWP490_G35 176/303
FBS - Software Requirement Specification v2.0
AT5 At step 14 in the main flows, if user clicks “Trở lại” button or Close button
Business Rules
# Rule Description
Providers have full roles as customers and have additional management functions to
BR14
view, add, edit, delete products, manage orders and manage promotions
The provider can choose the active or inactive status. When a restaurant is inactive, all
BR24
items will be hidden from customers.
BR27 The price must enter the positive integer and be greater than or equal to 1,000 (VNĐ).
SWP490_G35 177/303
FBS - Software Requirement Specification v2.0
Max
# Field Name Type Mandatory Description
Length
Main
SWP490_G35 178/303
FBS - Software Requirement Specification v2.0
Button to trigger
4 Search Icon Button Search dish by
keywords name
Use Case ID UC-41 Use Case Name View List All Dishes
Actor FBSProvider
This function allows the authorized user to view the list of all dishes of own
Description
restaurant
SWP490_G35 179/303
FBS - Software Requirement Specification v2.0
Post-Condition POS-01: User will view the list of all dishes successfully
Main flows
Business Rules
# Rule Description
Providers have full roles as customers and have additional management functions to
BR14
view, add, edit, delete products, manage orders and manage promotions
Table 3-210: Business Rules of View List All Dishes Use case
SWP490_G35 180/303
FBS - Software Requirement Specification v2.0
Max
# Field Name Type Mandatory Description
Length
Main
SWP490_G35 181/303
FBS - Software Requirement Specification v2.0
Button to trigger
4 Search Icon Button Search dish by
keywords name
Actor FBSProvider
This function allows the authorized user to search the dish of his/her
Description
restaurant by keywords name and dish’s category
SWP490_G35 182/303
FBS - Software Requirement Specification v2.0
POS-02: Users will search successfully and view the list of dishes
Main flows
Business Rules
# Rule Description
Providers have full roles as customers and have additional management functions to
BR14
view, add, edit, delete products, manage orders and manage promotions
SWP490_G35 183/303
FBS - Software Requirement Specification v2.0
Max
# Field Name Type Mandatory Description
Length
Main
Combo
4 Loại món ăn Yes Category of dish
box
SWP490_G35 184/303
FBS - Software Requirement Specification v2.0
Actor FBSProvider
Description This function allows the authorized user to add a new dish to the restaurant
Main flows
1 User Go to My Restaurant Dish screen and clicks “Thêm món ăn” button
3 User Click “Chọn hoặc đổi ảnh” button to open popup to select avatar of dish
5 User Select category of dish in the “Loại món ăn” combo box
6 User Enter sale price of dish in the “Giá món ăn” textbox
SWP490_G35 185/303
FBS - Software Requirement Specification v2.0
Alternative flows
3.1 FBS Display a message “Vui lòng thêm ảnh cho món ăn”
4.1 FBS Display a message “Vui lòng nhập tên món ăn”
AT4 At step 6 in the main flows, if sale price is not a positive integer
SWP490_G35 186/303
FBS - Software Requirement Specification v2.0
AT6 At step 8 in the main flows, if user clicks “Trở lại” button or Close button
Business Rules
# Rule Description
Providers have full roles as customers and have additional management functions to
BR14
view, add, edit, delete products, manage orders and manage promotions
BR27 The price must enter the positive integer and be greater than or equal to 1,000 (VNĐ).
SWP490_G35 187/303
FBS - Software Requirement Specification v2.0
Max
# Field Name Type Mandatory Description
Length
Main
Combo
5 Loại món ăn Yes Category of dish
box
SWP490_G35 188/303
FBS - Software Requirement Specification v2.0
Combo
6 Trạng thái Status of dish
box
Actor FBSProvider
Main flows
Go to My Restaurant Dish screen and click “Sửa” button at dish that want to
1 User
update
3 User Click “Thay đổi ảnh” button to open popup to select avatar of dish
SWP490_G35 189/303
FBS - Software Requirement Specification v2.0
7 User Enter sale price of dish in the “Giá món ăn” textbox
Alternative flows
AT3 At step 7 in the main flows, if sale price is not a positive integer
SWP490_G35 190/303
FBS - Software Requirement Specification v2.0
AT5 At step 9 in the main flows, if user clicks “Trở lại” button or Close button
Business Rules
# Rule Description
Providers have full roles as customers and have additional management functions to
BR14
view, add, edit, delete products, manage orders and manage promotions
The provider can choose the active or inactive status. When a restaurant is inactive, all
BR24
items will be hidden from customers.
BR27 The price must enter the positive integer and be greater than or equal to 1,000 (VNĐ).
SWP490_G35 191/303
FBS - Software Requirement Specification v2.0
Max
# Field Name Type Mandatory Description
Length
Main
SWP490_G35 192/303
FBS - Software Requirement Specification v2.0
Button to trigger
4 Search Icon Button Search service by
keywords name
Use Case ID UC-45 Use Case Name View List All Services
Actor FBSProvider
This function allows the authorized user to view the list of all services of own
Description
restaurant
SWP490_G35 193/303
FBS - Software Requirement Specification v2.0
Main flows
Business Rules
# Rule Description
Providers have full roles as customers and have additional management functions to
BR14
view, add, edit, delete products, manage orders and manage promotions
Table 3-233: Business Rules of View List All Services Use case
SWP490_G35 194/303
FBS - Software Requirement Specification v2.0
Max
# Field Name Type Mandatory Description
Length
Main
SWP490_G35 195/303
FBS - Software Requirement Specification v2.0
Button to trigger
4 Search Icon Button Search service by
keywords name
Actor FBSProvider
This function allows the authorized user to search the service of his/her
Description
restaurant by keywords name and service’s category
SWP490_G35 196/303
FBS - Software Requirement Specification v2.0
Main flows
Business Rules
# Rule Description
Providers have full roles as customers and have additional management functions to
BR14
view, add, edit, delete products, manage orders and manage promotions
SWP490_G35 197/303
FBS - Software Requirement Specification v2.0
Max
# Field Name Type Mandatory Description
Length
Main
Combo
4 Loại dịch vụ Yes Category of service
box
SWP490_G35 198/303
FBS - Software Requirement Specification v2.0
Actor FBSProvider
This function allows the authorized user to add a new service to the
Description
restaurant
Main flows
1 User Go to My Restaurant Service screen and clicks “Thêm dịch vụ” button
3 User Click “Chọn hoặc đổi ảnh” button to open popup to select avatar of service
5 User Select category of service in the “Loại dịch vụ” combo box
6 User Enter sale price of service in the “Giá dịch vụ” textbox
SWP490_G35 199/303
FBS - Software Requirement Specification v2.0
Alternative flows
3.1 FBS Display a message “Vui lòng thêm ảnh cho dịch vụ”
4.1 FBS Display a message “Vui lòng nhập tên dịch vụ”
AT4 At step 6 in the main flows, if sale price is not a positive integer
SWP490_G35 200/303
FBS - Software Requirement Specification v2.0
AT6 At step 8 in the main flows, if user clicks “Trở lại” button or Close button
Business Rules
# Rule Description
Providers have full roles as customers and have additional management functions to
BR14
view, add, edit, delete products, manage orders and manage promotions
BR27 The price must enter the positive integer and be greater than or equal to 1,000 (VNĐ).
SWP490_G35 201/303
FBS - Software Requirement Specification v2.0
Max
# Field Name Type Mandatory Description
Length
Main
SWP490_G35 202/303
FBS - Software Requirement Specification v2.0
Actor FBSProvider
Main flows
SWP490_G35 203/303
FBS - Software Requirement Specification v2.0
3 User Click “Thay đổi ảnh” button to open popup to select avatar of service
7 User Enter sale price of service in the “Giá dịch vụ” textbox
Alternative flows
SWP490_G35 204/303
FBS - Software Requirement Specification v2.0
AT3 At step 7 in the main flows, if sale price is not a positive integer
AT5 At step 9 in the main flows, if user clicks “Trở lại” button or Close button
Business Rules
# Rule Description
Providers have full roles as customers and have additional management functions to
BR14
view, add, edit, delete products, manage orders and manage promotions
The provider can choose the active or inactive status. When a restaurant is inactive, all
BR24
items will be hidden from customers.
BR27 The price must enter the positive integer and be greater than or equal to 1,000 (VNĐ).
SWP490_G35 205/303
FBS - Software Requirement Specification v2.0
Max
# Field Name Type Mandatory Description
Length
Main
SWP490_G35 206/303
FBS - Software Requirement Specification v2.0
Use Case ID UC-49 Use Case Name View List All Promotions
Actor FBSProvider
This function allows the authorized user to view the list of all promotions of
Description
his/her restaurant
Post-Condition POS-01: User will view the list of all promotions successfully
Main flows
SWP490_G35 207/303
FBS - Software Requirement Specification v2.0
Business Rules
# Rule Description
Providers have full roles as customers and have additional management functions to
BR14
view, add, edit, delete products, manage orders and manage promotions
Table 3-256: Business Rules of View List All Promotions Use case
SWP490_G35 208/303
FBS - Software Requirement Specification v2.0
Max
# Field Name Type Mandatory Description
Length
Main
Actor FBSProvider
This function allows the authorized user to add a new promotion to the
Description
restaurant
SWP490_G35 209/303
FBS - Software Requirement Specification v2.0
Main flows
1 User Go to My Restaurant Promotion screen and clicks “Thêm khuyến mãi” button
Click “Chọn hoặc đổi ảnh” button to open popup to select avatar of
3 User
promotion
Alternative flows
3.1 FBS Display a message “Vui lòng thêm ảnh cho khuyến mãi”
SWP490_G35 210/303
FBS - Software Requirement Specification v2.0
4.1 FBS Display a message “Vui lòng nhập tên khuyến mãi”
AT3 At step 5 in the main flows, if discount percentage is not a positive integer
5.1 FBS Display a message “Phần trăm khuyến mãi phải là số nguyên dương”
6.1 FBS Display a message “Vui lòng chọn ngày bắt đầu”
AT5 At step 6 in the main flows, if start date is smaller than create promotion date
6.2 FBS Display a message “Vui lòng chọn ngày lớn hơn hoặc bằng ngày hôm nay”
7.1 FBS Display a message “Vui lòng chọn ngày kết thúc”
SWP490_G35 211/303
FBS - Software Requirement Specification v2.0
AT7 At step 7 in the main flows, if end date is smaller than create promotion date
7.2 FBS Display a message “Vui lòng chọn ngày lớn hơn hoặc bằng ngày hôm nay”
AT9 At step 10 in the main flows, if user clicks “Trở lại” button or Close button
Business Rules
# Rule Description
Providers have full roles as customers and have additional management functions to
BR14
view, add, edit, delete products, manage orders and manage promotions
SWP490_G35 212/303
FBS - Software Requirement Specification v2.0
SWP490_G35 213/303
FBS - Software Requirement Specification v2.0
Max
# Field Name Type Mandatory Description
Length
Main
Combo
8 Trạng thái Fixed Status of promotion
box
Actor FBSProvider
SWP490_G35 214/303
FBS - Software Requirement Specification v2.0
Main flows
3 User Click “Thay đổi ảnh” button to open popup to update avatar of promotion
Alternative flows
SWP490_G35 215/303
FBS - Software Requirement Specification v2.0
4.1 FBS Display a message “Tên khuyến mãi không được để trống”
AT2 At step 5 in the main flows, if discount percentage is not a positive integer
5.1 FBS Display a message “Phần trăm khuyến mãi phải là số nguyên dương”
6.1 FBS Display a message “Vui lòng chọn ngày bắt đầu”
AT4 At step 6 in the main flows, if start date is smaller than create promotion date
6.2 FBS Display a message “Vui lòng chọn ngày lớn hơn hoặc bằng ngày hôm nay”
7.1 FBS Display a message “Vui lòng chọn ngày kết thúc”
AT6 At step 7 in the main flows, if end date is smaller than create promotion date
SWP490_G35 216/303
FBS - Software Requirement Specification v2.0
7.2 FBS Display a message “Vui lòng chọn ngày lớn hơn hoặc bằng ngày hôm nay”
AT8 At step 9 in the main flows, if user clicks “Trở lại” button or Close button
AT9 At step 11 in the main flows, if user clicks “Trở lại” button or Close button
10.1 FBS Back to My Restaurant Update Promotion screen and not save
Business Rules
# Rule Description
Providers have full roles as customers and have additional management functions to
BR14
view, add, edit, delete products, manage orders and manage promotions
SWP490_G35 217/303
FBS - Software Requirement Specification v2.0
Max
# Field Name Type Mandatory Description
Length
Main
SWP490_G35 218/303
FBS - Software Requirement Specification v2.0
Actor FBSProvider
This function allows the authorized user to add a description image for the
Description
restaurant
Main flows
SWP490_G35 219/303
FBS - Software Requirement Specification v2.0
Alternative flows
AT2 At step 7 in the main flows, if user clicks “Quay lại” button
7.1 FBS Close confirm dialog and back to My Restaurant Image screen
Business Rules
# Rule Description
BR38 The restaurant must have at least one picture to add in.
SWP490_G35 220/303
FBS - Software Requirement Specification v2.0
SWP490_G35 221/303
FBS - Software Requirement Specification v2.0
Max
# Field Name Type Mandatory Description
Length
Reference to UC-52
Actor FBSProvider
This function allows the authorized user to delete a description image of the
Description
restaurant
Main flows
Alternative flows
SWP490_G35 222/303
FBS - Software Requirement Specification v2.0
AT1 At step 5 in the main flows, if user clicks “Quay lại” button
5.1 FBS Close confirm dialog and back to My Restaurant Image screen
Business Rules
# Rule Description
SWP490_G35 223/303
FBS - Software Requirement Specification v2.0
SWP490_G35 224/303
FBS - Software Requirement Specification v2.0
SWP490_G35 225/303
FBS - Software Requirement Specification v2.0
SWP490_G35 226/303
FBS - Software Requirement Specification v2.0
Max
# Field Name Type Mandatory Description
Length
Header
Sidebar
SWP490_G35 227/303
FBS - Software Requirement Specification v2.0
Link to Admin
5 Nhà hàng Hyperlink
Restaurant screen
Main
Total number of
1 Số người dùng Label accounts in the FBS
system
SWP490_G35 228/303
FBS - Software Requirement Specification v2.0
Actor FBSAdmin
Description This function allows the authorized user to view the dashboard in the days
Main flows
Business Rules
# Rule Description
Admin has permission to views orders, revenue of system, accounts, and restaurants of
BR16
system
SWP490_G35 229/303
FBS - Software Requirement Specification v2.0
Max
# Field Name Type Mandatory Description
Length
Main
SWP490_G35 230/303
FBS - Software Requirement Specification v2.0
Combo
4 Order Status Select status of orders
box
Use Case ID UC-55 Use Case Name Search Order For Admin
Actor FBSAdmin
Description The function allows the authorized user to search the order of the system
SWP490_G35 231/303
FBS - Software Requirement Specification v2.0
Main flows
4 User Enter order code or select from date to date or select status of orders
Business Rules
# Rule Description
Admin has permission to views orders, revenue of system, accounts, and restaurants of
BR16
system
Table 3-296: Business Rules of Search Order For Admin Use case
SWP490_G35 232/303
FBS - Software Requirement Specification v2.0
Max
# Field Name Type Mandatory Description
Length
Main
SWP490_G35 233/303
FBS - Software Requirement Specification v2.0
SWP490_G35 234/303
FBS - Software Requirement Specification v2.0
Actor FBSAdmin
This function allows the authorized user to view detailed information about
Description
the system
Post-Condition POS-01: User will view detailed information of the order successfully
Main flows
3 User Click “Chi tiết” button at the order that want to view
Business Rules
# Rule Description
Admin has permission to views orders, revenue of system, accounts, and restaurants of
BR16
system
SWP490_G35 235/303
FBS - Software Requirement Specification v2.0
Max
# Field Name Type Mandatory Description
Length
Menu bar
Main
SWP490_G35 236/303
FBS - Software Requirement Specification v2.0
Table contains
4 Restaurant Table Table restaurant
information
Link to Admin
9 Chi tiết Button Restaurant Detail
screen
Use Case ID UC-57 Use Case Name Search Restaurant For Admin
Actor FBSAdmin
Description The function allows the authorized user to search restaurants on the system.
SWP490_G35 237/303
FBS - Software Requirement Specification v2.0
TRG-03: User clicks “Nhà hàng” hyperlink on sidebar and clicks “Tất cả nhà
hàng” hyperlink in menu bar
TRG-04: User enters keyword name or selects status of restaurant and clicks
Search button
Main flows
Business Rules
# Rule Description
Admin has permission to views orders, revenue of system, accounts, and restaurants of
BR16
system
Table 3-302: Business Rules of Search Restaurant For Admin Use case
SWP490_G35 238/303
FBS - Software Requirement Specification v2.0
Max
# Field Name Type Mandatory Description
Length
Main
SWP490_G35 239/303
FBS - Software Requirement Specification v2.0
Link to Admin
5 Chi tiết Button Restaurant Detail
screen
Actor FBSAdmin
The function allows the authorized user to view the list of all pending
Description
restaurants of the system.
Main flows
SWP490_G35 240/303
FBS - Software Requirement Specification v2.0
Business Rules
# Rule Description
Admin has permission to views orders, revenue of system, accounts, and restaurants of
BR16
system
SWP490_G35 241/303
FBS - Software Requirement Specification v2.0
Max
# Field Name Type Mandatory Description
Length
Menu bar
Link to Admin
1 Thông tin Hyperlink Restaurant
Information screen
Link to Admin
2 Ảnh Hyperlink Restaurant Image
screen
Link to Admin
3 Thực đơn Hyperlink Restaurant Menu
screen
Link to Admin
4 Combo món ăn Hyperlink Restaurant Combo
screen
Link to Admin
5 Dịch vụ Hyperlink Restaurant Service
screen
Main
Images of food
Giấy chứng nhận vệ
hygiene and safety for
2 sinh an toàn thực Image
catering of the
phẩm
restaurant
SWP490_G35 242/303
FBS - Software Requirement Specification v2.0
Actor FBSAdmin
This function allows the authorized user to view the detailed information
Description
restaurant of the system
Main flows
3 User Click “Chi tiết” button at the restaurant that want to view
SWP490_G35 243/303
FBS - Software Requirement Specification v2.0
Business Rules
# Rule Description
Admin has permission to views orders, revenue of system, accounts, and restaurants of
BR16
system
SWP490_G35 244/303
FBS - Software Requirement Specification v2.0
SWP490_G35 245/303
FBS - Software Requirement Specification v2.0
Max
# Field Name Type Mandatory Description
Length
Confirm Dialog
Actor FBSAdmin
Description This function allows the authorized user to approve a new restaurant
Main flows
SWP490_G35 246/303
FBS - Software Requirement Specification v2.0
Approve restaurant, notify for provider and display new restaurant on the
6 FBS
system
Alternative flows
AT1 At step 5 in the main flows, if user clicks “Trở lại” or Close button
5.1 FBS Back to Admin Pending Restaurants screen and not save change
SWP490_G35 247/303
FBS - Software Requirement Specification v2.0
SWP490_G35 248/303
FBS - Software Requirement Specification v2.0
Max
# Field Name Type Mandatory Description
Length
Actor FBSAdmin
This function allows the authorized user to change the status of restaurants
Description
to cancel
Main flows
SWP490_G35 249/303
FBS - Software Requirement Specification v2.0
Alternative flows
AT1 At step 5 in the main flows, if user clicks “Trở lại” or Close button
5.1 FBS Back to Admin Pending Restaurants screen and not save change
SWP490_G35 250/303
FBS - Software Requirement Specification v2.0
Max
# Field Name Type Mandatory Description
Length
Confirm Dialog
Actor FBSAdmin
Description This function allows the authorized user to block the reported restaurant
SWP490_G35 251/303
FBS - Software Requirement Specification v2.0
Main flows
6 FBS Block restaurant, notify for provider, and hide restaurant on the system
Alternative flows
AT1 At step 5 in the main flows, if user clicks “Trở lại” or Close button
5.1 FBS Back to Admin List Restaurants screen and not save change
SWP490_G35 252/303
FBS - Software Requirement Specification v2.0
SWP490_G35 253/303
FBS - Software Requirement Specification v2.0
Max
# Field Name Type Mandatory Description
Length
Confirm Dialog
Actor FBSAdmin
Description This function allows the authorized user to unblock the reported restaurant
Main flows
SWP490_G35 254/303
FBS - Software Requirement Specification v2.0
Unblock restaurant, notify for provider, and display restaurant again on the
6 FBS
system
Alternative flows
AT1 At step 5 in the main flows, if user clicks “Trở lại” or Close button
5.1 FBS Back to Admin List Restaurants screen and not save change
SWP490_G35 255/303
FBS - Software Requirement Specification v2.0
Max
# Field Name Type Mandatory Description
Length
Notification
Notification
2 Notifications List List of notification
list
Use Case ID UC-64 Use Case Name View Notifications For Admin
Actor FBSAdmin
Main flows
Alternative flows
SWP490_G35 256/303
FBS - Software Requirement Specification v2.0
AT1 At step 2 in the main flows, if user does not have a notification
Table 3-323: Alternative flows of View Notifications For Admin Use case
SWP490_G35 257/303
FBS - Software Requirement Specification v2.0
Max
# Field Name Type Mandatory Description
Length
Main
Button to redirect to
5 Đi đến nhà hàng Button the restaurant was
reported
Actor FBSAdmin
This function allows the authorized user to view the list of all reports of the
Description
system
SWP490_G35 258/303
FBS - Software Requirement Specification v2.0
Main flows
SWP490_G35 259/303
FBS - Software Requirement Specification v2.0
Max
# Field Name Type Mandatory Description
Length
Menu bar
Link to Admin
1 Thông tin Hyperlink Restaurant
Information screen
Link to Admin
2 Ảnh Hyperlink Restaurant Image
screen
Link to Admin
3 Thực đơn Hyperlink Restaurant Menu
screen
Link to Admin
4 Combo món ăn Hyperlink Restaurant Combo
screen
Link to Admin
5 Dịch vụ Hyperlink Restaurant Service
screen
Main
SWP490_G35 260/303
FBS - Software Requirement Specification v2.0
Button to back to
9 Trở lại Button Admin Restaurant
Menu screen
SWP490_G35 261/303
FBS - Software Requirement Specification v2.0
Button to back to
10 Close Button Admin Restaurant
Menu screen
Actor FBSAdmin
The function allows the authorized user to deactivate the dish, combo, or
Description
service of the restaurants that are reported or violate the terms of the system
Main flows
3 User Click “Thực đơn”/ “Combo món ăn”/ “Dịch vụ” hyperlink in sidebar
SWP490_G35 262/303
FBS - Software Requirement Specification v2.0
10 FBS Deactivate item, hide this in system and send a notification to provider
Alternative flows
AT1 At step 9 in the main flows, if user clicks “Trở lại” or Close button
SWP490_G35 263/303
FBS - Software Requirement Specification v2.0
Max
# Field Name Type Mandatory Description
Length
Menu bar
SWP490_G35 264/303
FBS - Software Requirement Specification v2.0
Main
Filter transaction by
status of transactions
Value: Tất cả - All,
7 Trạng thái Hyperlink Thành công –
Successful, Đang xử lý
– Processing, Thất bại –
Failure
SWP490_G35 265/303
FBS - Software Requirement Specification v2.0
Actor FBSAdmin
This function allows the authorized user to view all transactions history of the
Description
system
Main flows
Business Rules
# Rule Description
Admin has permission to views orders, revenue of system, accounts, and restaurants of
BR16
system
SWP490_G35 266/303
FBS - Software Requirement Specification v2.0
Max
# Field Name Type Mandatory Description
Length
Reference to UC-67
SWP490_G35 267/303
FBS - Software Requirement Specification v2.0
Actor FBSAdmin
This function allows the authorized user to search transactions history of the
Description
system
Main flows
Business Rules
# Rule Description
Admin has permission to views orders, revenue of system, accounts, and restaurants of
BR16
system
SWP490_G35 268/303
FBS - Software Requirement Specification v2.0
Max
# Field Name Type Mandatory Description
Length
Main
SWP490_G35 269/303
FBS - Software Requirement Specification v2.0
Button to trigger
5 Search Icon Button
Search function
Button to open
6 Xử lý nạp tiền Button Recharge Processing
screen
Display transaction
7 Transaction Table Table
information
Button to accept
14 Xác nhận Label money processing
request
Button to cancel
15 Hủy Label money processing
request
Actor FBSAdmin
This function allows the authorized user to search money processing, include:
Description
recharge manager, withdrawal management
SWP490_G35 270/303
FBS - Software Requirement Specification v2.0
Main flows
Business Rules
# Rule Description
Admin has permission to views orders, revenue of system, accounts, and restaurants of
BR16
system
SWP490_G35 271/303
FBS - Software Requirement Specification v2.0
Actor FBSAdmin
POS-01: The request will be fulfilled, the funds will be added to the
Post-Condition customer's wallet or withdrawn from the customer's wallet
POS-02: Transaction will be removed from the Transaction table in screen
Main flows
3 User Click “Xác nhận” button at the transaction that want to accept
Alternative flows
AT1 At step 5 in the main flows, if user clicks “Trở lại” or Close button
SWP490_G35 272/303
FBS - Software Requirement Specification v2.0
Business Rules
# Rule Description
When a customer makes a deposit request, the admin must accept it before the money
BR49
is transferred to the FBS wallet
When a customer makes a withdrawal request, the admin must accept it before the
BR50
customer can receive the money
Actor FBSAdmin
Main flows
SWP490_G35 273/303
FBS - Software Requirement Specification v2.0
Alternative flows
AT1 At step 5 in the main flows, if user clicks “Trở lại” or Close button
SWP490_G35 274/303
FBS - Software Requirement Specification v2.0
Max
# Field Name Type Mandatory Description
Length
Main
Enter recharger's
Số điện thoại người phone number if top-
6 Textbox No
nạp tiền (nếu nạp hộ) up on behalf of the
user
SWP490_G35 275/303
FBS - Software Requirement Specification v2.0
Button to close
8 Trở lại Button Recharge Processing
screen
Button to close
9 Close Button Recharge Processing
screen
Actor FBSAdmin
This function allows the authorized user to top up FBS wallets for customers
Description
after receiving customer’s cash
POS-01: The money is loaded into the client's wallet and the customer will
Post-Condition
receive a notification
Main flows
Enter phone number of the user who want to recharge at “Số điện thoại (tài
6 User
khoản) nạp tiền” textbox
Click “Kiểm tra” button to check if the provided phone number matches the
7 User
user information
SWP490_G35 276/303
FBS - Software Requirement Specification v2.0
8 User Enter recharger's name if top-up on behalf of the user (not require)
9 User Enter recharger's phone number if top-up on behalf of the user (not require)
Alternative flows
5.1 FBS Display a message “Vui lòng nhập số tiền hoặc số tiền không hợp lệ”
AT2 At step 5 in the main flows, if amount of money is not a positive integer
5.2 FBS Display a message “Vui lòng nhập số tiền hoặc số tiền không hợp lệ”
AT3 At step 5 in the main flows, if amount of money is less than 10,000 VND
5.3 FBS Display a message “Số tiền tối thiểu có thể nạp hoặc rút là 10,000 VND”
AT4 At step 6 in the main flows, if phone number is not entered or wrong format
6.1 FBS Display a message “Số điện thoại không hợp lý”
SWP490_G35 277/303
FBS - Software Requirement Specification v2.0
AT5 At step 6 in the main flows, if phone number is not in the system
6.2 FBS Display a message “Số điện thoại không có trong hệ thống”
AT6 At step 7 in the main flows, if phone number is not in the system
AT7 At step 12 in the main flows, if user clicks “Trở lại” or Close button
12.1 FBS Back to Recharge Processing screen and not save change
Business Rules
# Rule Description
BR51 After the customer gives cash, the admin will deposit to the customer's wallet
The amount entered for depositing or withdrawing must be a positive integer and must
BR52
be at least 10000 VND
SWP490_G35 278/303
FBS - Software Requirement Specification v2.0
Max
# Field Name Type Mandatory Description
Length
Main
SWP490_G35 279/303
FBS - Software Requirement Specification v2.0
Actor FBSAdmin
Description This function allows the authorized user to search for users of the system
SWP490_G35 280/303
FBS - Software Requirement Specification v2.0
Main flows
Business Rules
# Rule Description
Admin has permission to views orders, revenue of systems, accounts, and restaurants of
BR16
system
SWP490_G35 281/303
FBS - Software Requirement Specification v2.0
Max
# Field Name Type Mandatory Description
Length
Main
Specific address of
6 Địa chỉ Label
user
Button to back to
7 Trở lại Button Admin List User
screen
SWP490_G35 282/303
FBS - Software Requirement Specification v2.0
Actor FBSAdmin
This function allows the authorized user to view the profile of the user of the
Description
system
Main flows
3 User Click “Chi tiết” button at the user that want to view
Business Rules
# Rule Description
Admin has permission to views orders, revenue of system, accounts, and restaurants of
BR16
system
SWP490_G35 283/303
FBS - Software Requirement Specification v2.0
SWP490_G35 284/303
FBS - Software Requirement Specification v2.0
Max
# Field Name Type Mandatory Description
Length
Confirm Dialog
Button to close
4 Trở lại Button
confirm dialog
Button to close
5 Close Button
confirm dialog
Actor FBSAdmin
Description This function allows the authorized user to block the violated user
Main flows
SWP490_G35 285/303
FBS - Software Requirement Specification v2.0
Alternative flows
AT1 At step 5 in the main flows, if user clicks “Trở lại” or Close button
5.1 FBS Back to Admin List Users screen and not save change
SWP490_G35 286/303
FBS - Software Requirement Specification v2.0
SWP490_G35 287/303
FBS - Software Requirement Specification v2.0
Max
# Field Name Type Mandatory Description
Length
Reference to UC-75
Actor FBSAdmin
Description This function allows the authorized user to unblock the user
Main flows
Alternative flows
AT1 At step 5 in the main flows, if user clicks “Trở lại” or Close button
SWP490_G35 288/303
FBS - Software Requirement Specification v2.0
5.1 FBS Back to Admin List Users screen and not save change
4 Non-Functional Requirements
4.1 External Interfaces
4.1.1 User Interfaces
UI-1: The system shall provide instructions and regulations when canceling the order from FBS
when the user creates and cancels the order to explain the compensation policy when canceling the
application as well as why the deposit is required.
UI-2: The system shall provide a term of use link from FBS to explain mandatory terms when using
FBS.
UI-3: The webpages shall permit using the keyboard in some cases, in addition to using mouse
alone
UI-4: Standard user interface:
● Font-family: sans serif
● Font-size: 16px
● Icon: Font Awesome 5
● Colors: The main color of this system is: #198754
UI-5: Screen resolution: This system supports responsiveness for candidate’s screens: mobiles,
desktops, tablets, laptops.
4.1.2.4 PayPal
SWP490_G35 289/303
FBS - Software Requirement Specification v2.0
The FBS conforms to common usability standards and provides a friendly interface for those who use
it for the first time.
● User interface should be clear and easy to use
● Main functions are organized into tabs for easier access.
● Alternative attributes are provided for non-text elements, such as images.
● Links, buttons, checkboxes are easily clickable.
● The search box is wide enough for users to see what they have typed.
● Links are easily recognizable, clickable. Items that are not links do not look clickable, for
example, underlining text is avoided.
● Important commands are displayed as buttons with distinct background colors.
4.2.4 Performance
● Processing time:
Pages are categorized into different levels: low, medium, complex, and very complex. Depending on
the type of page that occupies the CPU differently.
Below are the two requirements for the performance of web, with the assumption that in normal
cases, there will be less than or equal to 1000 concurrent users:
SWP490_G35 290/303
FBS - Software Requirement Specification v2.0
4.2.5 Security
● The HTTP protocol will be used to facilitate communications between the client and server
and for all FBS functions. Basic password authentication and role-based security mechanisms
will be used to protect FBS site from unauthorized access.
● Token-Based Authentication relies on a signed token that is sent to the server on each
request.
● Sign in as the phone number.
● The server must authenticate every request accessing the restricted Web pages.
● After authenticating the browser, the server must determine whether that browser is
authorized (i.e., has necessary privileges) to access the requested restricted Web pages.
● Firebase Phone Authentication to verify phone login when register an account
4.2.6 Safety
4.2.7 Supportability
SWP490_G35 291/303
FBS - Software Requirement Specification v2.0
● End-user environment: Any web browser that users have been installed on their personal
computer like Google Chrome, Edge.
● Java extension:
● Operating System that is used for running judge host daemon has at least 4GB RAM.
● Every process in this system must be less than 3s, and not exceed 1 second with the best
condition of the Internet.
● ReactJS, Spring boot framework
Design requirements:
● FBS Server-side: Layer architecture
● FBS Client-side: MVC architecture
- Project Introduction
- Term of service of FBS system
- Software User Guides
5 Other Requirements
5.1 Appendix1 - Messages List
Message Message
# Context Content
code Type
Toast
6 MSG06 Password is not true Vui lòng nhập lại mật khẩu
message
SWP490_G35 292/303
FBS - Software Requirement Specification v2.0
Input-required amount to
Toast
12 MSG12 deposit into the wallet is Vui lòng nhập số tiền cần nạp
message
empty
SWP490_G35 293/303
FBS - Software Requirement Specification v2.0
Under the Date is required to be current Giá trị phải là [Ngày hiện tại]
23 MSG23
text box date or later hoặc muộn hơn
Input-required number of
Toast guests the restaurant can Vui lòng nhập sức chứa hoặc
26 MSG26
message accommodate is empty or sức chứa không hợp lệ
wrong format
Toast
34 MSG34 Email is wrong format Email sai định dạng
message
Under the Date of birth must be less Ngày sinh phải nhỏ hơn ngày
35 MSG35
text box than today hiện tại
Toast Restaurant name longer than Tên nhà hàng quá dài (nhỏ
36 MSG36
message 100 characters hơn 100 ký tự)
SWP490_G35 294/303
FBS - Software Requirement Specification v2.0
Toast The combo name already Tên combo đã tồn tại trong
41 MSG41
message exists in the restaurant nhà hàng
Toast The dish name already exists Tên món ăn đã tồn tại trong
44 MSG44
message in the restaurant nhà hàng
Toast The service name already Tên dịch vụ đã tồn tại trong
47 MSG47
message exists in the restaurant nhà hàng
Under the Promotion value must be less Giá trị phải bé hơn hoặc bằng
49 MSG49
text box than or equal to 100 100
Under the Input-required promotion Vui lòng nhập ngày bắt đầu
51 MSG51
text box start date is empty khuyến mại
Under the Input-required promotion Vui lòng nhập ngày kết thúc
52 MSG52
text box end date is empty khuyến mại
Toast
55 MSG55 Old password is not correct Mật khẩu cũ không đúng
message
SWP490_G35 295/303
FBS - Software Requirement Specification v2.0
Toast
56 MSG56 Update combo successfully Cập nhật combo thành công
message
Toast
58 MSG58 Send report successfully Gửi báo cáo thành công
message
Under the Number of guest must be Số lượng khách phải lớn hơn
60 MSG60
text box greater or equal than 1 hoặc bằng 1
Toast
62 MSG62 Password is not correct Mật khẩu không đúng
message
Toast
63 MSG63 Accept order successfully Nhận đơn thành công
message
Toast
64 MSG64 Cancel order successfully Hủy đơn thành công
message
Toast
66 MSG66 Name is longer than specified Tên của bạn quá dài
message
Toast Content of feedback must be Nội dung đánh giá phải ít hơn
67 MSG67
message less than 250 characters 250 ký tự
Toast Value must be earlier than Giá trị phải sớm hơn
68 MSG68
message today + 1 (dd/mm/yyyy + 1)
Toast
69 MSG69 Quantity is too much Số lượng quá lớn
message
Toast Address must be less than Tên địa chỉ quá dài (nhỏ hơn
72 MSG72
message 100 character 100 ký tự)
SWP490_G35 296/303
FBS - Software Requirement Specification v2.0
Toast
74 MSG74 Update successfully Cập nhật thành công
message
Toast Combo price must be less Tên combo phải ít hơn 100 ký
75 MSG75
message than 100 characters tự
Toast
76 MSG76 Input value must be numeric Vui lòng nhập số
message
Toast
79 MSG79 Add combo successfully Thêm combo thành công
message
Toast
80 MSG80 Add successfully Thêm thành công
message
Toast Dish name must be less than Tên món ăn phải ít hơn 100 ký
81 MSG81
message 100 characters tự
Toast Dish price must be less than Giá món ăn phải ít hơn 10 ký
82 MSG82
message 10 characters tự
Toast
83 MSG83 Add dish successfully Thêm món ăn thành công
message
Toast
84 MSG84 Update dish successfully Cập nhật món ăn thành công
message
Toast
89 MSG89 Update service successfully Cập nhật dịch vụ thành công
message
SWP490_G35 297/303
FBS - Software Requirement Specification v2.0
Toast Promotion name must be less Tên khuyến mãi phải ít hơn
90 MSG90
message than 100 characters 100 ký tự
Toast
98 MSG98 Remove the dish successfully Gỡ món ăn thành công
message
Input-required amount of
Toast Vui lòng nhập số tiền hoặc số
101 MSG101 money is empty or wrong
message tiền không hợp lệ
format
Successfully deposited
105 MSG105 Dialog Nạp tiền vào ví thành công
money into the wallet
SWP490_G35 298/303
FBS - Software Requirement Specification v2.0
Toast The amount in your wallet is Số tiền trong ví của bạn không
114 MSG114
message not enough đủ
Under the Value must be greater or Giá trị phải lớn hơn hoặc bằng
115 MSG115
text box equal than 1000 1000
Toast Input-required bank account Vui lòng nhập thông tin tài
116 MSG116
message information is empty khoản ngân hàng của bạn
Under the
117 MSG117 Input-required field is empty Vui lòng điền vào trường này
text box
Toast
119 MSG119 Successful confirmation Xác nhận thành công
message
SWP490_G35 299/303
FBS - Software Requirement Specification v2.0
Haven't completed the order Bạn phải hoàn tất thanh toán
Toast
122 MSG122 at this restaurant, went to của nhà hàng khác trước khi
message
another restaurant to choose thêm vào giỏ hàng
- User enters OTP in the Register screen, if the OTP entered is the same as the OTP sent to the
phone number, the system will display a successful login message. Otherwise, the system
will display an error message
● Forget Password:
- After the user enters phone login, password, re-password and the system checks that the
information is valid, Firebase will send a message containing the OTP to the phone number
SWP490_G35 300/303
FBS - Software Requirement Specification v2.0
Figure 5-3: Firebase send OTP after enter info to reset password
- User enters OTP in the Forget Password screen, if the OTP entered is the same as the OTP
sent to the phone number, the system will display a successful login message. Otherwise, the
system will display an error message
SWP490_G35 301/303
FBS - Software Requirement Specification v2.0
- After selecting the deposit method or pay by PayPal, the system will redirect to the PayPal
page
- User fills in the information and makes a transaction on the PayPal page, the money will be
transferred to the system's FBS wallet
SWP490_G35 302/303
FBS - Software Requirement Specification v2.0
SWP490_G35 303/303