mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-27 17:04:47 +00:00
Email Digest: New Transactions --> consider feed_type is null records only
This commit is contained in:
@@ -255,7 +255,10 @@ class DocType:
|
|||||||
args['sum_if_reqd'] = "IFNULL(SUM(IFNULL(%(sum_col)s, 0)), 0) AS '%(sum_col)s'," % args
|
args['sum_if_reqd'] = "IFNULL(SUM(IFNULL(%(sum_col)s, 0)), 0) AS '%(sum_col)s'," % args
|
||||||
|
|
||||||
if args['type'] == 'new_transactions':
|
if args['type'] == 'new_transactions':
|
||||||
args['company_condition'] = ''
|
# tabFeed doesn't have company column
|
||||||
|
# using this arg to set condition of feed_type as null
|
||||||
|
# so that comments, logins and assignments are not counted
|
||||||
|
args['company_condition'] = "feed_type IS NULL AND"
|
||||||
else:
|
else:
|
||||||
args['company_condition'] = "company = '%(company)s' AND" % args
|
args['company_condition'] = "company = '%(company)s' AND" % args
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user