import frappe
from frappe.model.document import Document


class KapitalBankTransactionMapping(Document):
	def validate(self):
		if not self.purpose_keyword and not self.counterparty:
			frappe.throw("At least one of Purpose Keyword or Counterparty must be set.")
