mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-01 04:28:27 +00:00
[moduleview] added top bar
This commit is contained in:
@@ -91,6 +91,19 @@ items = [
|
||||
},
|
||||
{ "doctype": "Sales Taxes and Charges Master" },
|
||||
{ "doctype": "Purchase Taxes and Charges Master" },
|
||||
{
|
||||
"type": "Section",
|
||||
"title": "Opening Accounts and Stock",
|
||||
"icon": "icon-eye-open"
|
||||
},
|
||||
{ "doctype": "Stock Reconciliation" },
|
||||
{
|
||||
"doctype": "Journal Voucher",
|
||||
"title": "Opening Accounting Entries",
|
||||
"filter": {
|
||||
"is_opening": "Yes"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "Section",
|
||||
"title": "Human Resource",
|
||||
@@ -148,19 +161,6 @@ items = [
|
||||
{
|
||||
"doctype": "Email Digest",
|
||||
},
|
||||
{
|
||||
"type": "Section",
|
||||
"title": "Opening Accounts and Stock",
|
||||
"icon": "icon-eye-open"
|
||||
},
|
||||
{ "doctype": "Stock Reconciliation" },
|
||||
{
|
||||
"doctype": "Journal Voucher",
|
||||
"title": "Opening Accounting Entries",
|
||||
"filter": {
|
||||
"is_opening": "Yes"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "Section",
|
||||
"title": "Customization",
|
||||
@@ -244,8 +244,8 @@ def set_count(item):
|
||||
elif "filter" in item:
|
||||
key = item["filter"].keys()[0]
|
||||
item["count"] = webnotes.conn.sql("""select count(*) from `tab%s` where
|
||||
%s = %s""" % (item["doctype"], key, "%s"),
|
||||
%s = %s and docstatus < 2""" % (item["doctype"], key, "%s"),
|
||||
item["filter"][key])[0][0]
|
||||
elif "doctype" in item:
|
||||
item["count"] = webnotes.conn.sql("select count(*) from `tab%s`" \
|
||||
item["count"] = webnotes.conn.sql("select count(*) from `tab%s` where docstatus<2" \
|
||||
% item["doctype"])[0][0]
|
||||
|
||||
Reference in New Issue
Block a user