Account Management System [closed]

The account management feature involves creating, updating, and retrieving account details. Each company should have separate accounts managed by the company’s owner. The website owner should be able to view accounts of all companies.
Test Case Scenarios:
Ensure that company owners can create accounts for their company.
Ensure that accounts are isolated to each company (i.e., an account from one company should not be accessible by another company’s owner).
Ensure that the website owner can view all accounts across all companies.

  1. Manage Income
    Only admins should have the ability to add income records.
    Test Case Scenarios:
    Verify that an admin user can add income to the system.
    Ensure that non-admin users cannot add income (they should receive an unauthorized error or permission denied message).
    Verify that income entries are correctly linked to the appropriate company.
  2. Manage Expense
    Any user can submit an expense, but it needs admin approval before being added to the system.
    Test Case Scenarios:
    Ensure that regular users can submit expense requests.
    Verify that submitted expenses are not reflected in the company’s account until an admin approves them.
    Ensure that only admins can approve or reject submitted expenses.
    Verify that once an expense is approved, it is reflected in the correct company’s account.
  3. Reports
    Reports should only be visible to users who have been granted permission.
    Test Case Scenarios:
    Verify that users with permission can access and view the reports.
    Ensure that unauthorized users cannot view the reports (they should receive an error or “access denied” message).
    Ensure that reports contain correct data based on the user’s access level (company owner sees their company’s data, website owner sees all data, etc.).
  4. Company Ownership and Structure
    Each company has an owner, and accounts should be scoped to individual companies. The website owner should have super-admin privileges, allowing them to see all companies and their respective accounts.
    Test Case Scenarios:
    Ensure that when a company is created, an owner is assigned to it.
    Verify that the company owner has full access to their own company’s accounts and operations.
    Ensure that the website owner can see all companies, their owners, and respective accounts.
    Ensure that no other users (even if they belong to a company) can access or interfere with other companies’ accounts.
    Additional Considerations:
    Authentication & Authorization: Test cases should cover role-based access control, ensuring that only authorized users (admins, company owners, regular users) can access specific features.
    Concurrency & Edge Cases: Test how the system behaves when multiple users perform operations simultaneously (e.g., multiple expense submissions at once, different users viewing reports).
    These test cases ensure that the system is secure, with proper permissions, and functions as expected for each role involved.

React

Reply

i need help in written code with sql

I expect a complete solution

1

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật