feat(registratura): restructure Autorizare deadlines — no tacit approval
- ac-verificare (5z lucr.) now auto-track, created automatically with any AC emitere type. Informational: authority notifies if incomplete. - ac-emitere (30z cal.) now chains to ac-emitere-dupa-completari when interrupted — term recalculates from completion submission date. - ac-emitere-urgenta (7z lucr.) and ac-emitere-anexe (15z cal.) kept. - New: ac-prelungire-emitere (15z lucr.) — authority communicates decision on AC extension within 15 working days. - Info box in DeadlineAddDialog for autorizare category explaining auto-tracked verification + interruption mechanism. - None of the autorizare deadlines have tacit approval. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -330,6 +330,26 @@ export function DeadlineAddDialog({
|
||||
</div>
|
||||
)}
|
||||
|
||||
{/* Info about auto-tracked deadlines for Autorizare */}
|
||||
{selectedCategory === "autorizare" && (
|
||||
<div className="flex items-start gap-2 rounded-lg bg-blue-50 dark:bg-blue-950/20 border border-blue-200 dark:border-blue-800 p-2.5">
|
||||
<Info className="h-3.5 w-3.5 mt-0.5 text-blue-600 shrink-0" />
|
||||
<div className="text-[11px] text-blue-800 dark:text-blue-300">
|
||||
<p className="font-medium">Termene automate (in fundal):</p>
|
||||
<p className="mt-0.5">
|
||||
Verificare documentatie AC (5 zile lucr.) — se creeaza
|
||||
automat. In acest termen autoritatea notifica daca dosarul
|
||||
este incomplet.
|
||||
</p>
|
||||
<p className="mt-1 text-[10px] opacity-75">
|
||||
Daca autoritatea solicita completari, rezolvati termenul ca
|
||||
"Intrerupt" — se va crea automat termen nou de 30
|
||||
zile de la depunerea completarilor.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
|
||||
{/* Info about auto-tracked deadlines for Avize */}
|
||||
{selectedCategory === "avize" && (
|
||||
<div className="flex items-start gap-2 rounded-lg bg-blue-50 dark:bg-blue-950/20 border border-blue-200 dark:border-blue-800 p-2.5">
|
||||
|
||||
@@ -301,6 +301,19 @@ export function RegistryEntryForm({
|
||||
}
|
||||
}
|
||||
|
||||
// Auto-create verification deadline for AC emitere types
|
||||
const isACEmitere =
|
||||
typeId === "ac-emitere" ||
|
||||
typeId === "ac-emitere-urgenta" ||
|
||||
typeId === "ac-emitere-anexe";
|
||||
if (isACEmitere) {
|
||||
const acVerification = createTrackedDeadline(
|
||||
"ac-verificare",
|
||||
startDate,
|
||||
);
|
||||
if (acVerification) newDeadlines.push(acVerification);
|
||||
}
|
||||
|
||||
// Auto-create completari limit for avize (when Comisie toggle is OFF)
|
||||
const addedDef = getDeadlineType(typeId);
|
||||
if (addedDef?.category === "avize" && !options?.isComisie) {
|
||||
|
||||
Reference in New Issue
Block a user