Skip to content

Add EasyVerein invoicing and user syncing to the admin area#38

Open
nspo wants to merge 2 commits into
masterfrom
feature/easyverein
Open

Add EasyVerein invoicing and user syncing to the admin area#38
nspo wants to merge 2 commits into
masterfrom
feature/easyverein

Conversation

@nspo

@nspo nspo commented Jun 7, 2026

Copy link
Copy Markdown
Owner
  • Create draft or finalized invoices per user via a background job with a
    live progress page; mirror each as a pybarsys invoice + virtual payment,
    with rollback on failure and dependant purchase notifications.
  • Sync pybarsys users to EasyVerein contacts via name matching with
    high/low-confidence suggestions; fetch and attach a contact directly from
    the user create/edit forms.
  • Add a SiteSettings model (DB-stored API token with auto-refresh, bank
    account, finalize toggle), seeded once from PYBARSYS_INITIAL_* env vars.
  • When EasyVerein is active: require self-paying buyers to be linked,
    enforce unique contact links, show link status, and redirect manual
    invoice/payment creation to the EasyVerein flow.
  • Bump to Python 3.11 for python-easyverein.

Paginate user/by_account_balance correctly

Fixes #19

@nspo nspo force-pushed the feature/easyverein branch from 2873d2a to bb12af5 Compare June 7, 2026 14:29
@nspo

nspo commented Jun 7, 2026

Copy link
Copy Markdown
Owner Author

fyi @jallmenroeder if you wanna have a look

@Merlijnv We're adding an integration to easyverein.com but this is backwards-compatible with pybarsys-only-invoicing. The EasyVerein integration makes life much easier for the accountants, no need to create payments in Pybarsys any longer and re-invoice.

@nspo

nspo commented Jun 7, 2026

Copy link
Copy Markdown
Owner Author

This is kind of how invoice creation looks now (slightly updated in most recent commit):

image

There's a live progress bar now, no more waiting forever for the browser to load.

image

PDF invoice sample:

image

nspo added 2 commits June 7, 2026 16:45
Add EasyVerein invoicing and user syncing to the admin area:
- Create draft or finalized invoices per user via a background job with a
  live progress page; mirror each as a pybarsys invoice + virtual payment,
  with rollback on failure and dependant purchase notifications.
- Sync pybarsys users to EasyVerein contacts via name matching with
  high/low-confidence suggestions; fetch and attach a contact directly from
  the user create/edit forms.
- Add a SiteSettings model (DB-stored API token with auto-refresh, bank
  account, finalize toggle), seeded once from PYBARSYS_INITIAL_* env vars.
- When EasyVerein is active: require self-paying buyers to be linked,
  enforce unique contact links, show link status, and redirect manual
  invoice/payment creation to the EasyVerein flow.
- Bump to Python 3.11 for python-easyverein.
@nspo nspo force-pushed the feature/easyverein branch from bb12af5 to 2bd14fd Compare June 7, 2026 14:45
{% csrf_token %}

<div class="panel panel-default">
<div class="panel-heading"><strong>EasyVerein</strong></div>

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should only show up if EV is active - to-do

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Do not show pagination on /admin/statistics/user/by_account_balance/

1 participant