Skip to content

v0.1.22 — stock-rotation report (Fase 6 reports complete)

Choose a tag to compare

@pabloalvarez99 pabloalvarez99 released this 18 May 01:37
7a03259

stock-rotation report — closes BACKLOG #9

GET /api/v1/reports/stock-rotation?from&to — inventory turnover = qty_sold / current_stock. No historical stock snapshots are kept, so current product.stock is the documented proxy denominator (same honesty stance as items_without_cost). turnover/days_of_inventory are null when current stock ≤ 0 — the product still surfaces with qty_sold so fast-mover stockouts stay visible. days_of_inventory = window_days / turnover, only when both from/to given. Sorted turnover desc (null last). refunded/cancelled excluded, tenant-scoped.

Fase 6 report set is now complete: sales-daily, margins-daily, top-products+ABC, near-expiry, stock-rotation (+ caja/gastos). Additive, no migration.

Note: this 0.1.22 MSI binary carries the report endpoint set through stock-rotation. Local purchase-orders (PR #35, version-less) is merged on the branch and ships in the next MSI.

MSI

pharma-server-0.1.22-x86_64.msi — 12,234,752 bytes
sha256: 36e3b6b00f6fc7a048ea90c93245d8984221bae0e176f5bee6015d2b948bfd4c

Smoke-verified: MajorUpgrade over v0.1.21, service Running, / {"version":"0.1.22"}, /health/ready 200 db:ok.

🤖 Generated with Claude Code