mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-01 19:29:10 +00:00
fix: show Purchase Order Portal Pay button based on configuration
(cherry picked from commit 20bdc63b03)
This commit is contained in:
@@ -34,6 +34,7 @@
|
||||
</a>
|
||||
</ul>
|
||||
</div>
|
||||
{% if show_pay_button %}
|
||||
<div class="form-column col-sm-6">
|
||||
<div class="page-header-actions-block" data-html-block="header-actions">
|
||||
<p>
|
||||
@@ -44,6 +45,7 @@
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
|
||||
@@ -55,6 +55,7 @@ def get_context(context):
|
||||
)
|
||||
context.available_loyalty_points = int(loyalty_program_details.get("loyalty_points"))
|
||||
|
||||
context.show_pay_button = frappe.db.get_single_value("Buying Settings", "show_pay_button")
|
||||
context.show_make_pi_button = False
|
||||
if context.doc.get("supplier"):
|
||||
# show Make Purchase Invoice button based on permission
|
||||
|
||||
Reference in New Issue
Block a user