2019-10-09 06:11:33 +00:00
|
|
|
{% from "erpnext/templates/includes/macros.html" import product_image_square, product_image %}
|
2016-03-03 08:30:35 +00:00
|
|
|
|
|
|
|
{% macro item_name_and_description(d, doc) %}
|
|
|
|
<div class="row">
|
2019-10-09 06:11:33 +00:00
|
|
|
<div class="col-3">
|
|
|
|
{{ product_image(d.image) }}
|
2016-03-03 08:30:35 +00:00
|
|
|
</div>
|
2019-10-09 06:11:33 +00:00
|
|
|
<div class="col-9">
|
2016-03-03 08:30:35 +00:00
|
|
|
{{ d.item_code }}
|
|
|
|
<p class="text-muted small">{{ d.description }}</p>
|
|
|
|
{% set supplier_part_no = frappe.db.get_value("Item Supplier", {'parent': d.item_code, 'supplier': doc.supplier}, "supplier_part_no") %}
|
|
|
|
<p class="text-muted small supplier-part-no">
|
|
|
|
{% if supplier_part_no %}
|
|
|
|
{{_("Supplier Part No") + ": "+ supplier_part_no}}
|
|
|
|
{% endif %}
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endmacro %}
|