diff --git a/docs/assets/images/report/picklist.png b/docs/assets/images/report/picklist.png new file mode 100644 index 0000000..ceebf8e Binary files /dev/null and b/docs/assets/images/report/picklist.png differ diff --git a/docs/report/build.md b/docs/report/build.md index 4986bf3..ce448be 100644 --- a/docs/report/build.md +++ b/docs/report/build.md @@ -76,6 +76,7 @@ will result in the first part of the list. Each query set has again its own cont | --- | --- | | .bom_item | The bom item where this part belongs to | | .stock_item | The allocated [StockItem](./context_variables.md#stockitem) | +| .quantity | The number of components needed for the build (components in BOM x parts to build) | ### Example diff --git a/docs/report/pack.md b/docs/report/pack.md index dc5b315..42fa9db 100644 --- a/docs/report/pack.md +++ b/docs/report/pack.md @@ -6,3 +6,49 @@ title: Packing List Report !!! missing "TODO" This section requires further work + +## Pick List + +When all material has been allocated someone has to pick all things from the warehouse. +In case you need a printed pick list you can use the following template. This it just the +table. All other info and CSS has been left out for simplicity. Please have a look at the +BOM report for details. + +{% raw %} +```html + + + + + + + + + + + {% for line in build.allocated_stock.all %} + + + {% if line.stock_item.part.IPN != line.bom_item.sub_part.IPN %} + + {% else %} + + {% endif %} + + + + {% endfor %} + +
Original IPNAllocated PartLocationPCS
{{ line.bom_item.sub_part.IPN }} {{ line.stock_item.part.IPN }} {{ line.stock_item.part.IPN }} {{ line.stock_item.location.pathstring }} {{ line.quantity }}
+``` +{% endraw %} + +Here we have a loop that runs through all allocated parts for the build. For each part +we list the original IPN from the BOM and the IPN of the allocated part. These can differ +in case you have substitutes or template/variants in the BOM. In case the parts differ +we use a different format for the table cell e.g. print bold font or red color. +For the picker we list the full path names of the stock locations and the quantity +that is needed for the build. This will result in the following printout: + +{% with id="report-options", url="report/picklist.png", description="Picklist Example" %} {% include "img.html" %} {% endwith %} +