Feature Spec — List (Merchant Portal · Invoice)

Round A — business confirmation through interface (CPG-GUIDE-SPEC-A)Vòng A — xác nhận nghiệp vụ qua giao diện (CPG-GUIDE-SPEC-A)

A. Document controlA. Kiểm soát tài liệu

Doc IDCPG-SPEC-INV-LIST
VersionPhiên bản0.2
StatusTrạng tháiFor Review
OwnerDHC — BA
AudienceĐối tượngFlyPay — PM / Business; DHC — BA, UI, Frontend, Backend, QA
ClassificationPhân loạiConfidential — FlyPay and DHCConfidential — FlyPay và DHC
Effective dateNgày hiệu lực02/12/2026
Related docs 01_BR · Merchant Portal FSD Invoice · MP Invoice UC · GUIDE-SPEC-A · MP Invoice TC
AuthorSoạnDHC — BA
ReviewRà soátFlyPay — BusinessFlyPay — Nghiệp vụ
ApprovalPhê duyệtFlyPay — PM
ConfidentialityĐộ mậtConfidential — FlyPay and DHC
FrameworkKhungCPG-GUIDE-SPEC-A (Round A) · sample CPG-SPEC-ACC-HW-CREATE

B. Version historyB. Lịch sử phiên bản

Version Date Author ChangesThay đổi
0.1 14/11/2026 DHC — BA InitializeKhởi tạo
0.2 01/12/2026 DHC — BA Layout of 14 items according to GUIDE-SPEC-A + Invoice module Round ABố cục 14 mục theo GUIDE-SPEC-A + module Invoice Vòng A

C. Table of contentsC. Mục lục

D. ContentD. Nội dung

Specification — Invoice list & filterĐặc tả — Danh sách & lọc hóa đơn · F1+F2 · Ring A · FSD Invoice v2.1.· F1+F2 · Vòng A · FSD Invoice v2.1.

1. Introduction1. Giới thiệu

1.1 Purpose1.1 Mục đích

Confirm the Invoices page: table, filter, pagination, entry points Create/Export/Detail.Xác nhận trang Invoices: bảng, lọc, phân trang, điểm vào Create/Export/Detail.

RoundVòngContentNội dungOwnerThực hiện
A — business confirmation via UI (this document)A — xác nhận nghiệp vụ qua giao diện (tài liệu này)
  • UI journey: screens, buttons, fieldsHành trình trên giao diện: màn hình, nút, trường
  • Rules and user-visible error messagesQuy tắc, thông báo lỗi người dùng thấy
  • Acceptance criteriaTiêu chí nghiệm thu
DHC drafts, FlyPay approvesDHC soạn, FlyPay phê duyệt
B — FSD / backend design (after Round A approval)B — FSD / thiết kế backend (sau khi vòng A được duyệt)
  • Break down by network, API, data, system error codes, detailed audit logPhân rã theo network, API, dữ liệu, mã lỗi hệ thống, audit log chi tiết
  • Cover every Round A UI flowBao phủ mọi luồng giao diện của vòng A
DHC drafts, FlyPay approvesDHC soạn, FlyPay phê duyệt

1.2 Scope1.2 Phạm vi

In scopeTrong phạm viOut of scope (other docs)Ngoài phạm vi (tài liệu khác)
  • List + advanced filters
  • RBAC CTA
  • Empty/error

1.3 Audience1.3 Đối tượng đọc

AudienceĐối tượngReadĐọc phần
FlyPay — PM, OperationsFlyPay — PM, nghiệp vụSection 2, 3, 6, 12Mục 2, 3, 6, 12
DHC — BA, interface design, frontendDHC — BA, thiết kế giao diện, frontendEntireToàn bộ
DHC — backend, QASection 8, 9, 11; Section 13.2Mục 8, 9, 11; Mục 13.2

1.4 Glossary & abbreviations1.4 Thuật ngữ & viết tắt

Terms follow the CPG glossary: keep industry English terms; short meaning text (ND-03).Thuật ngữ theo Từ điển thuật ngữ CPG: giữ thuật ngữ ngành (tiếng Anh), giải thích ngắn bằng tiếng Việt (ND-03).

