1.5.2
- feat: order confirmation PDF generation with VAT support - feat: order confirmation modal with custom item editing - fix: attendance negative duration clamping and switchProject timing - fix: Quill editor locked to Tahoma 14px, PDF heading sizes - fix: invoice/offer PDF font consistency (Tahoma enforcement) - fix: invoice alert cron improvements - fix: NAS financials manager edge cases - refactor: numbering service with unique sequence constraints Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -91,8 +91,11 @@ export default async function projectsRoutes(
|
||||
const parsed = parseBody(UpdateProjectSchema, request.body);
|
||||
if ("error" in parsed) return error(reply, parsed.error, 400);
|
||||
|
||||
const existing = await updateProject(id, parsed.data);
|
||||
if (!existing) return error(reply, "Projekt nenalezen", 404);
|
||||
const result = await updateProject(id, parsed.data);
|
||||
if (!result) return error(reply, "Projekt nenalezen", 404);
|
||||
if ("error" in result) {
|
||||
return error(reply, result.error, (result as any).status ?? 400);
|
||||
}
|
||||
|
||||
await logAudit({
|
||||
request,
|
||||
@@ -100,7 +103,7 @@ export default async function projectsRoutes(
|
||||
action: "update",
|
||||
entityType: "project",
|
||||
entityId: id,
|
||||
description: `Upraven projekt ${existing.name}`,
|
||||
description: `Upraven projekt ${result.name}`,
|
||||
});
|
||||
return success(reply, { id }, 200, "Projekt byl uložen");
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user