Skip to content

Commit

Permalink
fix: Get payment entry button not visible in Bank Clearance doc (back…
Browse files Browse the repository at this point in the history
…port #33518) (#33525)

fix: Get payment entry button not visible in Bank Clearance doc (#33518)

(cherry picked from commit 1a83a67)

Co-authored-by: Deepesh Garg <deepeshgarg6@gmail.com>
  • Loading branch information
mergify[bot] and deepeshgarg007 authored Jan 3, 2023
1 parent 011fc3a commit fcf052d
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions erpnext/accounts/doctype/bank_clearance/bank_clearance.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,11 @@ frappe.ui.form.on("Bank Clearance", {

refresh: function(frm) {
frm.disable_save();
frm.add_custom_button(__('Get Payment Entries'), () =>
frm.trigger("get_payment_entries")
);

if (frm.doc.account && frm.doc.from_date && frm.doc.to_date) {
frm.add_custom_button(__('Get Payment Entries'), () =>
frm.trigger("get_payment_entries")
);

frm.change_custom_button_type('Get Payment Entries', null, 'primary');
}
frm.change_custom_button_type('Get Payment Entries', null, 'primary');
},

update_clearance_date: function(frm) {
Expand Down

0 comments on commit fcf052d

Please sign in to comment.