{% from "erpnext/templates/includes/macros.html" import product_image_square, product_image %} {% macro item_name_and_description(d, doc) %}
{% if d.image %} {{ product_image(d.image) }} {% else %}
{{ frappe.utils.get_abbr(d.item_name)}}
{% endif %}
{{ d.item_code }}

{{ d.description }}

{% set supplier_part_no = frappe.db.get_value("Item Supplier", {'parent': d.item_code, 'supplier': doc.supplier}, "supplier_part_no") %}

{% if supplier_part_no %} {{_("Supplier Part No") + ": "+ supplier_part_no}} {% endif %}

{% endmacro %}