Skip to content

Commit

Permalink
fix: payment button appears even after the payment#16066 (#147) (#148)
Browse files Browse the repository at this point in the history
(cherry picked from commit f0fc3d8)

Co-authored-by: Poorvi-R-Bhat <[email protected]>
  • Loading branch information
mergify[bot] and Poorvi-R-Bhat authored Jun 7, 2024
1 parent f98c1e7 commit 2ba7381
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions webshop/templates/pages/order.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,12 @@ <h3 class="m-0">{{ doc.name }}</h3>
<div class="form-column col-sm-6">
<div class="page-header-actions-block" data-html-block="header-actions">
<p>
{% if doc.doctype != "Sales Invoice" or doc.outstanding_amount > 0 %}
<a href="/api/method/erpnext.accounts.doctype.payment_request.payment_request.make_payment_request?dn={{ doc.name }}&dt={{ doc.doctype }}&submit_doc=1&order_type=Shopping Cart"
class="btn btn-primary btn-sm" id="pay-for-order">
{{ _("Pay") }} {{doc.get_formatted("grand_total") }}
</a>
{% endif %}
</p>
</div>
</div>
Expand Down

0 comments on commit 2ba7381

Please sign in to comment.