From 5baecf69827731d1289c4e1aac6174f02bb6e362 Mon Sep 17 00:00:00 2001 From: johnnyq Date: Fri, 17 Jan 2025 15:54:26 -0500 Subject: [PATCH] Add Payment Deletion Capabilities from payments and client payments page --- client_payments.php | 14 ++++++++++++++ payments.php | 20 +++++++++++++++++++- 2 files changed, 33 insertions(+), 1 deletion(-) diff --git a/client_payments.php b/client_payments.php index 305c1224..870a9a9e 100644 --- a/client_payments.php +++ b/client_payments.php @@ -101,6 +101,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()")); Account + @@ -114,6 +115,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()")); $invoice_amount = floatval($row['invoice_amount']); $invoice_currency_code = nullable_htmlentities($row['invoice_currency_code']); $invoice_date = nullable_htmlentities($row['invoice_date']); + $payment_id = intval($row['payment_id']); $payment_date = nullable_htmlentities($row['payment_date']); $payment_method = nullable_htmlentities($row['payment_method']); $payment_reference = nullable_htmlentities($row['payment_reference']); @@ -137,6 +139,18 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()")); + + + diff --git a/payments.php b/payments.php index 5eeb2d61..b8b563b4 100644 --- a/payments.php +++ b/payments.php @@ -183,6 +183,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()")); Account + @@ -194,6 +195,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()")); $invoice_number = intval($row['invoice_number']); $invoice_status = nullable_htmlentities($row['invoice_status']); $invoice_date = nullable_htmlentities($row['invoice_date']); + $payment_id = intval($row['payment_id']); $payment_date = nullable_htmlentities($row['payment_date']); $payment_method = nullable_htmlentities($row['payment_method']); $payment_amount = floatval($row['payment_amount']); @@ -225,9 +227,25 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()")); + + + - +