dosare_document
Generates rental termination documents (agreement, notice, addendum, or landlord's statement) with prefilled fields for review or PDF output with overrides.
Instructions
Generate a legal document from a rental-contract dosar, prefilled with the landlord (company), tenant, contract and property: 'conventie_incetare_inchiriere' (termination agreement), 'declaratie_incetare_contract' (landlord's sworn statement, the C168 termination attachment), 'act_aditional_inchiriere' (addendum: extension and/or new rent; fields act{numar,data}, prelungire{data_inceput,data_sfarsit}, chirie_noua{suma,valuta,de_la}) or 'notificare_incetare_inchiriere' (termination notice: data_incetare, preaviz_zile, motiv). Without render you get the prefilled fields to review with the user; with render:true and the reviewed fields (overrides) you get the PDF (written to outFile when given). Sign it by hand or with agent_sign_pdf, then attach it to the C168 termination.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Rental-contract dosar id | |
| type | Yes | ||
| fields | No | Overrides for the prefilled fields (e.g. locatar.adresa, data_incetare, motiv) | |
| render | No | ||
| outFile | No | ||
| companyId | No | Company UUID (overrides STORNO_COMPANY_ID env var) |