diff --git a/InvenTree/company/.models.py.swp b/InvenTree/company/.models.py.swp deleted file mode 100644 index 3108f0257b..0000000000 Binary files a/InvenTree/company/.models.py.swp and /dev/null differ diff --git a/docs/docs/report/context_variables.md b/docs/docs/report/context_variables.md index 610f8e4cda..0765d68036 100644 --- a/docs/docs/report/context_variables.md +++ b/docs/docs/report/context_variables.md @@ -191,6 +191,19 @@ Each part object has access to a lot of context variables about the part. The fo | postal_city | City name | | country | Country name | +#### Contact + +Contacts are added to companies. Actually the company has no link to the contacts. +You can search the company object of the contact. + +| Variable | Description | +|----------|-------------| +| company | Company object where the contact belongs to | +| name | First and second name of the contact | +| phone | Phone number | +| email | Email address | +| role | Role of the contact | + #### SupplierPart | Variable | Description | diff --git a/docs/docs/report/purchase_order.md b/docs/docs/report/purchase_order.md index c8d0f773b3..331290b708 100644 --- a/docs/docs/report/purchase_order.md +++ b/docs/docs/report/purchase_order.md @@ -28,6 +28,7 @@ In addition to the default report context variables, the following variables are | order.target_date | The date when the order should arrive | | order.if_overdue | Boolean value that tells if the target date has passed | | order.currency | The currency code associated with this order, e.g. 'AUD' | +| order.contact | The [contact](./context_variables.md#contact) object associated with this order | #### Lines