mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-04 04:39:11 +00:00
added code to update timestamps in Task, Customer Issue and Support Ticket
This commit is contained in:
@@ -100,7 +100,7 @@ class DocType:
|
||||
|
||||
def validate_posting_time(self):
|
||||
""" Validate posting time format"""
|
||||
if self.doc.posting_time and len(self.doc.posting_time.split(':')) > 2:
|
||||
if self.doc.posting_time and len(self.doc.posting_time.split(':')) > 3:
|
||||
msgprint("Wrong format of posting time, can not complete the transaction. If you think \
|
||||
you entered posting time correctly, please contact ERPNext support team.")
|
||||
raise Exception
|
||||
@@ -108,6 +108,4 @@ class DocType:
|
||||
def scrub_posting_time(self):
|
||||
if not self.doc.posting_time or self.doc.posting_time == '00:0':
|
||||
self.doc.posting_time = '00:00'
|
||||
if len(self.doc.posting_time.split(':')) > 2:
|
||||
self.doc.posting_time = '00:00'
|
||||
|
||||
Reference in New Issue
Block a user