From 197dd9f2997a9c95be05ce86bfd5bcfd8fe3bc45 Mon Sep 17 00:00:00 2001 From: johnnyq Date: Thu, 24 Jul 2025 11:31:45 -0400 Subject: [PATCH] Initial Work on Client Account Credit System, DB Structure, Credit Balance Calculation, added Apply Credit and add Credit with Expire dates, Added DB Structure for Discount Codes, UI Rewrite on client top header now using grouped cards, more dark mode work as well --- ajax/ajax_invoice_apply_credit.php | 88 +++ ajax/ajax_invoice_pay.php | 6 +- clients.php | 852 +++++++++++++++-------------- database_updates.php | 43 +- db.sql | 43 +- includes/database_version.php | 2 +- includes/filter_footer.php | 30 +- includes/header.php | 2 +- includes/inc_all_client.php | 6 + includes/inc_client_top_head.php | 301 +++++----- invoice.php | 20 + modals/client_add_modal.php | 45 +- modals/client_credit_add_modal.php | 82 +++ post/user/credit.php | 29 + post/user/invoice.php | 164 ++++++ 15 files changed, 1093 insertions(+), 620 deletions(-) create mode 100644 ajax/ajax_invoice_apply_credit.php create mode 100644 modals/client_credit_add_modal.php create mode 100644 post/user/credit.php diff --git a/ajax/ajax_invoice_apply_credit.php b/ajax/ajax_invoice_apply_credit.php new file mode 100644 index 00000000..5e80e474 --- /dev/null +++ b/ajax/ajax_invoice_apply_credit.php @@ -0,0 +1,88 @@ + + + +
+ + + + + + +
+ + -