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
Mhamdans17
8879e0b
fix: tenant settings not fetching and caching correctly
Update WhatsApp notification format, add voucher to order reports, and add tenant settings toggle
Mhamdans17
7121ebc
fix: select is_point_enabled in getBranches
Mhamdans17
c1f4954
feat: add branch specific point settings
Mhamdans17
938b985
fix: prevent GORM from overwriting MemberCode on association save
Mhamdans17
b405397
feat: include detailed bought items and branch in point history reason
Mhamdans17
3bfd210
feat: move checkout to dedicated page and add member check logic
Mhamdans17
9f5aad1
feat: add optional NPWP field during registration
Mhamdans17
ac5c922
feat: include branch name in point history reason
Mhamdans17
2796e25
feat: add created_by_name for manual cashier input
Mhamdans17
77568d0
feat: track member creation details and point history log
Mhamdans17
a66f5d3
fix: add platform_fee to select query in ListOrders
Mhamdans17
24a5138
fix: include platform_fee in OrderResponse
Mhamdans17
52fc9c2
feat: save tripay fee upfront when creating qris order
Mhamdans17
2c61479
fix: hide QRIS pending topups from admin verification panel
Mhamdans17
27a7c82
fix: qr validation payload for topup qris
Mhamdans17
24fa56e
fix: resolve go build errors in wallet_controller
Mhamdans17
27a7bdf
feat: add QRIS topup endpoint and handle webhook for topup
Mhamdans17
da65302
fix: add missing wallet and fee fields to ListCompanies
Mhamdans17
1328d27
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: rename MemberID to MemberCode in struct to prevent GORM type mismatch panic
Mhamdans17
fb74e1c
feat: implement automated member points calculation
Mhamdans17
c91764d
fix: members API 401 unauthorized by extracting companyID from user context
Mhamdans17
78649bc
feat: add Member service, points, and Kasir Name tracking
Mhamdans17
ae76db4
feat: include items array in daily report orders
Mhamdans17
0f64726
feat: add Tripay fee as a Biaya Layanan item in WhatsApp notifications
Mhamdans17
0ff7334
fix: update order.TotalAmount with Tripay fee on webhook PAID to reflect in admin reports
Mhamdans17
1517cb7
feat: set tripay timeout to 5 mins and return tripay amount for frontend display
Mhamdans17
e9ae501
fix: include tripay transactions in fee report non-cash calculation
Mhamdans17
bc89757
feat: add admin notification for new tenant and save customer info to send WA on webhook success
Mhamdans17
e70dcc5
fix: include tripay transactions in non-cash daily report
Mhamdans17
6fee293
feat: return Tripay QRIS payload directly to frontend for inline display
Mhamdans17
9b46732
fix: empty snap_token for Tripay response to bypass Midtrans Snap popup in frontend
Mhamdans17
1c20f58
feat: add TripayPaymentMethod field in Setting table for dynamic payment channel configuration
Mhamdans17
236d19a
fix: manual cascading deletes in company_controller and add public ip check endpoint
Mhamdans17
fe79eec
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
feat: rebrand backend and config from WarungPOS to XOGM Go
Mhamdans17
f6ca5a8
fix: return empty array instead of null for list endpoints to prevent FE crashes
Mhamdans17
11c1b6f
feat: customize WhatsApp OTP notification message for Reset Password
Mhamdans17
1d04fbb
feat: implement ForgotPassword and ResetPassword routes using WhatsApp OTP
Mhamdans17
c587f34
Fix GORM method chaining state sharing bug in GetFeeReport
Mhamdans17
f086228
Optimize database query logs, GetProduct, GetMe and allow clearing ImageURL
Mhamdans17
9fc6937
perf: completely avoid SELECT * in DeleteProduct, GetCategory, UpdateCategory, and DeleteCategory handlers by using direct database updates and specific select counts