fix: Remove unnecessary condition
This commit is contained in:
		
							parent
							
								
									4da7c5882b
								
							
						
					
					
						commit
						d62af77ca8
					
				| @ -629,13 +629,11 @@ frappe.ui.form.on('Sales Invoice', { | |||||||
| 
 | 
 | ||||||
| 		// discount account
 | 		// discount account
 | ||||||
| 		frm.fields_dict['items'].grid.get_field('discount_account').get_query = function(doc) { | 		frm.fields_dict['items'].grid.get_field('discount_account').get_query = function(doc) { | ||||||
| 			if (erpnext.is_perpetual_inventory_enabled(doc.company)) { | 			return { | ||||||
| 				return { | 				filters: { | ||||||
| 					filters: { | 					'report_type': 'Profit and Loss', | ||||||
| 						'report_type': 'Profit and Loss', | 					'company': doc.company, | ||||||
| 						'company': doc.company, | 					"is_group": 0 | ||||||
| 						"is_group": 0 |  | ||||||
| 					} |  | ||||||
| 				} | 				} | ||||||
| 			} | 			} | ||||||
| 		} | 		} | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user