HOCO B2B
Team tasksAnis

SRV-32 — V2 — Detailed credit, reminders, credit notes, accounting export

Payment terms and due dates, blocking/approval policy, automatic reminders, credit notes and receipts, accounting export formats.

FieldDetails
Task codeSRV-32
PhaseP4 — V2 evolutions
Product scopeV2
StatusPlanned
StartSun 31 Jan 2027
DueTue 2 Feb 2027
ResponsibleAnis — Full-stack developer
Co-responsible—
Effort2.5 person-day(s) planned · 6 from scratch · size M
Area · appServer · server
Depends onSRV-31
UnblocksSRV-34, DSH-20
Milestones—

Summary

Payment terms and due dates, blocking/approval policy, automatic reminders, credit notes and receipts, accounting export formats.

Description

Detailed credit, reminders and accounting exports are V2 (cahier §4.7, §11, §14.2; FIN-06…FIN-09, INT-06). This task adds payment terms and due dates per reseller, overdue detection, the over-limit policy with automatic blocking or an approval workflow, automatic reminders and unpaid alerts (PaymentReminder), payment receipts and standalone credit notes for commercial gestures — V1 already issues credit notes from returns and after-sales (SRV-20) — and accounting exports in file formats agreed with HOCO's accountant (admin.finance.overdue, admin.finance.export). Out of scope: ERP API integration and the V2 finance pages (DSH-20).

Subtasks

#SubtaskOwner
1Payment terms per reseller (e.g. comptant, 15, 30 jours) and due dates on invoicesAnis
2Overdue detection job and aging buckets (0–30, 31–60, 61–90, 90+) for admin.finance.overdueAnis
3Over-limit policy BLOCK or APPROVAL with an approval request workflow for orders over creditAnis
4Reminder scheduler (before due date, after due date, escalation) with PaymentReminder history over push, SMS and emailAnis
5Payment receipt PDFs and standalone credit notes (commercial gesture) on the V1 credit-note baseAnis
6Accounting export (journal of invoices, credit notes, payments) in CSV/XLSX formats agreed with HOCO's accountantAnis
7Reseller finance additions: due dates and reminders in finance.summaryAnis

Deliverables

  • apps/server/src/modules/billing/{terms,overdue,reminders,receipts,accounting-export}.ts
  • packages/contracts V2 additions for admin.finance.overdue and admin.finance.export
  • Accounting export format specification agreed with HOCO

Acceptance criteria

  • An invoice past its due date becomes OVERDUE and enters the aging report (FIN-06)
  • Under APPROVAL policy an over-limit order waits for an approver instead of being refused (FIN-06)
  • Reminders are sent on schedule and listed in the reminder history (FIN-07)
  • The accounting export of a month contains every invoice, credit note and payment of that month with totals matching the finance reports (FIN-09)

Requirements covered

RequirementTitleRelease
FIN-06Detailed credit: payment terms, due dates, automatic blocking or approval when exceededV2
FIN-07Automatic reminders and unpaid alertsV2
FIN-09Accounting exports and financial reportsV2
INT-06ERP / accounting import-export (files in V1, API in V2)V2

API surface

Endpoint groupOperations
Finance12
Reseller finance6

Test measures

  • Job tests for overdue and reminders with a fake clock
  • Reconciliation test between the export and the database totals

Risks

  • Export format unknown until HOCO's accounting software is identified — agree a sample file before implementation

KPI

  • Delivered by Tue 2 Feb 2027 within 2.5 person-day(s).
  • Every acceptance criterion above demonstrated before hand-off; linked requirements' acceptance criteria pass.
  • Zero open critical defects, permission gaps or data-integrity regressions at sign-off.

Generated from content/plan/tasks.json by scripts/generate-team-tasks.mjs. Dates are computed by the scheduler (Sunday–Thursday weeks, holidays excluded) — change the plan, not this page.

On this page