Merge branch 'develop' of https://github.com/frappe/frappe into prepared-report-fix
This commit is contained in:
commit
d04fa4c553
2 changed files with 4 additions and 2 deletions
|
|
@ -35,7 +35,7 @@ class TestComment(unittest.TestCase):
|
|||
frappe.db.sql("delete from `tabComment` where reference_doctype = 'Blog Post'")
|
||||
|
||||
from frappe.templates.includes.comments.comments import add_comment
|
||||
add_comment('hello', 'test@test.com', 'Good Tester',
|
||||
add_comment('Good comment with 10 chars', 'test@test.com', 'Good Tester',
|
||||
'Blog Post', test_blog.name, test_blog.route)
|
||||
|
||||
self.assertEqual(frappe.get_all('Comment', fields = ['*'], filters = dict(
|
||||
|
|
|
|||
|
|
@ -145,7 +145,9 @@ def get_next_expected_date(date, timegrain):
|
|||
|
||||
def get_period_ending(date, timegrain):
|
||||
date = getdate(date)
|
||||
if timegrain=='Weekly':
|
||||
if timegrain=='Daily':
|
||||
pass
|
||||
elif timegrain=='Weekly':
|
||||
date = get_week_ending(date)
|
||||
elif timegrain=='Monthly':
|
||||
date = get_month_ending(date)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue