From 58d1ec4f30faa3f15c10d8c5c2ca8568b05ee8ee Mon Sep 17 00:00:00 2001 From: Sherwin Gaddis Date: Sun, 24 Sep 2023 03:06:27 -0400 Subject: [PATCH] Module needs to add feature to payment screen (#6878) * Module needs to add feature to payment screen * forgot to import the class. --- interface/patient_file/front_payment.php | 26 ++++++++++--------- .../Billing/Payments/PostFrontPayment.php | 22 ++++++++++++++++ 2 files changed, 36 insertions(+), 12 deletions(-) create mode 100644 src/Events/Billing/Payments/PostFrontPayment.php diff --git a/interface/patient_file/front_payment.php b/interface/patient_file/front_payment.php index 7201f373b37..d209afc6b44 100644 --- a/interface/patient_file/front_payment.php +++ b/interface/patient_file/front_payment.php @@ -25,6 +25,7 @@ use OpenEMR\Common\Csrf\CsrfUtils; use OpenEMR\Common\Twig\TwigContainer; use OpenEMR\Core\Header; +use OpenEMR\Events\Billing\Payments\PostFrontPayment; use OpenEMR\OeUI\OemrUI; use OpenEMR\PaymentProcessing\Sphere\SpherePayment; use OpenEMR\Services\FacilityService; @@ -1229,17 +1230,17 @@ function make_insurance() { - + + + + + + + + + + @@ -1426,7 +1427,7 @@ function make_insurance() {
-
+
+dispatch(new PostFrontPayment(), PostFrontPayment::ACTION_POST_FRONT_PAYMENT, 10); ?> diff --git a/src/Events/Billing/Payments/PostFrontPayment.php b/src/Events/Billing/Payments/PostFrontPayment.php new file mode 100644 index 00000000000..eef0c5c5a79 --- /dev/null +++ b/src/Events/Billing/Payments/PostFrontPayment.php @@ -0,0 +1,22 @@ + + * @copyright (c) 2023 + * @https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3 + */ + +namespace OpenEMR\Events\Billing\Payments; + +use Symfony\Contracts\EventDispatcher\Event; + +class PostFrontPayment extends Event +{ + const ACTION_POST_FRONT_PAYMENT = 'billing.payment.action.post.front.payment'; + public function __construct() + { + //Do something epic here + } +}
- - - - - - - - +