Imported payments have no payment_source #54
Labels
No Label
architecture
backend
bug
feature
frontend
priority:critical
priority:high
priority:low
priority:medium
priority:nice-to-have
ux
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: null/BillTracker#54
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
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?
Severity: MED 🟡
Affected Files
services/spreadsheetImportService.js— line 1439routes/payments.js— payment creation pathsroutes/bills.js— bill-related payment pathsProblem
All import-created payments insert
nullforpayment_source:Every other creation path passes
'manual'or an explicit source:payment_source = 'manual'payment_source = 'manual'payment_source = 'manual'payment_source = 'manual'The history view and audit records show a blank source for all imported payments — inconsistent and harder to trace.
Impact
Fix
Set
payment_source = 'file_import'for all spreadsheet-imported payments. This aligns with thepayment_sourceenum values (manual,file_import,provider_sync).Also update
importRelatedPaidMonthsForNewBill()if it creates payments.Acceptance Criteria
payment_source = 'file_import'