0.36.0: Status Intern mit I-Nummern und Ordner 05 Intern, Eckdaten unten und einklappbar
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AmyPfuNc4sCRfaF3oURXZz
This commit is contained in:
@@ -376,6 +376,17 @@ export function pruefeAngebot(
|
||||
return p;
|
||||
}
|
||||
|
||||
/** Interne Projekte (Henning, 24.10.2026): eigene Reihe I-26-001 */
|
||||
export function naechsteInternNummer(vorhanden: string[], jahr: number): string {
|
||||
const jj = String(jahr % 100).padStart(2, "0");
|
||||
let max = 0;
|
||||
for (const n of vorhanden) {
|
||||
const m = /^I-(\d{2})-(\d{1,4})/.exec(n.trim());
|
||||
if (m && m[1] === jj) max = Math.max(max, Number(m[2]));
|
||||
}
|
||||
return `I-${jj}-${String(max + 1).padStart(3, "0")}`;
|
||||
}
|
||||
|
||||
/** Nächste freie Angebotsnummer im Jahr, Format A-26-121 (wie in Plancraft) */
|
||||
export function naechsteNummer(vorhanden: string[], jahr: number): string {
|
||||
const jj = String(jahr % 100).padStart(2, "0");
|
||||
|
||||
@@ -86,7 +86,7 @@ export interface V70Aufgabe {
|
||||
|
||||
// --- Ergebnis ---
|
||||
|
||||
export type Projektstatus = "anfrage" | "angebot" | "auftrag" | "ausfuehrung" | "abgerechnet" | "gewaehrleistung" | "abgeschlossen";
|
||||
export type Projektstatus = "anfrage" | "angebot" | "auftrag" | "ausfuehrung" | "abgerechnet" | "gewaehrleistung" | "abgeschlossen" | "intern";
|
||||
|
||||
export interface Uebernahme {
|
||||
einstellungen: {
|
||||
|
||||
Reference in New Issue
Block a user