From a2f0f392be0f27ef5bb857a68efee6558102d4ed Mon Sep 17 00:00:00 2001 From: johnnyq Date: Sat, 21 Dec 2024 20:50:21 -0500 Subject: [PATCH] Moved Create and Disable Auto Pay from Hamburger menu to a button by Email Notify, also Tidied up the Header in add payment --- recurring_invoice.php | 28 ++++++++++++---------------- recurring_payment_add_modal.php | 2 +- 2 files changed, 13 insertions(+), 17 deletions(-) diff --git a/recurring_invoice.php b/recurring_invoice.php index 7f6f32a0..c4dd1c9c 100644 --- a/recurring_invoice.php +++ b/recurring_invoice.php @@ -62,20 +62,6 @@ if (isset($_GET['recurring_id'])) { } $recurring_payment_id = intval($row['recurring_payment_id']); $recurring_payment_recurring_invoice_id = intval($row['recurring_payment_recurring_invoice_id']); - if ($recurring_payment_recurring_invoice_id) { - $auto_pay_display = " - - Remove AutoPay - - "; - } else { - $auto_pay_display = " - - Create AutoPay - - "; - require "recurring_payment_add_modal.php"; - } $sql = mysqli_query($mysqli, "SELECT * FROM companies WHERE company_id = 1"); $row = mysqli_fetch_array($sql); @@ -138,6 +124,18 @@ if (isset($_GET['recurring_id'])) { Email Notify + + + + Disable AutoPay + + + + Create AutoPay + + + +
@@ -146,8 +144,6 @@ if (isset($_GET['recurring_id'])) {