From 62d3cab389413f2ad8a57ae765ae6a50ae6af294 Mon Sep 17 00:00:00 2001 From: Andrew Malsbury Date: Wed, 25 Oct 2023 17:15:41 +0000 Subject: [PATCH] Update Quotes and Recurrings with discounts --- client_quotes.php | 1 + client_recurring_invoices.php | 7 +- guest_view_quote.php | 12 ++ post/invoice.php | 47 ++++++-- post/invoice_model.php | 3 +- post/quote.php | 30 ++++- post/quote_model.php | 1 + quote.php | 12 ++ quote_edit_modal.php | 11 ++ quotes.php | 1 + recurring_invoice.php | 37 ++++-- recurring_invoice_edit_modal.php | 196 +++++++++++++++++-------------- recurring_invoices.php | 1 + 13 files changed, 240 insertions(+), 119 deletions(-) diff --git a/client_quotes.php b/client_quotes.php index 60830da7a..cc0387694 100644 --- a/client_quotes.php +++ b/client_quotes.php @@ -83,6 +83,7 @@ $quote_status = nullable_htmlentities($row['quote_status']); $quote_date = nullable_htmlentities($row['quote_date']); $quote_expire = nullable_htmlentities($row['quote_expire']); + $quote_discount = floatval($row['quote_discount_amount']); $quote_amount = floatval($row['quote_amount']); $quote_currency_code = nullable_htmlentities($row['quote_currency_code']); $quote_created_at = nullable_htmlentities($row['quote_created_at']); diff --git a/client_recurring_invoices.php b/client_recurring_invoices.php index ab7dc5483..2e4bb9526 100644 --- a/client_recurring_invoices.php +++ b/client_recurring_invoices.php @@ -83,6 +83,7 @@ } $recurring_next_date = nullable_htmlentities($row['recurring_next_date']); $recurring_amount = floatval($row['recurring_amount']); + $recurring_discount = floatval($row['recurring_discount_amount']); $recurring_currency_code = nullable_htmlentities($row['recurring_currency_code']); $recurring_created_at = nullable_htmlentities($row['recurring_created_at']); $category_id = intval($row['category_id']); @@ -106,9 +107,9 @@ - - - + + +