Hide buttons for return entry

This commit is contained in:
Nabin Hait
2015-07-29 13:16:37 +05:30
parent 3ad26e4dd1
commit 1e046aa49a
7 changed files with 101 additions and 101 deletions

View File

@@ -58,7 +58,7 @@ erpnext.stock.StockController = frappe.ui.form.Controller.extend({
show_general_ledger: function() {
var me = this;
if(this.frm.doc.docstatus===1 && cint(frappe.defaults.get_default("auto_accounting_for_stock"))) {
if(this.frm.doc.docstatus===1) {
cur_frm.add_custom_button(__('Accounting Ledger'), function() {
frappe.route_options = {
voucher_no: me.frm.doc.name,