Goal
Modify the charge generation job to save each created charge in Supabase, enabling complete txid tracking per member.
Context
Currently generate_charges.py creates the charge in Efí and sends an email, but doesn't store the txid anywhere. This makes it difficult to:
- Know which txid belongs to which member
- Reconcile payments correctly
- Audit old charges
Required Changes
src/jobs/generate_charges.py
# After creating charge in Efí
charge = efi_service.create_pix_charge(...)
# Save to Supabase
supabase_service.create_charge(
member_name=member.name,
txid=charge.txid,
amount=CHARGE_AMOUNT,
month=month_column,
year=date.today().year,
)
Tasks
Dependencies
Goal
Modify the charge generation job to save each created charge in Supabase, enabling complete txid tracking per member.
Context
Currently
generate_charges.pycreates the charge in Efí and sends an email, but doesn't store the txid anywhere. This makes it difficult to:Required Changes
src/jobs/generate_charges.pyTasks
Dependencies