Merge pull request #38586 from frappe/mergify/bp/version-15-hotfix/pr-38580
fix: sql error while filtering on finance book in GL (backport #38580)
This commit is contained in:
		
						commit
						acf94dd4ad
					
				| @ -289,7 +289,8 @@ def get_conditions(filters): | |||||||
| 
 | 
 | ||||||
| 	if accounting_dimensions: | 	if accounting_dimensions: | ||||||
| 		for dimension in accounting_dimensions: | 		for dimension in accounting_dimensions: | ||||||
| 			if not dimension.disabled: | 			# Ignore 'Finance Book' set up as dimension in below logic, as it is already handled in above section | ||||||
|  | 			if not dimension.disabled and dimension.document_type != "Finance Book": | ||||||
| 				if filters.get(dimension.fieldname): | 				if filters.get(dimension.fieldname): | ||||||
| 					if frappe.get_cached_value("DocType", dimension.document_type, "is_tree"): | 					if frappe.get_cached_value("DocType", dimension.document_type, "is_tree"): | ||||||
| 						filters[dimension.fieldname] = get_dimension_with_children( | 						filters[dimension.fieldname] = get_dimension_with_children( | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user