Merge branch 'shf_rename' of github.com:webnotes/erpnext into shf_rename
This commit is contained in:
		
						commit
						2f53eba3dc
					
				| @ -94,13 +94,13 @@ class DocType: | ||||
| 
 | ||||
| 	def validate_posting_time(self): | ||||
| 		""" Validate posting time format""" | ||||
| 		if self.doc.posting_time and len(cstr(self.doc.posting_time)) == 8 and cstr(self.doc.posting_time)[-2:] != '00': | ||||
| 		if self.doc.posting_time and len(self.doc.posting_time.split(':')) > 2: | ||||
| 			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 | ||||
| 	 | ||||
| 	def scrub_posting_time(self): | ||||
| 		if not self.doc.posting_time or self.doc.posting_time == '12:0': | ||||
| 		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' | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user