From 2234357e6330479d88af6fe1fe9a43f11b8f7648 Mon Sep 17 00:00:00 2001 From: Oliver Date: Wed, 15 Nov 2023 10:42:57 +1100 Subject: [PATCH] Fix some issues in report docs. (#5918) Ref: https://github.com/inventree/InvenTree/issues/5893 --- docs/docs/report/purchase_order.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/docs/report/purchase_order.md b/docs/docs/report/purchase_order.md index 048b329358..d7c1bdf098 100644 --- a/docs/docs/report/purchase_order.md +++ b/docs/docs/report/purchase_order.md @@ -32,7 +32,7 @@ In addition to the default report context variables, the following variables are #### Lines -Each line item have sub variables, as follows: +Each line item (available within the `lines` list) has sub variables, as follows: | Variable | Description | | --- | --- | @@ -45,11 +45,13 @@ Each line item have sub variables, as follows: | total_line_price | The total price for this line item, calculated from the unit price and quantity | | destination | The stock location where the part will be stored | -A simple example below shows how to use the context variables for line items: +A simple example below shows how to use the context variables for each line item: ```html {% raw %} -{% for line in order.lines %} +{% for line in lines %} +Internal Part: {{ line.part.part.name }} - {{ line.part.part.description }} +SKU: {{ line.part.SKU }} Price: {% render_currency line.total_line_price %} {% endfor %} {% endraw %}