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 + } +}
- - - - - - - - +