mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-13 09:43:49 +00:00
fix: ensure payment request button only shows for submitted invoices
(cherry picked from commit f26ee9e546)
# Conflicts:
# erpnext/accounts/doctype/purchase_invoice/purchase_invoice.js
This commit is contained in:
committed by
Mergify
parent
9f846e2636
commit
b4053ee0d8
@@ -126,8 +126,13 @@ erpnext.accounts.PurchaseInvoice = class PurchaseInvoice extends erpnext.buying.
|
||||
}
|
||||
}
|
||||
|
||||
<<<<<<< HEAD
|
||||
if (doc.outstanding_amount > 0 && !cint(doc.is_return) && !doc.on_hold) {
|
||||
cur_frm.add_custom_button(
|
||||
=======
|
||||
if (doc.docstatus == 1 && doc.outstanding_amount > 0 && !cint(doc.is_return) && !doc.on_hold) {
|
||||
this.frm.add_custom_button(
|
||||
>>>>>>> f26ee9e546 (fix: ensure payment request button only shows for submitted invoices)
|
||||
__("Payment Request"),
|
||||
function () {
|
||||
me.make_payment_request();
|
||||
|
||||
Reference in New Issue
Block a user