{#
Copyright (c) 2015 Chintalagiri Shashank
Released under the MIT license
#}
{% macro render_bom(refbom) -%}
Ident |
Quantity |
Refdes |
{% for row in refbom.lines %}
{{ row.ident }} |
{{ row.quantity_str }} |
{% for refdes in row.refdeslist %}{{ refdes }}{% if not loop.last %}, {% endif %}{% endfor %}
|
{% endfor %}
{% endmacro -%}
{% macro render_cobom(cobom) -%}
|
Ident |
Quantity |
{% for row in cobom.lines %}
|
{{ row.ident }} |
{{ row.quantity_str }} |
{% endfor %}
{% endmacro -%}
{% macro render_inclusion(inclusion) -%}
Product |
Description |
Status |
Quantity |
{% for product, qty in inclusion %}
{{ product.ident }} |
{{ product.desc }} |
{{ product.status }}
|
{{ qty }} |
{% endfor %}
{% endmacro -%}