Merge pull request #28098 from marination/so-quote-portal
fix: SO/Quotation Portal Missing Images
This commit is contained in:
@@ -459,6 +459,7 @@ body.product-page {
|
|||||||
min-height: 0px;
|
min-height: 0px;
|
||||||
|
|
||||||
.r-item-image {
|
.r-item-image {
|
||||||
|
min-height: 100px;
|
||||||
width: 40%;
|
width: 40%;
|
||||||
|
|
||||||
.r-product-image {
|
.r-product-image {
|
||||||
@@ -480,6 +481,7 @@ body.product-page {
|
|||||||
.r-item-info {
|
.r-item-info {
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
padding-right: 0;
|
padding-right: 0;
|
||||||
|
padding-left: 10px;
|
||||||
width: 60%;
|
width: 60%;
|
||||||
|
|
||||||
a {
|
a {
|
||||||
@@ -672,18 +674,6 @@ body.product-page {
|
|||||||
img {
|
img {
|
||||||
max-height: 112px;
|
max-height: 112px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.no-image-cart-item {
|
|
||||||
max-height: 112px;
|
|
||||||
display: flex; justify-content: center;
|
|
||||||
background-color: var(--gray-200);
|
|
||||||
align-items: center;
|
|
||||||
color: var(--gray-400);
|
|
||||||
margin-top: .15rem;
|
|
||||||
border-radius: 6px;
|
|
||||||
height: 100%;
|
|
||||||
font-size: 24px;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.cart-items {
|
.cart-items {
|
||||||
@@ -862,6 +852,18 @@ body.product-page {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.no-image-cart-item {
|
||||||
|
max-height: 112px;
|
||||||
|
display: flex; justify-content: center;
|
||||||
|
background-color: var(--gray-200);
|
||||||
|
align-items: center;
|
||||||
|
color: var(--gray-400);
|
||||||
|
margin-top: .15rem;
|
||||||
|
border-radius: 6px;
|
||||||
|
height: 100%;
|
||||||
|
font-size: 24px;
|
||||||
|
}
|
||||||
|
|
||||||
.cart-empty.frappe-card {
|
.cart-empty.frappe-card {
|
||||||
min-height: 76vh;
|
min-height: 76vh;
|
||||||
@include flex(flex, center, center, column);
|
@include flex(flex, center, center, column);
|
||||||
|
|||||||
@@ -1,10 +1,16 @@
|
|||||||
{% from "erpnext/templates/includes/macros.html" import product_image_square %}
|
{% from "erpnext/templates/includes/macros.html" import product_image %}
|
||||||
|
|
||||||
{% macro item_name_and_description(d) %}
|
{% macro item_name_and_description(d) %}
|
||||||
<div class="row item_name_and_description">
|
<div class="row item_name_and_description">
|
||||||
<div class="col-xs-4 col-sm-2 order-image-col">
|
<div class="col-xs-4 col-sm-2 order-image-col">
|
||||||
<div class="order-image">
|
<div class="order-image">
|
||||||
{{ product_image_square(d.thumbnail or d.image) }}
|
{% if d.thumbnail or d.image %}
|
||||||
|
{{ product_image(d.thumbnail or d.image, no_border=True) }}
|
||||||
|
{% else %}
|
||||||
|
<div class="no-image-cart-item" style="min-height: 100px;">
|
||||||
|
{{ frappe.utils.get_abbr(d.item_name) or "NA" }}
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-xs-8 col-sm-10">
|
<div class="col-xs-8 col-sm-10">
|
||||||
|
|||||||
@@ -12,9 +12,9 @@
|
|||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block header_actions %}
|
{% block header_actions %}
|
||||||
<div class="dropdown">
|
<div class="dropdown">
|
||||||
<button class="btn btn-outline-secondary dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
|
<button class="btn btn-outline-secondary dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
|
||||||
<span>{{ _('Actions') }}</span>
|
<span class="font-md">{{ _('Actions') }}</span>
|
||||||
<b class="caret"></b>
|
<b class="caret"></b>
|
||||||
</button>
|
</button>
|
||||||
<ul class="dropdown-menu dropdown-menu-right" role="menu">
|
<ul class="dropdown-menu dropdown-menu-right" role="menu">
|
||||||
@@ -26,15 +26,13 @@
|
|||||||
{{ _("Print") }}
|
{{ _("Print") }}
|
||||||
</a>
|
</a>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block page_content %}
|
{% block page_content %}
|
||||||
|
<div class="row transaction-subheading">
|
||||||
<div class="row transaction-subheading">
|
|
||||||
<div class="col-6">
|
<div class="col-6">
|
||||||
<span class="indicator-pill {{ doc.indicator_color or ("blue" if doc.docstatus==1 else "darkgrey") }}">
|
<span class="font-md indicator-pill {{ doc.indicator_color or ("blue" if doc.docstatus==1 else "darkgrey") }}">
|
||||||
{% if doc.doctype == "Quotation" and not doc.docstatus %}
|
{% if doc.doctype == "Quotation" and not doc.docstatus %}
|
||||||
{{ _("Pending") }}
|
{{ _("Pending") }}
|
||||||
{% else %}
|
{% else %}
|
||||||
@@ -50,9 +48,9 @@
|
|||||||
</p>
|
</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<p class="small my-3">
|
<p class="small my-3">
|
||||||
{%- set party_name = doc.supplier_name if doc.doctype in ['Supplier Quotation', 'Purchase Invoice', 'Purchase Order'] else doc.customer_name %}
|
{%- set party_name = doc.supplier_name if doc.doctype in ['Supplier Quotation', 'Purchase Invoice', 'Purchase Order'] else doc.customer_name %}
|
||||||
<b>{{ party_name }}</b>
|
<b>{{ party_name }}</b>
|
||||||
|
|
||||||
@@ -60,13 +58,13 @@
|
|||||||
<br>
|
<br>
|
||||||
{{ doc.contact_display }}
|
{{ doc.contact_display }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
{% if doc._header %}
|
{% if doc._header %}
|
||||||
{{ doc._header }}
|
{{ doc._header }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<div class="order-container">
|
<div class="order-container">
|
||||||
<!-- items -->
|
<!-- items -->
|
||||||
<table class="order-item-table w-100 table">
|
<table class="order-item-table w-100 table">
|
||||||
<thead class="order-items order-item-header">
|
<thead class="order-items order-item-header">
|
||||||
@@ -106,12 +104,11 @@
|
|||||||
{% include "erpnext/templates/includes/order/order_taxes.html" %}
|
{% include "erpnext/templates/includes/order/order_taxes.html" %}
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% if enabled_checkout and ((doc.doctype=="Sales Order" and doc.per_billed <= 0)
|
{% if enabled_checkout and ((doc.doctype=="Sales Order" and doc.per_billed <= 0)
|
||||||
or (doc.doctype=="Sales Invoice" and doc.outstanding_amount > 0)) %}
|
or (doc.doctype=="Sales Invoice" and doc.outstanding_amount > 0)) %}
|
||||||
|
<div class="panel panel-default">
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="form-column col-sm-6 address-title">
|
<div class="form-column col-sm-6 address-title">
|
||||||
@@ -153,12 +150,12 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|
||||||
{% if attachments %}
|
{% if attachments %}
|
||||||
<div class="order-item-table">
|
<div class="order-item-table">
|
||||||
<div class="row order-items order-item-header text-muted">
|
<div class="row order-items order-item-header text-muted">
|
||||||
<div class="col-sm-12 h6 text-uppercase">
|
<div class="col-sm-12 h6 text-uppercase">
|
||||||
{{ _("Attachments") }}
|
{{ _("Attachments") }}
|
||||||
@@ -173,14 +170,15 @@
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
{% if doc.terms %}
|
|
||||||
<div class="terms-and-condition text-muted small">
|
{% if doc.terms %}
|
||||||
|
<div class="terms-and-condition text-muted small">
|
||||||
<hr><p>{{ doc.terms }}</p>
|
<hr><p>{{ doc.terms }}</p>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block script %}
|
{% block script %}
|
||||||
|
|||||||
Reference in New Issue
Block a user