feat: single session enforcement + UI improvementsRunning
Mhamdans17
c6e89e6
- Add EnforceSingleSession field to Company model
- Add UserSession model for tracking active kasir sessions
- Add session_token to JWT claims
- Enforce single device login for kasir when feature is enabled
- Add Logout endpoint (POST /api/auth/logout)
- Add enforce_single_session to AdminUpdateCompanySettings
- Fix ListCompanies SELECT: include max_branches, max_cashiers, enforce_single_session
- Fix CompanyResponse: add EnforceSingleSession field + response mapping
feat: add max branches and cashiers limit, refine admin UI settings, implement tier-based qris fee
Update WhatsApp notification format, add voucher to order reports, and add tenant settings toggle
Mhamdans17
7121ebc
feat: add branch specific point settings
Mhamdans17
938b985
fix: expose PointHistories in Member JSON response
Mhamdans17
d1cbed4
feat: add optional NPWP field during registration
Mhamdans17
ac5c922
fix: add missing constraint cascades for wallet and points
Mhamdans17
17e3823
fix: set foreign key constraints to OnDelete:SET NULL to avoid deletion errors
Mhamdans17
ea73154
feat: add created_by_name for manual cashier input
Mhamdans17
77568d0
fix: disable bogus fk_orders_member generation by GORM using constraint:-
Mhamdans17
d98be82
fix: entirely remove PointHistory Member relation to avoid GORM auto-migrate bugs
Mhamdans17
11fca28
fix: explicit references:ID on Member relations to prevent GORM type altering
Mhamdans17
4800900
feat: track member creation details and point history log
Mhamdans17
a66f5d3
feat: backend for deposit wallet, fee deduction, and super admin manual adjust testing
Mhamdans17
c6a3ee4
feat: customizable fee structures per company from super admin panel
Mhamdans17
10b6d0b
feat: show member name and points earned in payment receipt
Mhamdans17
a90354c
feat: implement multi-tier point rules
Mhamdans17
4774488
fix: remove foreignKey tag to prevent AutoMigrate from making member_id a bigint
Mhamdans17
4d76e48
fix: rename MemberID to MemberCode in struct to prevent GORM type mismatch panic
Mhamdans17
fb74e1c
fix: explicit GORM references to prevent altering MemberID to bigint
Mhamdans17
ccc7ed3
feat: implement automated member points calculation
Mhamdans17
c91764d
feat: add Member service, points, and Kasir Name tracking
Mhamdans17
ae76db4
feat: add admin notification for new tenant and save customer info to send WA on webhook success
Mhamdans17
e70dcc5
feat: add TripayPaymentMethod field in Setting table for dynamic payment channel configuration
Mhamdans17
236d19a
feat: migrate global Tripay credentials to system settings table in DB
Mhamdans17
4e8a43c
feat: support dynamic tenant Tripay credentials and proxy via database
Mhamdans17
6fd3b19
perf: configure GORM logger slow threshold to 1500ms and add database indexes on foreign keys to completely resolve cross-region network latency and sequential scans
Mhamdans17
25eb4e0
fix: remove default:true GORM tags from IsActive fields to allow explicitly setting them to false during registration