VietnameseTiếng ViệtEnglish / UITiếng Anh / trên giao diệnMeaningNghĩaStatusTrạng thái
hóa đơnInvoiceMerchant crypto payment request document (code INV-…), linked to order/customer/line items.Chứng từ yêu cầu thanh toán crypto của merchant (mã INV-…), gắn order/khách/dòng hàng.referencetham khảo
trạng thái hóa đơnPENDING / PAID / OVERDUE / CANCELLEDPending: awaiting payment. Paid: fully paid. Overdue: past due unpaid. Cancelled: cancelled. System-driven only.Pending: chờ thanh toán. Paid: đã thanh toán đủ. Overdue: quá hạn chưa thanh toán. Cancelled: đã hủy. Chỉ hệ thống đổi trạng thái.referencetham khảo
tài sảnAssetToken received / held: USDT, USDC (stablecoin).Đồng tiền nhận / giữ: USDT, USDC (stablecoin).referencetham khảo
mã đơnOrder IDMerchant order reference bound to the invoice.Tham chiếu đơn hàng phía merchant gắn với hóa đơn.referencetham khảo
hạn thanh toánDue Date / Expiry TimeInvoice payment deadline; past due may become Overdue.Thời điểm hết hạn thanh toán hóa đơn; quá hạn có thể chuyển Overdue.referencetham khảo
nguồn tạosource_typeInvoice origin: MANUAL (portal), QR_CODE, CHECKOUT_LINK, API_PAYMENT (SDK/API).Nguồn sinh hóa đơn: MANUAL (cổng), QR_CODE, CHECKOUT_LINK, API_PAYMENT (SDK/API).referencetham khảo
(keep English)Hot Wallet (HW)CPG-managed transit wallet per merchant and network. Do not use the Vietnamese calque for 'hot wallet'.Ví trung chuyển do CPG quản lý, theo từng merchant và network. Không dịch 'ví nóng'.referencetham khảo
(keep English)Virtual Account (VA)Per-customer deposit address bound to a Hot Wallet.Địa chỉ nhận tiền riêng của từng khách hàng, gắn với một Hot Wallet.referencetham khảo
(keep English)networkBlockchain the wallet runs on: TRON, BSC, Ethereum, Polygon (Mainnet / Testnet).Blockchain mà ví hoạt động: TRON, BSC, Ethereum, Polygon (Mainnet / Testnet).referencetham khảo
xuất dữ liệuExportDownload invoice list (CSV / Excel / PDF) under current filters.Tải danh sách hóa đơn (CSV / Excel / PDF) theo bộ lọc hiện tại.referencetham khảo
phân quyền theo vaiRBAC / roleMerchant Admin, Finance, Operator, Approver, Support, Developer, Viewer.Merchant Admin, Finance, Operator, Approver, Support, Developer, Viewer.referencetham khảo
hộp thoạidialog / modalOverlay window on the page with confirm and cancel actions.Cửa sổ nổi trên trang, có nút xác nhận và hủy.referencetham khảo
(keep English)error bannerError strip at the top of a dialog for non-field-specific errors.Khung báo lỗi đầu hộp thoại cho lỗi không gắn với một ô cụ thể.referencetham khảo
nhật ký kiểm toánaudit logImmutable record of who did what, when, and the outcome.Bản ghi không sửa được: ai làm gì, lúc nào, kết quả.referencetham khảo
yêu cầu / quy tắc nghiệp vụBR / Business Rule (RL)IDs from FlyPay URD / RTM.Mã lấy từ URD / RTM của FlyPay.referencetham khảo
trường hợp sử dụng / nghiệm thu / kiểm thửUC / AC / TCUse Case / Acceptance Criteria / Test Case.Use Case / Acceptance Criteria / Test Case.referencetham khảo
phạm vi công việc / yêu cầu thay đổiSoW / CRStatement of Work / Change Request.Statement of Work / Change Request.referencetham khảo
(keep English)baselineConfirmed and signed requirements snapshot.Bản yêu cầu đã xác nhận và ký.referencetham khảo
tài liệu yêu cầu / truy vết / thiết kếURD / RTM / FSDFlyPay requirements / traceability matrix / functional spec (Round B).Tài liệu yêu cầu FlyPay / sổ cái truy vết / đặc tả chức năng (vòng B).referencetham khảo

1.5 References1.5 Tài liệu tham chiếu

