From ce6a5e67dbb0aaf3b019a9c51290bb951b2d191c Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 30 Dec 2022 10:59:11 +0100 Subject: [PATCH] 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 --- docs/report/context_variables.md | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/docs/report/context_variables.md b/docs/report/context_variables.md index e48da2b..cfd67d4 100644 --- a/docs/report/context_variables.md +++ b/docs/report/context_variables.md @@ -155,13 +155,24 @@ Each part object has access to a lot of context variables about the part. The fo ### Suppliers -!!! incomplete "TODO" - This section requires further work - #### Supplier | 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