Student Account Ledger Button (#13591)

* Student Account Ledger Button

* Student Account Ledger Button

* Student Account Ledger Button

* Student Account Ledger Button
This commit is contained in:
bghayad 2018-04-24 09:42:11 +03:00 committed by Nabin Hait
parent 5becde7a45
commit 1c3830c53f

View File

@ -15,5 +15,15 @@ frappe.ui.form.on('Student', {
}
};
})
},
refresh: function(frm) {
if(!frm.is_new()) {
// custom buttons
frm.add_custom_button(__('Accounting Ledger'), function() {
frappe.set_route('query-report', 'General Ledger',
{party_type:'Student', party:frm.doc.name});
});
}
}
});
});