IDMãDocumentTài liệuRelated toLiên quan tớiVersion / statusPhiên bản / tình trạngLink
L20CPG-GUIDE-SPEC-A — Guide for writing Round A feature specificationsCPG-GUIDE-SPEC-A — Hướng dẫn viết đặc tả tính năng vòng A14-item rules, HA-01…09, ND-01…13Quy tắc 14 mục, HA-01…09, ND-01…13v0.1, 13/11/2026OpenMở
L21CPG-SPEC-ACC-HW-CREATE — Sample Document for Creating Hot WalletCPG-SPEC-ACC-HW-CREATE — Tài liệu mẫu Tạo Hot WalletStandard detail level (Create Hot Wallet)Mức chi tiết chuẩn (Tạo Hot Wallet)v0.1, 13/11/2026 — illustrative samplev0.1, 13/11/2026 — mẫu minh hoạOpenMở
L24FSD Merchant Portal / Invoice v2.1Invoice v2.1 business baseline (F1–F6, system status)Baseline nghiệp vụ Invoice v2.1 (F1–F6, status hệ thống)—OpenMở
L25UC Invoice (DHC) — catalog theo vaiUC Invoice code by roleMã UC Invoice theo vai—OpenMở
L26MP Invoice test script setBộ kịch bản kiểm thử MP InvoiceTC-MP-INV-*—OpenMở
L28CPG-SPEC-INV-INDEX — Invoice Index (MP)Catalog SPEC Invoice Round ACatalog SPEC Invoice Vòng Aavailable (version 0.2, 16/11/2026)có (bản 0.2, 16/11/2026)OpenMở
L29CPG-SPEC-INV-SHARED-UI — Shared UI (Invoice)Status badge, empty state, number format + assetBadge trạng thái, empty state, format số + assetavailable (version 0.2, 16/11/2026)có (bản 0.2, 16/11/2026)OpenMở
L31CPG-SPEC-INV-CREATE — Create InvoiceCreate invoice on the portal (MANUAL)Tạo hóa đơn trên cổng (MANUAL)available (version 0.2, 16/11/2026)có (bản 0.2, 16/11/2026)OpenMở
L32CPG-SPEC-INV-DETAIL — Invoice DetailDetails / view PDF (read-only)Chi tiết / xem PDF (read-only)available (version 0.2, 16/11/2026)có (bản 0.2, 16/11/2026)OpenMở
L34CPG-SPEC-INV-EXPORT — Export InvoicesExport CSV / Excel / PDF (F6)Xuất CSV / Excel / PDF (F6)available (version 0.2, 16/11/2026)có (bản 0.2, 16/11/2026)OpenMở

1.6 Presentation conventions1.6 Quy ước trình bày

ConventionQuy ướcMeaningNghĩa
MUSTRequired — fail = not accepted (RFC 2119: SHALL)Bắt buộc — không đạt thì không nghiệm thu (RFC 2119: SHALL)
MUST NOTForbidden (SHALL NOT)Cấm (SHALL NOT)
SHOULDRecommended — alternatives need a reason (SHOULD)Khuyến nghị — làm khác phải nêu lý do (SHOULD)
MAYOptional (MAY)Tuỳ chọn (MAY)
Status labelNhãn trạng tháiMeaningNghĩa
Confirmed (source)Đã xác nhận (source)Already in URD / RTM / FSD v2.2 or confirmed by FlyPay (cite source, date).Đã có trong URD / RTM / FSD v2.2 hoặc FlyPay đã xác nhận (ghi nguồn, ngày).
DHC proposalDHC đề xuấtDHC proposal with rationale; needs FlyPay agreement.DHC đề xuất kèm lý do; cần FlyPay đồng ý.
Awaiting decision QnChờ quyết định QnFlyPay must answer Qn in §12; each has a DHC recommendation.Cần FlyPay trả lời câu hỏi Qn ở Mục 12; mỗi câu có khuyến nghị DHC.
DHC added (v0.2)DHC bổ sung (bản 0.2)DHC added in the version in parentheses (usually missing shot / description).DHC bổ sung ở phiên bản ghi trong ngoặc (thường là ảnh / mô tả còn thiếu).
referencetham khảoExplanatory info, not a requirement.Thông tin giải thích, không phải yêu cầu.
Combined cellÔ ghépExample: Confirmed (RL-05-01); length: Awaiting Q6. 'Confirmed' applies only to the cited part.Ví dụ: Đã xác nhận (RL-05-01); độ dài: Chờ quyết định Q6.
SymbolKý hiệuMeaningNghĩa
S1, S2, S2-N…Screen ids; suffix = variantMã màn hình; hậu tố là biến thể
B1…BnUser-flow step ids (§5)Mã bước trong luồng người dùng (Mục 5)
1 2 3…Callout numbers on shots; explained in the table below the image.Số chú thích trên ảnh; giải thích ở bảng ngay dưới ảnh.
BR, RL, TC, E-*, AC, Q, LRequirement, rule, test case, error, acceptance, question, referenceYêu cầu, quy tắc, kịch bản kiểm thử, thông báo lỗi, tiêu chí nghiệm thu, câu hỏi, tài liệu tham chiếu
(new id)(mã mới)DHC-proposed id; FlyPay assigns official RTM ids (ND-08)Mã DHC đề xuất; FlyPay cấp mã chính thức khi cập nhật RTM (ND-08)
dd/mm/yyyyDate formatĐịnh dạng ngày

