fix:Pricing Rule error AttributeError: 'str' object has no attribute 'get' (#19774)
* fix: date validation on inpatient record, else condition removing on clinical prcd templ which is not req * fix:Pricing Rule error AttributeError: 'str' object has no attribute 'get' #19770 * fix:Pricing Rule error AttributeError: 'str' object has no attribute 'get' #19770
This commit is contained in:
		
							parent
							
								
									8d31171ff8
								
							
						
					
					
						commit
						73129e6ac8
					
				| @ -34,8 +34,7 @@ class PricingRule(Document): | ||||
| 
 | ||||
| 	def validate_duplicate_apply_on(self): | ||||
| 		field = apply_on_dict.get(self.apply_on) | ||||
| 		values = [d.get(frappe.scrub(self.apply_on)) for d in self.get(field)] | ||||
| 
 | ||||
| 		values = [d.get(frappe.scrub(self.apply_on)) for d in self.get(field) if field] | ||||
| 		if len(values) != len(set(values)): | ||||
| 			frappe.throw(_("Duplicate {0} found in the table").format(self.apply_on)) | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user