-
Notifications
You must be signed in to change notification settings - Fork 7.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Issues related to RFQ and Supplier Quotation on Portal (backport #…
…37565) (#37577) * fix: Issues related to RFQ and Supplier Quotation on Portal (#37565) fix: RFQ and Supplier Quotation for Portal (cherry picked from commit 2851a41) * chore: removed backport changes --------- Co-authored-by: rohitwaghchaure <[email protected]>
- Loading branch information
1 parent
95abd79
commit e1504ef
Showing
6 changed files
with
50 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,25 @@ | ||
{% 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> | ||
<div class="row"> | ||
<div class="col-3"> | ||
{% if d.image %} | ||
{{ product_image(d.image) }} | ||
{% else %} | ||
<div class="website-image h-100 w-100" style="background-color:var(--gray-100);text-align: center;line-height: 3.6;"> | ||
{{ frappe.utils.get_abbr(d.item_name)}} | ||
</div> | ||
{% endif %} | ||
</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> | ||
</div> | ||
</div> | ||
{% endmacro %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters