Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Contract is loaded from database and gives you access to following etailsdetails:


VariableTypeDescription
{$contract.id}intDatabase contract id
{$contract.number}intHuman-readable contract number
{$contract.created_at}datetime

Contract creation date

{$contract.accepted_at}datetimeIf accepted, contract acceptance date
{$contract.accepted_by}stringIf accepted, person who accepted contract
{$contract.expires}dateContract expiration date (if any)
{$contract.status}stringOne of: 'Draft','Pending','Active','Expired','Canceled'
{$contract.public_notes}stringPublic 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}

...