mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-21 14:09:19 +00:00
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:
@@ -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});
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
Reference in New Issue
Block a user