document_series_numbering_decision
Generates the yearly internal decision that names the responsible person and assigns document series and number ranges per type, per OMFP 2634/2015. Returns JSON or a signed-ready PDF with company details and legal basis.
Instructions
Decizia de numerotare: the yearly internal decision (OMFP 2634/2015) that names the person responsible for allocating document numbers and lists, per document type, the series and the number range allocated for the year. Built from the company's document series: first number = the first number issued in that year (or the next free number), planned last number = first + rangeSize - 1 (extended to the highest number already issued). Returns the decision as JSON (company identification, legal basis, rows with firstNumber/lastNumber/format, warnings for missing representative or registration number); pass outFile to save the signed-ready PDF instead ("DECIZIA nr. … din …", table, signature block, Romanian).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| year | No | Year of the decision (default: current year) | |
| outFile | No | Where to write the PDF; when omitted the decision is returned as JSON | |
| companyId | No | Company UUID override (uses active company if not set) | |
| rangeSize | No | Numbers allocated per series; planned last number = first + rangeSize - 1 (default 9999) | |
| responsible | No | Person responsible for numbering (default: the company representative) | |
| decisionDate | No | Decision date YYYY-MM-DD (default 1 January of the year) | |
| decisionNumber | No | Decision number (default 1) |