mirror of
https://github.com/inventree/inventree-docs.git
synced 2025-04-28 13:46:54 +00:00
Added context variables for suppliers (#409)
* started python API reference guide * Added test to the API reference guide * Added Price break * added context variables to the build section * Cleand up build section and added new example * Fine tuning * fixed picture * removed unfinished python reference guide * Added allocated_stock to the build rreport * Added contect variables for user model * Added link to user in build.md * Fixed misunderstanding of can_complete * Added context variables for Suppliers * Fixed typos
This commit is contained in:
parent
470f8d4015
commit
ce6a5e67db
@ -155,13 +155,24 @@ Each part object has access to a lot of context variables about the part. The fo
|
|||||||
|
|
||||||
### Suppliers
|
### Suppliers
|
||||||
|
|
||||||
!!! incomplete "TODO"
|
|
||||||
This section requires further work
|
|
||||||
|
|
||||||
#### Supplier
|
#### Supplier
|
||||||
|
|
||||||
| Variable | Description |
|
| Variable | Description |
|
||||||
|----------|-------------|
|
|----------|-------------|
|
||||||
|
| name | Name of the company |
|
||||||
|
| description | Longer form description |
|
||||||
|
| website | URL for the company website |
|
||||||
|
| address | Postal address |
|
||||||
|
| contact | Contace Name |
|
||||||
|
| phone | Contact phone number |
|
||||||
|
| email | Contact email address |
|
||||||
|
| link | A second econdary URL to the company (Actually only accessible in the admin interface) |
|
||||||
|
| notes | Extra notes about the company (Actually only accessible in the admin interface) |
|
||||||
|
| is_customer | Boolean value, is this company a customer |
|
||||||
|
| is_supplier | Boolean value, is this company a supplier |
|
||||||
|
| is_manufacturer | Boolean value, is this company a manufacturer |
|
||||||
|
| currency_code | Default currency for the company |
|
||||||
|
| parts | Query set with all parts that the company supplies |
|
||||||
|
|
||||||
#### SupplierPart
|
#### SupplierPart
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user