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:
@@ -545,13 +545,14 @@ export class NasFileManager {
|
||||
}
|
||||
|
||||
private buildFolderName(projectNumber: string, projectName: string): string {
|
||||
let safeNum = projectNumber.replace(/[^\p{L}\p{N}_\-.]/gu, "");
|
||||
safeNum = safeNum.replace(/^\.+|\.+$/g, "").trim();
|
||||
let safe = projectName.replace(/[^\p{L}\p{N}_\-. ]/gu, "");
|
||||
safe = safe.trim().replace(/ /g, "_");
|
||||
safe = safe.replace(/_+/g, "_");
|
||||
safe = safe.trim().replace(/ /g, "_").replace(/_+/g, "_");
|
||||
if ([...safe].length > 200) {
|
||||
safe = [...safe].slice(0, 200).join("");
|
||||
}
|
||||
return projectNumber + "_" + safe;
|
||||
return safeNum + "_" + safe;
|
||||
}
|
||||
|
||||
private resolveProjectPath(
|
||||
|
||||
Reference in New Issue
Block a user