Bỏ qua để đến nội dung

Tổng quan cài đặt Thu ngân

import { Card, CardGrid, Aside } from ‘@astrojs/starlight/components’;

Từ shell Thu ngân (POS), mở Cài đặt ở thanh nav bên để vào /point-of-sale/settings. Đây là hub chứa toàn bộ cấu hình cho PC quầy này: cửa hàng active, thiết bị ngoại vi, ngôn ngữ, và công cụ quản trị local (chỉ trên Vendor Desktop).

Source: apps/vendor-web/src/app/point-of-sale/pages/settings/settings-page.tsx.

Hub cài đặt Thu ngân Hình: Toàn bộ hub cài đặt — 3 section (Vận hành / Thiết bị / Ứng dụng) hiển thị đầy đủ. Spec owner: cashier-screenshots.spec.ts → "settings — hub".

Hiển thị khi cashier có pos ghi. Các mục con:

MụcĐường dẫnĐiều kiện thêm
Cửa hàng/point-of-sale/settings/storeĐã chọn cửa hàng active
QuầyModal PosSettingsLanePickerModalCửa hàng có > 1 quầy active và nhân viên không ghim pos_register_id
Ca làm việc/point-of-sale/work-shift—
Slideshow/point-of-sale/settings/slideshow—
Tem mã vạch/point-of-sale/barcode—

Hiển thị khi vendorShowPointOfSaleHardwareHubSection(profile) trả về true (chỉ owner / quyền settings ghi). Mỗi mục mở trang riêng dùng chung component <DeviceSettings>:

MụcĐường dẫnhardwareFocusLoại thiết bị
Terminal/point-of-sale/settings/terminalterminalspayment_terminal (PAX / CodePay)
Máy in bill/point-of-sale/settings/printerprintersreceipt_printer
Ngăn kéo tiền/point-of-sale/settings/cash-drawercash-drawerreceipt_printer (subtype)
Cân/point-of-sale/settings/scalescaleweighing_scale

Hiển thị khi cashier có settings đọc hoặc pos ghi. Các mục con:

MụcĐường dẫnModal / RouteĐiều kiện
Ngôn ngữModal PosSettingsLanguageModalModalLuôn hiển thị
Khởi động/point-of-sale/settings/startupRouteChỉ Electron + settings/pos ghi
Giới thiệu/point-of-sale/settings/aboutRouteChỉ Electron + settings/pos ghi
Dữ liệu local/point-of-sale/settings/local-dataRouteChỉ Electron + settings/pos ghi

settings-page.tsx kiểm tra 3 quyền (helper vendor-module-access.ts):

Hàm helperÝ nghĩa
vendorHasPointOfSaleWriteAccess(profile)Có pos ghi → thấy section Vận hành
vendorHasPointOfSaleSettingsAccess(profile, pathname)Có settings đọc/ghi → thấy mục Ứng dụng
vendorShowPointOfSaleHardwareHubSection(profile)Có settings ghi → thấy section Thiết bị

Nếu cả 3 đều false, cashier chỉ thấy banner vàng lockedHint thay vì các thẻ — phải liên hệ chủ cấp quyền.

Trên cùng hub có component <PointOfSaleElectronDisplaySettings /> chỉ hiển thị khi isElectron() && (showHardwareHub || canPosWrite || canSettings) — cho phép cấu hình màn hình phụ (customer display) ngay từ hub.