From 48eff90d1faf3687cfd19fdab877e26fc9387557 Mon Sep 17 00:00:00 2001 From: Saurabh Date: Mon, 21 Oct 2019 16:03:28 +0530 Subject: [PATCH] fix: Don't show make jv button if equity or liability account and asset account not specified (#19350) --- erpnext/accounts/doctype/share_transfer/share_transfer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/accounts/doctype/share_transfer/share_transfer.js b/erpnext/accounts/doctype/share_transfer/share_transfer.js index 446ae689fc..364ca6fd28 100644 --- a/erpnext/accounts/doctype/share_transfer/share_transfer.js +++ b/erpnext/accounts/doctype/share_transfer/share_transfer.js @@ -16,7 +16,7 @@ frappe.ui.form.on('Share Transfer', { }; }; }); - if (frm.doc.docstatus == 1) { + if (frm.doc.docstatus == 1 && frm.doc.equity_or_liability_account && frm.doc.asset_account) { frm.add_custom_button(__('Create Journal Entry'), function () { erpnext.share_transfer.make_jv(frm); });