diff --git a/erpnext/startup/notifications.py b/erpnext/startup/notifications.py index 991114d516..58a2c79e9f 100644 --- a/erpnext/startup/notifications.py +++ b/erpnext/startup/notifications.py @@ -22,12 +22,21 @@ def get_notification_config(): "docstatus": ("<", 2) }, "Journal Entry": {"docstatus": 0}, - "Sales Invoice": { "outstanding_amount": (">", 0), "docstatus": ("<", 2) }, - "Purchase Invoice": {"docstatus": 0}, + "Sales Invoice": { + "outstanding_amount": (">", 0), + "docstatus": ("<", 2) + }, + "Purchase Invoice": { + "outstanding_amount": (">", 0), + "docstatus": ("<", 2) + }, "Leave Application": {"status": "Open"}, "Expense Claim": {"approval_status": "Draft"}, "Job Applicant": {"status": "Open"}, - "Delivery Note": {"docstatus": 0}, + "Delivery Note": { + "status": ("not in", ("Completed", "Closed")), + "docstatus": ("<", 2) + }, "Stock Entry": {"docstatus": 0}, "Material Request": { "docstatus": ("<", 2), @@ -40,7 +49,10 @@ def get_notification_config(): "status": ("not in", ("Completed", "Closed")), "docstatus": ("<", 2) }, - "Purchase Receipt": {"docstatus": 0}, + "Purchase Receipt": { + "status": ("not in", ("Completed", "Closed")), + "docstatus": ("<", 2) + }, "Production Order": { "status": ("in", ("Draft", "Not Started", "In Process")) }, "BOM": {"docstatus": 0}, "Timesheet": {"status": "Draft"}