546ca31a4e
Add notification count for Payment Entry in Accounts module page
62 lines
1.8 KiB
Python
62 lines
1.8 KiB
Python
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
|
|
# License: GNU General Public License v3. See license.txt
|
|
|
|
from __future__ import unicode_literals
|
|
|
|
def get_notification_config():
|
|
return { "for_doctype":
|
|
{
|
|
"Issue": {"status": "Open"},
|
|
"Warranty Claim": {"status": "Open"},
|
|
"Task": {"status": "Overdue"},
|
|
"Project": {"status": "Open"},
|
|
"Item": {"total_projected_qty": ("<", 0)},
|
|
"Customer": {"status": "Open"},
|
|
"Supplier": {"status": "Open"},
|
|
"Lead": {"status": "Open"},
|
|
"Contact": {"status": "Open"},
|
|
"Opportunity": {"status": "Open"},
|
|
"Quotation": {"docstatus": 0},
|
|
"Sales Order": {
|
|
"status": ("not in", ("Completed", "Closed")),
|
|
"docstatus": ("<", 2)
|
|
},
|
|
"Journal Entry": {"docstatus": 0},
|
|
"Sales Invoice": {
|
|
"outstanding_amount": (">", 0),
|
|
"docstatus": ("<", 2)
|
|
},
|
|
"Purchase Invoice": {
|
|
"outstanding_amount": (">", 0),
|
|
"docstatus": ("<", 2)
|
|
},
|
|
"Payment Entry": {"docstatus": 0},
|
|
"Leave Application": {"status": "Open"},
|
|
"Expense Claim": {"approval_status": "Draft"},
|
|
"Job Applicant": {"status": "Open"},
|
|
"Delivery Note": {
|
|
"status": ("not in", ("Completed", "Closed")),
|
|
"docstatus": ("<", 2)
|
|
},
|
|
"Stock Entry": {"docstatus": 0},
|
|
"Material Request": {
|
|
"docstatus": ("<", 2),
|
|
"status": ("not in", ("Stopped",)),
|
|
"per_ordered": ("<", 100)
|
|
},
|
|
"Request for Quotation": { "docstatus": 0 },
|
|
"Supplier Quotation": {"docstatus": 0},
|
|
"Purchase Order": {
|
|
"status": ("not in", ("Completed", "Closed")),
|
|
"docstatus": ("<", 2)
|
|
},
|
|
"Purchase Receipt": {
|
|
"status": ("not in", ("Completed", "Closed")),
|
|
"docstatus": ("<", 2)
|
|
},
|
|
"Production Order": { "status": ("in", ("Draft", "Not Started", "In Process")) },
|
|
"BOM": {"docstatus": 0},
|
|
"Timesheet": {"status": "Draft"}
|
|
}
|
|
}
|