38ac7f7350
* fix: Add Purchase Order to portal * fix: Create Customer or Supplier on first login Based on default role set in Portal Settings, a Customer or Supplier will be created when the user logs in for the first time. * fix: Styling for transaction_row * fix: Styling for RFQ page * fix: Add Purchase Invoice route - Make Purchase Invoice from PO * fix: minor - Admissions for Student role - Remove print statement
20 lines
701 B
HTML
20 lines
701 B
HTML
{% from "erpnext/templates/includes/macros.html" import product_image_square, product_image %}
|
|
|
|
{% macro item_name_and_description(d, doc) %}
|
|
<div class="row">
|
|
<div class="col-3">
|
|
{{ product_image(d.image) }}
|
|
</div>
|
|
<div class="col-9">
|
|
{{ 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 %}
|