...
Contract is loaded from database and gives you access to following etailsdetails:
Variable | Type | Description |
---|---|---|
{$contract.id} | int | Database contract id |
{$contract.number} | int | Human-readable contract number |
{$contract.created_at} | datetime | Contract creation date |
{$contract.accepted_at} | datetime | If accepted, contract acceptance date |
{$contract.accepted_by} | string | If accepted, person who accepted contract |
{$contract.expires} | date | Contract expiration date (if any) |
{$contract.status} | string | One of: 'Draft','Pending','Active','Expired','Canceled' |
{$contract.public_notes} | string | Public notes added to contract |
...
To load all contracts related to invoice into its template, edit invoice template in Settings→Billing→Document Templates and add:
Code Block |
---|
{contract for='invoice' id=$invoice.id multiple=true} |
...