feat(reports): finance QR income and payment exceptions exports (#38) #112
No reviewers
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
primatekuntech/kws!112
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/38-finance-qr-income"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Finance reports PR A of #38 slice 2: two Excel exports, platform scope only, permission
admin_portal.finance.manage.GET /v1/admin/reports/finance/qr-income/export: one row per checked-in non-master ticket. Basis is the check-in day (Nairobi), Amount = purchase_price + discount, Net = purchase_price, D/C = C for wallet, Paid To =currencies.account.GET /v1/admin/reports/finance/payment-exceptions/export:refund_due/refundedpayments with a reason (currency > over/under > duplicate > late; variance only for the same currency).tickets.code. Per currency, never converted. Cap 100,000 rows, 366 days, two exports at a time per node.Owner defaults (research defaults, "go with defaults")
Check-in-day basis,
finance.manageonly, no ticket codes, per currency. [verify] items are listed in ADR 0023.Also in this PR
6afdeba: slice 3'sactRowtest usedtime.FixedZone, failingkenyatime.TestNoOtherZones(PR #111 CI ran before kenyatime landed). Fixed here (ae1413a); can be split out if you prefer.untilToday()(ad6a407).Verification
make cover: 90.9% total (minimum 80%)make lint: 0 issues;make contract: ok; clients script ran.Review
Dual-pass. Pass 1 (ponytail): Must fix none; optional Should-fix cleanups skipped (summary math in handler, repeated
optclosure, export-only JSON tags, variance cell helper). Pass 2 (correctness): one Important (OpenAPI Payment Method wording) and minors, fixed inc68acae; Pass 1 re-check of that commit: Must fix none.Known gaps
🤖 Generated with Claude Code