Subscriptions: «Оплачено?» → paid status → «repeat?»; edit and create everything
- ops: paying marks the current charge paid (paid_for, persisted) instead of jumping to the next date; repeat_sub moves to the next period or closes the subscription. Paid-and-undecided subscriptions leave reminders and show in agenda['paid']. update_sub can set paid; tasks reopen when their status goes back; delete for subs and routines (BroV only, /api/delete); /api/tasks?all=1 and /api/subs?all=1. - Bot: «₽ Оплачено?» on reminders, then «🔁 Да, <date> / Нет, закрыть»; after paying by text it asks the same with buttons. - BroV: «Оплачено?» everywhere; «Оплачено — повторить?» section under the notch; «Весь план»: forms to edit or create tasks (title, description, status, due, company), subscriptions (amount, currency, period, date, reminder, company, paid, active) and routines, delete with confirmation, «+» per list, done tasks on demand. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+2
-1
@@ -66,8 +66,9 @@ def subs(rows: list, by_client: dict, today: date) -> str:
|
||||
out.append(f"\n<b>{escape(client_name(client) or 'Без компании')}</b> — {total} в мес.")
|
||||
for s in (x for x in rows if x["client"] == client):
|
||||
every = f"{s['every']} " if s["every"] > 1 else ""
|
||||
status = f" · ✓ оплачено, повторить {ru_day(s['next_if_repeat'])}?" if s["paid"] else ""
|
||||
out.append(f"💳 {escape(s['name'])} — {s['amount']:g} {s['currency']} / {every}{per[s['period']]}"
|
||||
f" · {human_day(s['next_date'], today)}")
|
||||
f" · {human_day(s['next_date'], today)}{status}")
|
||||
return "\n".join(out).strip()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user