mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Addec context variables for contacts to docs (#5834)
* Corrected report mixin example * Remove unused file * Added context variables for company and address * Repair link in file * Repair link in file * Repair link in file * Removed blank * Added context variables for contacts to docs * Typo in link * Update .pre-commit-config.yaml Revert version * Delete InvenTree/order/migrations/0099_auto_20231101_1747.py * Delete InvenTree/part/migrations/0119_auto_20231101_1747.py --------- Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
This commit is contained in:
parent
f71322ecd3
commit
7b9c618658
Binary file not shown.
@ -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 |
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user