feat(orders): month/year filter on both order lists + fix received-orders search

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
BOHA
2026-06-09 13:22:39 +02:00
parent 2b7b480144
commit 3b48bd0523
8 changed files with 186 additions and 5 deletions

View File

@@ -34,6 +34,8 @@ export default async function issuedOrdersRoutes(fastify: FastifyInstance) {
search,
status: query.status ? String(query.status) : undefined,
customer_id: query.customer_id ? Number(query.customer_id) : undefined,
month: query.month ? Number(query.month) : undefined,
year: query.year ? Number(query.year) : undefined,
});
return paginated(
reply,