[fix] Use per_billed instead of per_delivered and per_received for open notification
This commit is contained in:
parent
01c7ce1da3
commit
723b046c5b
1
erpnext/change_log/v5/v5_0_28.md
Normal file
1
erpnext/change_log/v5/v5_0_28.md
Normal file
@ -0,0 +1 @@
|
|||||||
|
- Open notification of Sales Order and Purchase Order based on whether Invoice is created against them. For eg. If a Sales Order is not Invoiced, it will be considered as open. Previously it was considered open if Delivery Note was created against Sales Order.
|
@ -14,7 +14,7 @@ def get_notification_config():
|
|||||||
"Contact": {"status": "Open"},
|
"Contact": {"status": "Open"},
|
||||||
"Opportunity": {"status": "Open"},
|
"Opportunity": {"status": "Open"},
|
||||||
"Quotation": {"docstatus": 0},
|
"Quotation": {"docstatus": 0},
|
||||||
"Sales Order": { "per_delivered": ("<", 100), "status": ("!=", "Stopped"), "docstatus": ("<", 2) },
|
"Sales Order": { "per_billed": ("<", 100), "status": ("!=", "Stopped"), "docstatus": ("<", 2) },
|
||||||
"Journal Entry": {"docstatus": 0},
|
"Journal Entry": {"docstatus": 0},
|
||||||
"Sales Invoice": { "outstanding_amount": (">", 0), "docstatus": ("<", 2) },
|
"Sales Invoice": { "outstanding_amount": (">", 0), "docstatus": ("<", 2) },
|
||||||
"Purchase Invoice": {"docstatus": 0},
|
"Purchase Invoice": {"docstatus": 0},
|
||||||
@ -25,7 +25,7 @@ def get_notification_config():
|
|||||||
"Delivery Note": {"docstatus": 0},
|
"Delivery Note": {"docstatus": 0},
|
||||||
"Stock Entry": {"docstatus": 0},
|
"Stock Entry": {"docstatus": 0},
|
||||||
"Material Request": {"docstatus": 0},
|
"Material Request": {"docstatus": 0},
|
||||||
"Purchase Order": { "per_received": ("<", 100), "status": ("!=", "Stopped"), "docstatus": ("<", 2) },
|
"Purchase Order": { "per_billed": ("<", 100), "status": ("!=", "Stopped"), "docstatus": ("<", 2) },
|
||||||
"Production Order": { "status": "In Process" },
|
"Production Order": { "status": "In Process" },
|
||||||
"BOM": {"docstatus": 0},
|
"BOM": {"docstatus": 0},
|
||||||
"Timesheet": {"docstatus": 0},
|
"Timesheet": {"docstatus": 0},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user