2. Overview2. Tổng quan

  • List only current merchant invoices; sort by Date DESC (Section 3).List chỉ invoice merchant hiện tại; sort Date DESC (Mục 3).
  • Filter AND including HW/network/VA/IDs/email/product/amount/date/status (Section 6.2).Filter AND gồm HW/network/VA/IDs/email/product/amount/date/status (Mục 6.2).
  • Create: Admin/Operator; Export: Admin/Finance (Section 4).Create: Admin/Operator; Export: Admin/Finance (Mục 4).
  • Click Invoice ID → Detail (Section 6.1).Click Invoice ID → Detail (Mục 6.1).
  • Shared badge/empty (Section Shared).Shared badge/empty (Mục Shared).
  • 3 FlyPay questions.3 câu hỏi FlyPay.
DHC added (v0.2)DHC bổ sung (bản 0.2) — no screenshot for this screen yet.chưa có ảnh cho màn hình này.
Figure 1Hình 1 — Overview: Invoices Page: header Export/Create, table, advanced filters (F1+F2).— Toàn cảnh: Trang Invoices: header Export/Create, bảng, bộ lọc nâng cao (F1+F2).

3. Business rules3. Nghiệp vụ

3.1 Section target list3.1 Mục đích danh sách

Merchant views their invoice, advanced filtering, opens details, exports file, and creates a new invoice. Only current merchant data (Merchant xem hóa đơn của mình, lọc nâng cao, mở chi tiết, xuất file và tạo hóa đơn mới. Chỉ dữ liệu merchant hiện tại (INV-LIST-01).

3.2 Business Requirements3.2 Yêu cầu nghiệp vụ

BR IDMã BROriginal wording (URD / RTM / FSD)Nguyên văn (URD / RTM / FSD)InterpretationDiễn giảiUI manifestationThể hiện trên giao diệnStatusTrạng thái
F1 / INV-LIST-*List + column + pagination + badgeList + cột + pagination + badge9-column table; sort Invoice Date DESC; paginationBảng 9 cột; sort Invoice Date DESC; phân trangS1Confirmed (FSD §F1)Đã xác nhận (FSD §F1)
F2 / INV-FILTER-*Advanced filtersHW, network, VA, IDs, email, product, amount/date, statusS1-FConfirmed (FSD §F2)Đã xác nhận (FSD §F2)
INV-LIST-09Export uses filtered setExport button inherits filter →Nút Export kế thừa filter → L34 Export InvoicesS1Confirmed (FSD §F1/F6)Đã xác nhận (FSD §F1/F6)

3.3 Design rationale3.3 Lý do thiết kế

Design pointĐiểm thiết kếBusiness rationaleLý do nghiệp vụSeen atThấy ởStatusTrạng thái
Combine List + Filter a SPECGộp List + Filter một SPECA UI journey; reduce duplication with Account List HWMột hành trình UI; giảm trùng lặp với Account List HWS1DHC proposalDHC đề xuất
Invoice ID / Order ID clickableOpen detail quicklyMở detail nhanhS1Confirmed (INV-LIST-03/04)Đã xác nhận (INV-LIST-03/04)

4. Roles & permissions4. Vai trò & phân quyền

ActionThao tácAdminFinanceOperatorSupportDeveloperViewerStatusTrạng thái
View list / filterXem danh sách / lọcCreditCóCreditCóCreditCóCreditCóCreditCóCreditCóConfirmed (FSD §2)Đã xác nhận (FSD §2)
Create Invoice buttonNút Create InvoiceCreditCóNoneKhôngCreditCóNoneKhôngNoneKhôngNoneKhôngConfirmed (FSD §2)Đã xác nhận (FSD §2)
Export CSV/Excel/PDF ButtonNút Export CSV/Excel/PDFCreditCóCreditCóNoneKhôngNoneKhôngNoneKhôngNoneKhôngConfirmed (FSD §2 · invoice:manage)Đã xác nhận (FSD §2 · invoice:manage)
Open Detail / PDFMở Detail / PDFCreditCóCreditCóCreditCóCreditCóCreditCóCreditCóConfirmed (FSD §2)Đã xác nhận (FSD §2)

5. User flows5. Luồng người dùng

Người dùngMerchant PortalBắt đầuB1: Mở InvoicesB2: Render list mặc định(Date DESC, page size)B3: Nhập filter → SearchB4: Query OK?Đạt ↓Không đạt→ B3B5: Hiện kết quả / emptyB6: Click Invoice ID →Detail; hoặc Export / CreateKết thúc
Figure 4 — List + Filter Invoice — Column = actor lane; blue ellipse = Start; red ellipse = End; diamond = condition (Hình 4 — List + Filter Invoice — Cột = làn actor; elip xanh = Bắt đầu; elip đỏ = Kết thúc; hình thoi = điều kiện (Achieve/HaveĐạt/Có ↓ next step,↓ bước sau, Not pass/NoKhông đạt/Không → go back to the step indicated by the red arrow); dotted line = option / step outside the function. Text in the block is not cut off.→ quay về bước ghi trên mũi tên đỏ); nét đứt = phương án / bước ngoài tính năng. Chữ trong block không bị cắt.
StepBướcWhoAiActionLàm gìSystem responseHệ thống phản hồiScreenMàn hình
B1UsersNgười dùngOpen InvoicesMở InvoicesBreadcrumb Home / InvoicesS1
B2Portal—Table + CTA by permissionBảng + CTA theo quyềnS1
B3UsersNgười dùngSearch filtersAND filtersS1-F
B4–B5Portal—Result / empty / errorKết quả / empty / lỗiS1-E, S1-X
B6UsersNgười dùngClick ID / Export / CreateSang L32 Invoice Detail / L34 Export Invoices / L31 Create Invoice—

6. Step-by-step UI6. Giao diện từng bước

Each step: screenshot first, then a table explaining each orange callout number (HA-02, HA-03). Keep UI copy in English as on DEV. DEV shots are wireframes; missing variants are marked DHC added (v0.2)DHC added (version 0.2) in the Figure column.Mỗi bước: ảnh màn hình trước, bảng ngay dưới giải thích từng số tròn cam (HA-02, HA-03). Chữ trên giao diện để tiếng Anh như DEV hiện tại. Ảnh DEV là wireframe; biến thể chưa có ảnh ghi DHC added (v0.2)DHC bổ sung (bản 0.2) ở cột Hình.

6.1 Trang Invoices (S1)

Next:Đi tiếp: ③ Create → L31 Create Invoice; Export → L34 Export Invoices; click ID → L32 Invoice Detail

DHC added (v0.2)DHC bổ sung (bản 0.2) — no screenshot for this screen yet.chưa có ảnh cho màn hình này.
Figure 6.1Hình 6.1 — S1: Header: Export CSV/Excel/PDF · Create Invoice · F1 column table— S1: Header: Export CSV/Excel/PDF · Create Invoice · bảng cột F1
#ElementThành phầnDisplay / behaviorHiển thị / hành viDetail inChi tiết ởStatusTrạng thái
1Breadcrumb Home / InvoicesCurrent locationVị trí hiện tại—Confirmed (FSD §F1)Đã xác nhận (FSD §F1)
2Export CSV / Excel / PDFOnly Admin/Finance; use the current filterChỉ Admin/Finance; dùng filter hiện tạiL34 Export InvoicesConfirmed (INV-LIST-09)Đã xác nhận (INV-LIST-09)
3Create InvoiceAdmin/OperatorL31 Create InvoiceConfirmed (FSD §2)Đã xác nhận (FSD §2)
4F1 column tableBảng cột F1Invoice ID clickable → detail6.1.1Confirmed (INV-LIST-03)Đã xác nhận (INV-LIST-03)
DHC added (v0.2)DHC bổ sung (bản 0.2) — DEV list photo.— ảnh list DEV.

6.1.1 Table column6.1.1 Cột bảng

ColumnCộtDisplaysHiển thịStateTrạng thái
#STTConfirmed (FSD §F1)Đã xác nhận (FSD §F1)
Invoice IDInvoice code, click → detailMã hóa đơn, click → detailConfirmed (INV-LIST-03)Đã xác nhận (INV-LIST-03)
Order IDSingle reference, clickTham chiếu đơn, clickConfirmed (INV-LIST-04)Đã xác nhận (INV-LIST-04)
Product CodeMain product / first lineSP chính / dòng đầuConfirmed (FSD §F1)Đã xác nhận (FSD §F1)
Customer EmailPayment emailEmail thanh toánConfirmed (FSD §F1)Đã xác nhận (FSD §F1)
AmountNumber + asset (Shared UI)Số + asset (Shared UI)L29 Shared UI (Invoice)Confirmed (INV-LIST-06)Đã xác nhận (INV-LIST-06)
Invoice DateCreation dateNgày tạoConfirmed (INV-LIST-02)Đã xác nhận (INV-LIST-02)
Due DatePayment deadlineHạn thanh toánConfirmed (FSD §F1)Đã xác nhận (FSD §F1)
StatusColored badgeBadge màuL29 Shared UI (Invoice)Confirmed (INV-LIST-05)Đã xác nhận (INV-LIST-05)

6.2 Advanced Filter (S1-F)6.2 Bộ lọc nâng cao (S1-F)

DHC added (v0.2)DHC bổ sung (bản 0.2) — no screenshot for this screen yet.chưa có ảnh cho màn hình này.
Figure 6.2Hình 6.2 — S1-F: Hot Wallet · Network · VA · Invoice/Order ID · Email · Product · Amount · Dates · Status · Search
#FilterBộ lọcBehaviourHành viStateTrạng thái
1Hot Wallet / Network / VA addressDropdown / text partialConfirmed (INV-FILTER-07)Đã xác nhận (INV-FILTER-07)
2Invoice ID / Order IDExact or partialExact hoặc partialConfirmed (INV-FILTER-06)Đã xác nhận (INV-FILTER-06)
3Customer EmailPartialConfirmed (INV-FILTER-05)Đã xác nhận (INV-FILTER-05)
4Product CodeTextConfirmed (FSD §F2)Đã xác nhận (FSD §F2)
5Amount From/ToFrom ≤ ToConfirmed (INV-FILTER-03)Đã xác nhận (INV-FILTER-03)
6Invoice Date From/ToFrom ≤ ToConfirmed (INV-FILTER-04)Đã xác nhận (INV-FILTER-04)
7StatusAll / PENDING / PAID / OVERDUE / CANCELLEDConfirmed (FSD §F5)Đã xác nhận (FSD §F5)
8SearchApply AND; empty filter = allÁp dụng AND; empty filter = allConfirmed (INV-FILTER-01/02)Đã xác nhận (INV-FILTER-01/02)

6.3 Empty / error (S1-E, S1-X)6.3 Empty / lỗi (S1-E, S1-X)

DHC added (v0.2)DHC bổ sung (bản 0.2) — no screenshot for this screen yet.chưa có ảnh cho màn hình này.
Figure 6.3aHình 6.3a — S1-E: Empty — Shared UI
DHC added (v0.2)DHC bổ sung (bản 0.2) — no screenshot for this screen yet.chưa có ảnh cho màn hình này.
Figure 6.3bHình 6.3b — S1-X: Unable to load invoices + Retry

7. Use cases7. Trường hợp sử dụng (Use Case)

ItemMụcContentNội dungStatusTrạng thái
Name codeMã / tênUC-INV-LIST View / filter invoices (F1+F2)Xem / lọc hóa đơn (F1+F2)Confirmed (FSD §F1/F2)Đã xác nhận (FSD §F1/F2)
ActorsTác nhânAll roles (CTA by rights)Mọi vai (CTA theo quyền)Confirmed (FSD §2)Đã xác nhận (FSD §2)
Target sectionMục tiêuFind and open the invoice; start Create/ExportTìm và mở hóa đơn; khởi đầu Create/ExportConfirmed (F1)Đã xác nhận (F1)
terms as usualĐiều kiện trướcLogged InĐã đăng nhậpConfirmed (FSD)Đã xác nhận (FSD)
Results upon successKết quả khi thành côngCorrect merchant list; filter ANDList đúng merchant; filter ANDConfirmed (INV-LIST-01)Đã xác nhận (INV-LIST-01)
Consequences of failureKết quả khi thất bạiBanner + RetryConfirmed (FSD)Đã xác nhận (FSD)
Main StreamLuồng chínhB1 → B5—
Alternative flowLuồng thay thếA1 Export; A2 Create; A3 DetailConfirmed (FSD)Đã xác nhận (FSD)
ExceptionNgoại lệ
  • X1 Empty
  • X2 Load error
  • X3 Amount/Date range invalid
Confirmed (INV-FILTER-03/04)Đã xác nhận (INV-FILTER-03/04)
Related UCUC liên quanUC-INV-CREATE, DETAIL, EXPORTConfirmed (08_UC)Đã xác nhận (08_UC)

8. Business rules detail8. Quy tắc nghiệp vụ

Each rule uses keywords from §1.6 and a verification method: Test = test against AC in §11.1; Inspection = verify directly on the UI.Mỗi quy tắc dùng từ khoá theo Mục 1.6 và có cách kiểm chứng: Test = kiểm thử theo AC ở Mục 11.1; Inspection = kiểm tra trực tiếp trên giao diện.

IDMãRuleQuy tắcSeen atThấy ởErrorLỗiVerificationKiểm chứngStatusTrạng thái
RL-INV-LST-01 (new id)(mã mới)Only show the invoice of the current merchantChỉ hiện invoice của merchant hiện tạiS1—Test — AC-01Confirmed (INV-LIST-01)Đã xác nhận (INV-LIST-01)
RL-INV-LST-02 (new id)(mã mới)Default sort Invoice Date DESCMặc định sort Invoice Date DESCS1—Test — AC-02Confirmed (INV-LIST-02)Đã xác nhận (INV-LIST-02)
RL-INV-LST-03 (new id)(mã mới)Filters combined with AND; empty = allFilters kết hợp AND; empty = allS1-F—Test — AC-03Confirmed (INV-FILTER-01/02)Đã xác nhận (INV-FILTER-01/02)
RL-INV-LST-04 (new id)(mã mới)Amount/Date From ≤ ToS1-FE-LST-04Test — AC-04Confirmed (INV-FILTER-03/04)Đã xác nhận (INV-FILTER-03/04)
RL-INV-LST-05 (new id)(mã mới)Export / Create hidden correctly RBACExport / Create ẩn đúng RBACS1E-INV-02Test — AC-05Confirmed (FSD §2)Đã xác nhận (FSD §2)

9. Error messages9. Thông báo lỗi

CodeMãConditionĐiều kiệnUser message (EN)Thông báoPlacementVị tríScreenMàn hìnhStatusTrạng thái
E-LST-01 (new id)(mã mới)Load errorLỗi tảiUnable to load invoices. Please try again.Banner + RetryS1-XDHC proposalDHC đề xuất
E-LST-04 (new id)(mã mới)Amount/date incorrectKhoảng amount/date saiFrom must not be greater than ToUnder the filterDưới ô lọcS1-FConfirmed (INV-FILTER-03/04)Đã xác nhận (INV-FILTER-03/04)
E-INV-02 (new id)(mã mới)No permission to Export/CreateKhông quyền Export/CreateAccess denied / hide buttonAccess denied / ẩn nútẨn CTAS1Confirmed (FSD §2)Đã xác nhận (FSD §2)

10. Status — on the list10. Trạng thái trên danh sách

Row status on list: viewTrạng thái dòng trên list: xem L33 Invoice Status and badgevà badge L29 Shared UI (Invoice).

FromTừToSangWhen / whoKhi nào / aiScreenMàn hìnhStatusTrạng thái
(everyone)(mọi)Pending/Paid/Overdue/CancelledSystem / create newHệ thống / tạo mớiS1Confirmed (FSD §F5)Đã xác nhận (FSD §F5)

11. Acceptance criteria & traceability11. Tiêu chí nghiệm thu & truy vết

11.1 AC

IDMãGivenGiả sửWhenKhiThenThìFigureHìnhTCTCStatusTrạng thái
AC-01Merchant A & B have an invoiceMerchant A & B có invoiceA opens the listA mở listCan't see BKhông thấy BS1TC-MP-INV-010 (new id)(mã mới)Confirmed (INV-LIST-01)Đã xác nhận (INV-LIST-01)
AC-02Many invoicesNhiều invoiceOpen by defaultMở mặc địnhNewest firstMới nhất trướcS1TC-MP-INV-011 (new id)(mã mới)Confirmed (INV-LIST-02)Đã xác nhận (INV-LIST-02)
AC-03Many conditionsNhiều điều kiệnSearchAND correctAND đúngS1-FTC-MP-INV-012 (new id)(mã mới)Confirmed (INV-FILTER-01)Đã xác nhận (INV-FILTER-01)
AC-04From > ToSearchValidation errorLỗi validationS1-FTC-MP-INV-013 (new id)(mã mới)Confirmed (INV-FILTER-03)Đã xác nhận (INV-FILTER-03)
AC-05ViewerOpen listMở listDo not Create/ExportKhông Create/ExportS1TC-MP-INV-014 (new id)(mã mới)Confirmed (FSD §2)Đã xác nhận (FSD §2)
AC-06Click Invoice IDClickOpen detailMở detailS1TC-MP-INV-015 (new id)(mã mới)Confirmed (INV-LIST-03)Đã xác nhận (INV-LIST-03)

11.2 Trace

BRBRStepBướcScreenMàn hìnhRulesQuy tắcCriteriaTiêu chíTCTC
F1+F2B1–B6S1, S1-FRL-INV-LST-*AC-01…06TC-MP-INV-010…015

12. Questions for FlyPay12. Câu hỏi cần FlyPay quyết định

Each question includes a DHC recommendation (ND-07). FlyPay only needs to accept the recommendation or choose another option.Mỗi câu kèm khuyến nghị DHC (ND-07). FlyPay chỉ cần chọn: đồng ý khuyến nghị, hoặc chọn phương án khác.

IDMãQuestionCâu hỏiSectionMụcDHC proposalĐề xuất DHC
Q1Default page size?Page size mặc định?S120; maximum 100 (like Account).20; tối đa 100 (giống Account).
Q2Clicking Order ID opens the order module or just the invoice detail?Order ID click mở order module hay chỉ detail invoice?S1Phase 1: open invoice detail (Phase 1: mở invoice detail (INV-LIST-04).
Q3Keep the filter when leaving the page?Giữ filter khi rời trang?S1-FIn the browser session; reload may reset.Trong phiên trình duyệt; reload có thể reset.

13. SoW baseline & FSD handoff13. Baseline SoW & phần chuyển sang FSD

13.1 Items for SoW baseline13.1 Phần đưa vào baseline SoW

The feature enters baseline when Q1–Q3 are decided and FlyPay signs §14.Tính năng vào baseline khi Q1–Q3 đã có quyết định và FlyPay ký Mục 14.

SoW itemMục SoWContentNội dungStatusTrạng thái
AreaPhạm viF1+F2Confirmed (FSD)Đã xác nhận (FSD)
HandoverBàn giao
  • List+filter screenMàn list+filter
  • AC
DHC proposalDHC đề xuất
AcceptanceNghiệm thuAC stagingDHC proposalDHC đề xuất
HypotheticalGiả địnhAPI GET /api/v1/invoicesreferencetham khảo
DependentPhụ thuộcDHC proposalDHC đề xuất
CR sau baselineEmail CRreferencetham khảo

13.2 Items moved to FSD (Round B)13.2 Phần chuyển sang FSD (vòng B)

Round A MUST NOT contain APIs, data tables, or system error codes (ND-02). The following belong in Round B FSD:Vòng A KHÔNG ĐƯỢC chứa API, bảng dữ liệu, mã lỗi hệ thống (ND-02). Các nội dung sau thuộc FSD vòng B:

  • Query perf, index DB
  • GET /search selectable cho QR

14. Feedback & approval14. Phản hồi & phê duyệt

14.1 How to respond14.1 Cách phản hồi

  • FlyPay records each Q1–Q3 decision in the 'FlyPay decision' column of §12.FlyPay ghi quyết định từng câu Q1–Q3 vào cột 'FlyPay quyết định' ở Mục 12.
  • Other feedback: Word comments anchored to the exact paragraph / figure.Góp ý khác: ghi comment trong file Word, mỗi comment gắn đúng đoạn / ảnh.
  • Reply on the same email thread used to send the document.Gửi lại theo thread email đã gửi tài liệu.
  • DHC updates the next revision, updates Version history, and marks changed items.DHC cập nhật bản kế tiếp, ghi Lịch sử phiên bản và đánh dấu mục đã sửa.

14.2 Approval14.2 Phê duyệt

RoleVai tròNameHọ tênDateNgàyDecisionKết luận
DHC — BA authorDHC — BA soạn  —
FlyPay — BusinessFlyPay — Nghiệp vụ  Approve / Approve with conditions / RejectDuyệt / Duyệt có điều kiện / Không duyệt
FlyPay — PM  Approve / Approve with conditions / RejectDuyệt / Duyệt có điều kiện / Không duyệt
FSDMP FSD Invoice v2.1 · rules INV-LIST-* · INV-FILTER-*
UCUC-INV-LIST — UC Invoice
TCTC-MP-INV-010…015 — MP Invoice Test Cases
API (reference)API (tham chiếu)Endpoints FSD §7 · SDK after Round A· SDK sau Vòng A
Related SPECSPEC liên quanL28 Invoice Index (MP) · L29 Shared UI (Invoice) · L31 Create Invoice · L32 Invoice Detail · L34 Export Invoices
InstructionsHướng dẫnCPG-GUIDE-SPEC-A · CPG-SPEC-ACC-HW-CREATE · CPG-REVIEW-SPEC-ACC

Missing code log / out of scopeNhật ký mã thiếu / ngoài scope

The codes areCác mã được yellow highlighthighlight vàng because there is no (or external) target document. Changelog version 0.3.vì chưa có (hoặc ngoài) tài liệu đích. Changelog bản 0.3.

CodeMãCategoryLoạiMarkGhi chú
UC-INV-LISTuc_anchor_missingAdd anchor / stub on RTM or TC; highlight in yellow until FlyPay issues the official code.Bổ sung anchor / stub trên RTM hoặc TC; highlight vàng đến khi FlyPay cấp mã chính thức.
UC-INV-CREATEuc_anchor_missingAdd anchor / stub on RTM or TC; highlight in yellow until FlyPay issues the official code.Bổ sung anchor / stub trên RTM hoặc TC; highlight vàng đến khi FlyPay cấp mã chính thức.