contract_refund_on_stop
Enables automated refunds and contract adjustments when stopping invoiced contract lines before their last invoiced date.
Key Features
- contract.line: Automatically creates refund invoices for the interval between the chosen stop date and the last invoiced date when stopping an invoiced line.
- contract.line: Recomputes the line's last invoiced date to match the stop date once the refund is generated.
- contract.line: Calculates prorated refund quantities period by period according to the contract's recurring parameters.
- res.company: Provides a company-level option to allow stopping invoiced contract lines with automatic refunds.
- res.config.settings: Adds a contracts configuration toggle to activate the refund-on-stop behavior for contract lines.