fix: skip liability account for internal transfer
(cherry picked from commit 236b73565e6889aaa7027929f770918e89bca7fc)
This commit is contained in:
		
							parent
							
								
									880f648846
								
							
						
					
					
						commit
						e2d85c513c
					
				| @ -107,7 +107,7 @@ class PaymentEntry(AccountsController): | |||||||
| 
 | 
 | ||||||
| 	def set_liability_account(self): | 	def set_liability_account(self): | ||||||
| 		# Auto setting liability account should only be done during 'draft' status | 		# Auto setting liability account should only be done during 'draft' status | ||||||
| 		if self.docstatus > 0: | 		if self.docstatus > 0 or self.payment_type == "Internal Transfer": | ||||||
| 			return | 			return | ||||||
| 
 | 
 | ||||||
| 		if not frappe.db.get_value( | 		if not frappe.db.get_value( | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user