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()")); + + + - +