Skip to content

Hệ thống Billing, E-Invoice & Tax

Thông tin nhanh

  • Migrations: 021 (billing), 022 (einvoice), 023 (tax_reports), 024 (audit_trail)
  • Platform: 025 (platform admin)
  • Portal UI: portal.salehay.com — Invoices, Subscription, Tax Reports

Xem thêm: Database · Kiến trúc

Tổng quan Module

Billing (021)

Quản lý subscription plans và thanh toán cho các organization:

Khái niệmMô tả
SubscriptionGói dịch vụ SaleHay mà org đăng ký
Billing cycleChu kỳ thanh toán (monthly / yearly)
Payment recordsLịch sử thanh toán

E-Invoice (022)

Hoá đơn điện tử theo quy định Việt Nam:

Tính năngChi tiết
Tạo hoá đơnTự động hoặc thủ công từ Portal
Mẫu hoá đơnTemplate theo quy định thuế
Trạng tháidraft → issued → cancelled

Tax Reports (023)

Báo cáo thuế định kỳ:

LoạiTần suấtNội dung
Báo cáo doanh thuMonthlyTổng thu, chi tiết giao dịch
Báo cáo thuếQuarterlyThuế GTGT, thuế TNDN

Audit Trail (024)

Hệ thống ghi nhận mọi thay đổi quan trọng:

FieldMô tả
entity_typeLoại đối tượng (lead, booking, customer...)
entity_idID đối tượng
actioncreate, update, delete
changesJSONB — old/new values
performed_byUser thực hiện
ip_addressIP lúc thực hiện

Platform Admin (025)

Module quản trị toàn nền tảng (super admin):

Chức năngMô tả
Quản lý OrganizationsDuyệt, suspend, activate orgs
Affiliate ManagementQuản lý CTV ở platform level
System SettingsCấu hình nền tảng

Portal Pages

Portal tại portal.salehay.com cung cấp 11 trang quản lý:

TrangComponentChức năng
DashboardDashboard.jsxTổng quan org
OrganizationsOrganizations.jsxQuản lý multi-org
InvoicesInvoices.jsxHoá đơn điện tử
SubscriptionSubscription.jsxGói dịch vụ
Tax ReportsTaxReports.jsxBáo cáo thuế
AffiliatesAffiliates.jsxCTV management (org-level)
Affiliate PayoutsAffPayouts.jsxThanh toán CTV
Affiliate ReportsAffReports.jsxBáo cáo CTV
TeamTeam.jsxQuản lý team
SettingsSettings.jsxCài đặt org

🔒 Internal Documentation — Dev Team Only