Admin CRM — Setting General Use Cases

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

Doc IDCPG-UC-CPG-CRM_UC_Setting_General
VersionPhiên bản1.0
StatusTrạng tháiDraft
OwnerCPG BA / Architecture
AudienceĐối tượngBA, QA, Product, Frontend, Backend
ClassificationPhân loạiInternal
Effective dateNgày hiệu lực01/12/2026
Related docs CRM Setting General TC · CRM Setting General FSD

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

Version Date Author ChangesThay đổi
1.0 01/12/2026 Khoa Trinh Version 1.0

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

D. ContentD. Nội dung

Catalog

UC ID Name Linked TC count Categories
UC-SG-01 Access General Settings with Admin role 10 Function, Security, Validation
UC-SG-02 Approve pending merchant tier 1 Function
UC-SG-03 Reject merchant tier with reason 1 Function
UC-SG-04 View merchant business types 4 Function
UC-SG-06 View document types 5 Function
UC-SG-05 View support ticket categories 4 Function
UC-SG-07 View employee positions 4 Function
UC-SG-08 View departments list 4 Function

Use cases

UC-SG-01 — Access General Settings with Admin role

  • Actor: Admin CRM user (role per RBAC)
  • Goal: Access General Settings with Admin role
  • Primary BR (from TC): 3.1.1

Linked test cases

  • GS-01 — Access General Settings with Admin role (Function)
  • GS-02 — Access General Settings with non-admin role (Security)
  • GS-03 — View list of merchant tiers (Function)
  • GS-04 — Search merchant tier by name (Function)
  • GS-05 — Create new merchant tier with valid data (Function)
  • GS-06 — Create tier with missing mandatory fields (Validation)
  • GS-07 — Edit existing merchant tier (Function)
  • GS-08 — Delete merchant tier (Function)
  • GS-09 — Delete tier assigned to merchants (Function)
  • GS-12 — Validate rate limit numeric constraints (Validation)

Representative preconditions

Tier linked to merchants

Representative main flow

Click Delete

Expected outcome

Deletion blocked with warning message

UC-SG-02 — Approve pending merchant tier

  • Actor: Admin CRM user (role per RBAC)
  • Goal: Approve pending merchant tier
  • Primary BR (from TC): 3.1.1

Linked test cases

  • GS-10 — Approve pending merchant tier (Function)

Representative preconditions

Tier in Pending status, User has Approve permission

Representative main flow

Click Approve

Expected outcome

Tier status updated to Approved

UC-SG-03 — Reject merchant tier with reason

  • Actor: Admin CRM user (role per RBAC)
  • Goal: Reject merchant tier with reason
  • Primary BR (from TC): 3.1.1

Linked test cases

  • GS-11 — Reject merchant tier with reason (Function)

Representative preconditions

Tier in Pending status, User has Approve permission

Representative main flow

Click Reject -> Enter reason

Expected outcome

Tier rejected and reason stored

UC-SG-04 — View merchant business types

  • Actor: Admin CRM user (role per RBAC)
  • Goal: View merchant business types
  • Primary BR (from TC): 3.1.2

Linked test cases

  • GS-13 — View merchant business types (Function)
  • GS-14 — Create new business type (Function)
  • GS-15 — Edit business type name/description (Function)
  • GS-16 — Delete unused business type (Function)

Representative preconditions

Business type exists

Representative main flow

Edit -> Save

Expected outcome

Updated values saved

UC-SG-06 — View document types

  • Actor: Admin CRM user (role per RBAC)
  • Goal: View document types
  • Primary BR (from TC): Document Types

Linked test cases

  • GS-17 — View document types (Function)
  • GS-18 — Create new document type (Function)
  • GS-19 — Edit document type (Function)
  • GS-20 — Delete document types with no document (Function)
  • GS-21 — Delete document types with documents (Function)

Representative preconditions

Type exists

Representative main flow

Edit -> Save

Expected outcome

Type updated

UC-SG-05 — View support ticket categories

  • Actor: Admin CRM user (role per RBAC)
  • Goal: View support ticket categories
  • Primary BR (from TC): 3.1.3

Linked test cases

  • GS-22 — View support ticket categories (Function)
  • GS-23 — Create new ticket category (Function)
  • GS-24 — Edit ticket category (Function)
  • GS-25 — Delete category with tickets (Function)

Representative preconditions

Category exists

Representative main flow

Edit -> Save

Expected outcome

Category updated

UC-SG-07 — View employee positions

  • Actor: Admin CRM user (role per RBAC)
  • Goal: View employee positions
  • Primary BR (from TC): 3.1.4

Linked test cases

  • GS-26 — View employee positions (Function)
  • GS-27 — Create new employee position (Function)
  • GS-28 — Edit employee position (Function)
  • GS-29 — Delete position assigned to employees (Function)

Representative preconditions

Position exists

Representative main flow

Edit -> Save

Expected outcome

Position updated

UC-SG-08 — View departments list

  • Actor: Admin CRM user (role per RBAC)
  • Goal: View departments list
  • Primary BR (from TC): 3.1.5

Linked test cases

  • GS-30 — View departments list (Function)
  • GS-31 — Create new department (Function)
  • GS-32 — Edit department details (Function)
  • GS-33 — Delete department with employees (Function)

Representative preconditions

Department exists

Representative main flow

Edit -> Save

Expected outcome

Department updated

E. ReferencesE. Tham chiếu