Page 1 of 1

Hook Request

Posted: Mon Sep 30, 2019 7:43 am
by dcrider
Good morning! We need the following hooks added please:

Code: Select all

if(Plugins.HookMethod(this, "FormPayPlan.butAdj_Click_beginning", PatCur, _listAdjustments, _listPayPlanCharges, _payPlanCur))
{
     return;
}

Plugins.HookAddCode(this, "FormPayPlan.Load_end", PatCur, IsNew);

Plugins.HookAddCode(this, "FormPayPlan.butDelete_Click_end", PatCur, _payPlanCur);

Plugins.HookAddCode(this, "FormPayPlanChargeEdit.Load_end", PatCur);

Plugins.HookAddCode(this, "ContrAccount.AddAdjustmentToSelectedProcsHelper_beginning", PatCur, gridPayPlan);
Please let me know if there's any additional information I need to provide.

Re: Hook Request

Posted: Wed Oct 02, 2019 10:10 am
by PatrickC
I have the hooks added as is, except for the fourth hook.

Code: Select all

Plugins.HookAddCode(this, "FormPayPlanChargeEdit.Load_end", PatCur);
PatCur isn't available in that class.

PayPlanChargeCur provides member variables PayPlanChargeCur.PatNum and PayPlanChargeCur.Guarantor which are Foreign Keys to the Patient Table.
https://www.opendental.com/OpenDentalDo ... plancharge

Re: Hook Request

Posted: Fri Oct 04, 2019 8:35 am
by dcrider
That's fine. I don't actually need it, I just added it in case anyone else wanted to leverage that. You can just add that hook without PatCur.

Re: Hook Request

Posted: Fri Oct 04, 2019 11:29 am
by PatrickC
Hooks have been added to beta release 19.3.9.