From e7e7272002793f5f27440dce6ecbbf9e06ca5f1f Mon Sep 17 00:00:00 2001 From: johnnyq Date: Tue, 17 Jun 2025 22:44:54 -0400 Subject: [PATCH] Migrated Vendor Templates to its own table, lots of code modifications here --- admin_settings_online_payment.php | 2 +- admin_software_template.php | 51 ++++---- admin_vendor_template.php | 86 ++++++------- ajax/ajax_asset_copy.php | 2 +- ajax/ajax_expense_copy.php | 2 +- ajax/ajax_expense_edit.php | 2 +- ajax/ajax_recurring_expense_edit.php | 2 +- ajax/ajax_service_edit.php | 2 +- ajax/ajax_software_template_edit.php | 18 +-- ajax/ajax_ticket_edit.php | 2 +- ajax/ajax_vendor_edit.php | 6 +- ajax/ajax_vendor_template_edit.php | 47 ++++--- api/v1/documents/create.php | 5 +- api/v1/documents/update.php | 24 +--- calendar.php | 2 +- dashboard.php | 2 +- database_updates.php | 131 +++++++++++++++++++- db.sql | 56 ++++++++- expenses.php | 4 +- global_search.php | 1 - includes/database_version.php | 2 +- includes/inc_all_client.php | 2 +- modals/asset_add_modal.php | 2 +- modals/expense_add_modal.php | 2 +- modals/expense_export_modal.php | 2 +- modals/recurring_expense_create_modal.php | 2 +- modals/service_add_modal.php | 2 +- modals/software_add_from_template_modal.php | 6 +- modals/ticket_add_modal.php | 2 +- modals/ticket_edit_vendor_modal.php | 2 +- modals/vendor_add_from_template_modal.php | 6 +- post/admin/admin_software_template.php | 37 ++++-- post/admin/admin_update.php | 14 +-- post/admin/admin_vendor_template.php | 62 +++++++-- post/user/software.php | 18 +-- post/user/vendor.php | 3 - report_expense_by_vendor.php | 2 - scripts/cron.php | 14 +-- software.php | 3 +- vendors.php | 1 - 40 files changed, 410 insertions(+), 221 deletions(-) diff --git a/admin_settings_online_payment.php b/admin_settings_online_payment.php index b8aa5a4e..ac288b79 100644 --- a/admin_settings_online_payment.php +++ b/admin_settings_online_payment.php @@ -76,7 +76,7 @@ require_once "includes/inc_all_admin.php"; "> - - Template + + Template - - Type + + Type - - License Type + + License Type Action @@ -74,41 +69,41 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()")); - +
-
$software_version"; ?>
-
+
$software_template_version"; ?>
+
- - + +