diff --git a/check_run/hooks.py b/check_run/hooks.py index 900fc845..1fa96f17 100644 --- a/check_run/hooks.py +++ b/check_run/hooks.py @@ -98,7 +98,7 @@ # Override standard doctype classes override_doctype_class = { # "Bank": "check_run.overrides.bank.CustomBank", - "Payment Entry": "check_run.overrides.payment_entry.CustomPaymentEntry", + "Payment Entry": "check_run.overrides.payment_entry.CheckRunPaymentEntry", } # Document Events diff --git a/check_run/overrides/payment_entry.py b/check_run/overrides/payment_entry.py index 0cfd2654..57fd095e 100644 --- a/check_run/overrides/payment_entry.py +++ b/check_run/overrides/payment_entry.py @@ -9,7 +9,7 @@ import json -class CustomPaymentEntry(PaymentEntry): +class CheckRunPaymentEntry(PaymentEntry): def make_gl_entries(self, cancel=0, adv_adj=0): if self.payment_type in ("Receive", "Pay") and not self.get("party_account_field"): self.setup_party_account_field()